Search Issue Tracker
Fixed in 2022.2.X
Votes
0
Found in
2019.4.30f1
2020.1.9f1
2020.2.0a12
2020.3.12f1
Issue ID
1369231
Regression
No
[Memory Profiler] ALLOC_DEFAULT_MAIN is reported as not used on Android, even though the Dynamic Heap Allocator is used
The Memory Profiler Package incorrectly warns about System Allocator being in use on Android devices (which can no longer use it due to an allocator change in Android 11). It bases this assumption on a non 0 sized memory usage within ALLOC_DEFAULT_MAIN, which is not included in the recorder memory data.
Steps To Reproduce:
1. Grab a project with some content in it, e.g https://assetstore.unity.com/packages/essentials/tutorial-projects/adventure-sample-game-76216
2. Add the Memory Profiler Package to the project https://docs.unity3d.com/Packages/com.unity.memoryprofiler@latest/
3. Make an android build, deploy it, connect to it and take a snapshot with the memory profiler
4. Open the Snapshot, check the Top Issues
5. And on the Objects And Allocations page, switch the table to Raw / All Memory Regions, search for ALLOC_DEFAULT_MAIN
Actual: ALLOC_DEFAULT_MAIN is reported as occupying address null, aka 0x...0 with an Address Size of 0 B. Top Issues warns of System Allocator being in use.
Expected: ALLOC_DEFAULT_MAIN is reported as occupying a valid address and having a size. Top Issues does not warn of System Allocator being in use.
-
MartinTilo
Jul 05, 2024 14:14
No, this was fixed as part of a larger overhaul and won't be backported.
-
chaehyeok
May 27, 2024 00:21
Would this fix be shipped to LTS version of 2021.3?
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
- Crash on RaiseException when terrain detail instancing is excessive
- Prefab variant reference is lost when assigned by click-and-drag in Prefab Editor mode
- Opening any dropdown in Shader Graph stops the Nodes preview but it still plays in the background
- GPU utilization increases when a GameObject is selected
- Motion Blur has sharp edges when object is moving in the foreground of another object
Resolution Note (fix version 2022.2):
Fixed : 2022.2.0a1