Search Issue Tracker
Fixed
Fixed in 5.0.0-pre.11
Votes
0
Found in [Package]
5.0.0-pre.10
Issue ID
ARFB-24
Regression
No
Samples SimpleAR scene throws Memory Leak error after Pause and Resume
Summary
Using AR Simulation to navigate the SimpleAR scene, clicking the Pause and Resume buttons in Game view reveal bug ARFB-23:
https://jira.unity3d.com/browse/ARFB-23
However, after doing these steps and then exiting Play mode, this Console error occurs:
A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
To See the Bug
Open the ARF Samples project in the Editor.
Open the SimpleAR scene.
In Build settings, select desktop platforms.
Enable XR Simulation in Project settings.
In Scene view, use the AR Simulation overlay to select the biggest office simulation environment.
Enter Play mode.
Click in Game view to give it focus.
In Game view, click the Pause button.
In Game view, click the Resume button.
Exit Play mode.
Note the error in Console; this is the bug.
See Comment for entire Editor log.
Configuration
2021.3.0f1.2 (2021.3/staging 6eacc8284459)
MacOS 12.0.1, MacBook Pro (15-inch, 2019), 2.4 GHz 8-Core Intel Core i9
AR Foundation 5.0.0-pre.10 (f6569c5)
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
- Rendering locks up when not looking at a transparent material on Meta Quest 2
- Volumetrics break when using a Custom Pass to create a Thickness Buffer for Alpha Clipping
- All tests are run instead of only the failed ones when the "Rerun Failed" button is pressed
- GameObject is not masked when the "Render PostProcessing Effects" pass executes with a resolved non-MSAA Color target and MSAA DepthStencil target
- [Android] Gfx.WaitForGfxCommandsFromMainThread high performance usage and inconsistency when built Player scene has Canvas GameObject on a specific Project
Resolution Note:
Two of us cannot repro in Unity 2022.2. Bug was originally seen in a Unity version that will not be supported by AR Simulation. Closing bug.
Resolution Note (fix version 5.0.0-pre.11):
Issue no longer reproducible, likely fixed by another changelist
Two of us cannot repro in Unity 2022.2. Bug was originally seen in a Unity version that will not be supported by AR Simulation. Closing bug.