Steps to reproduce:
1. Open the attached “AVAssetLeak” projet
2. In Build Settings enable Development Build
3. Build the project
4. Open the build in Xcode and deploy it to the device
5. Open Xcode > Open Developer Tool > Instruments and choose Allocations for the profiling template
6. Start an immediate mode recording
7. In the Detail filter search write “av”
8. In the Player press the “Play” and “Stop” buttons while observing memory usage (total bytes) in the Instruments window
Expected result: Memory usage remains stable or is released
Actual result: Memory usage increases every time the “Play” button is pressed and is never reduced
Reproducible with: 2022.3.10f1, 2022.3.38f1, 6000.0.11f1
Not reproducible with: 2021.3.40f1
Could not test with: 2022.1.0a1-2022.3.9f1 (“Command PhaseScriptExecution failed with a nonzero exit code” error)
Testing environment: macOS Sonoma 14.5 (Intel)
Not reproducible on: No other environment tested
Reproducible with these devices:
VLNQA00394 - iPhone 13 mini (MLK23ET/A), CPU: Apple A15 Bionic, OS: 16.2
VLNQA00297 - iPhone 11 Pro (MWC62ET/A), CPU: Apple A13 Bionic, GPU: Apple designed, OS: 15.3.1
VLNQA00357 - iPhone 12 Mini (MGE03ET/A), CPU: Apple A14 Bionic, GPU: Apple designed, OS: 14.1
Note:
- Doesn’t reproduce with VP8 video (by user)
- Regressed version might be incorrect because 2022.1.0a1-2022.3.9f1 versions could not be tested