Search Issue Tracker
Fixed
Votes
4
Found in
2022.3.38f1
6000.0.11f1
Issue ID
UUM-76166
Regression
Yes
[iOS] Memory isn't released when playing an H.264 video
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
Comments (2)
-
CTePeoTun
Jul 24, 2024 09:48
I have a similar problem on Android. But there is still a problem with vp8.
-
thomas642daniel
Jul 18, 2024 10:07
Ensure you are using the latest version of Unity and Xcode. Sometimes, updates include fixes for such issues.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-78170