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.
Comments (2)
-
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Resolution Note (fix version 2022.2):
Fixed : 2022.2.0a1