Search Issue Tracker

Won't Fix

Votes

13

Found in

2019.4

2019.4.13f1

2020.3

2021.1

2021.2

Issue ID

1327840

Regression

No

[UaaL] After unloading a Unity scene, memory remains allocated depending on how much memory was used in the scene

iOS

-

Steps to reproduce:
1. Open the attached project ("uaal-example-memory-demo.zip")
2. Open and run "both.xcworkspace" in Xcode
3. Open "Debug navigator" in Xcode to inspect Memory usage on the device
4. Press the "Init" button
5. Press "Increase Memory" button
6. Press "Unload" button
7. Notice the memory usage on the device
8. Repeat steps 4-6, but now press the "Increase Memory" button 6-8 times
9. Notice the memory usage on the device

Expected results: Memory usage is the same in steps 7 and 9
Actual results: Memory usage is higher after allocating more memory while in the Unity scene

Reproducible with: 2019.4.24f1, 2020.3.4f1, 2021.1.3f1, 2021.2.0a13
UaaL is not available in 2018.4

Reproducible on:
iPad 9.7" 6th gen (14.4)
iPad Air 2 (11.0.3)
iPhone XR (13.4.1)
iPhone 8 Plus (12.0)
VLNQA00099, Google Pixel XL (Pixel XL), Android 10, CPU: Snapdragon 821 MSM8996 Pro, GPU: Adreno (TM) 530

Notes:
- To setup and upgrade the project you can use instructions here: https://github.com/Unity-Technologies/uaal-example/blob/master/docs/ios.md
- The amount of memory can vary from 10-30 MB change from a single "Increase Memory" press. "Increase Memory" just generates 500 models to increase memory usage in the app

  1. Response avatar

    Resolution Note (2021.2.X):

    This is the best we can do at this time. Current workaround is load and unload an empty scene.

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.