Search Issue Tracker

Duplicate

Votes

4

Found in

2022.3.38f1

6000.0.11f1

7000.0.0a1

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

  1. This is a duplicate of issue #UUM-78170

    [iOS] Memory leak when playing multiple videos simultaneously

Comments (2)

  1. CTePeoTun

    Jul 24, 2024 09:48

    I have a similar problem on Android. But there is still a problem with vp8.

  2. 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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.