Unity Issue Tracker - Memory leak when playing multiple videos simultaneously
Fixed
UUM-78170
Memory leak when playing multiple videos simultaneously
Unity: Video
iOS
Fixed
6.0.X
2022.3.X
Missing @autoreleasepool in job system and background job queue threads were causing Objective-C objects to never be released.
How to reproduce:
1. Open the attached Project "video_leak_sample_2.zip"
2. Build and Run the Scene "SampleScene" on iOS
3. In Xcode, open the Debug navigator and click on "Memory"
4. Wait for the memory spikes to subside and observe the memory used
Expected result: Memory stays consistent
Actual result: Memory starts increasing
Reproduced on: 2022.3.42f1, 6000.0.15f1
Did not reproduce on: 2021.3.42f1
Reproduced on:
iPhone 7 Plus (iOS 14.6)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?