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.
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
- [URP][Lighting] The skybox doesn't render after changing the settings of the Material when using the URP Render Pipeline
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
Resolution Note (fix version 2022.2):
Fixed : 2022.2.0a1