Search Issue Tracker

In Progress

In Progress in 6000.0.X

Under Consideration for 2022.3.X

Votes

4

Found in

2022.3.39f1

6000.0.12f1

7000.0.0a1

Issue ID

UUM-77668

Regression

Yes

[Android] VideoPlayer leaks memory when repeating Play and Stop on a Video

--

-

Reproduction steps:
1. Open the attached project “BugRepro”
2. Open the Build Settings (File → Build Settings) and ensure “Development Build“ is enabled
3. Build And Run
4. While the Player is running, open the Memory Profiler (Window → Analysis → Memory Profiler)
5. In the menu bar of the Memory Profiler, select the “Target Selection” (default value is “Editor”) drop-down and choose the recently opened instance of the Player
6. Press the "Capture" button
7. After about 3 minutes, press the "Capture" button again
8. Press the "Compare SnapShots" button, and choose generated snapshots
9. Select the “All Of Memory” tab
10. Observe “Graphics(Estimated)→<No Name>"

Expected result: Memory usage does not increase or a very minimal increase is visible
Actual result: Memory increases without limit (About 136MB in 3 mins)

Reproducible with: 2022.2.0b8, 2022.3.39f1, 6000.0.12f1
Not reproducible with: 2021.3.41f1, 2022.2.0b7

Reproducible with these devices:
VLNQA00422 - Galaxy S21 Ultra 5G (SM-G998B), CPU: Exynos 2100, GPU: Mali-G78, OS: 11
VLNQA00318, Oneplus OnePlus 7 Pro (GM1913), Android 11, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
Samsung Galaxy S21 5G (Android 11) (user’s)
iPhone 14Pro (iOS17.4.1) (user’s)
iPhone12(iOS16.6.1) (user’s)

Not reproducible with this device:
VLNQA00518 - Google Pixel 4 (Pixel 4), CPU: Snapdragon 855 SM8150, GPU: Adreno 640, OS: 13

Testing environment: Windows 11 23H2 (22631.3007), Windows 10 (10.0.19045) 64bit (user’s)
Not reproducible environment: No other environment tested

Notes:
- Not Reproducible in Play Mode on Editor, Windows Build
- VideoPlayer repeats Play and Stop every 2 seconds on script (video player/Assets/video.cs)

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.