Search Issue Tracker
Third Party Issue
Votes
0
Found in
2021.3.44f1
2022.3.49f1
6000.0.22f1
Issue ID
UUM-83601
Regression
No
Big chunk of "Untracked" memory in the Memory Profiler screenshot when a custom .obj file is loaded while in Play Mode
Reproduction steps:
1. Open the attached "repro_IN-84472" project
2. Open the "Assets/TriLib/TriLibSamples/AssetViewer/AssetViewer.unity" Scene
3. Enter the Play Mode
4. Press the "Load Model from File" button and select the "Assets/TestModel/Gebaeude_LOD2_Blatt1056.obj" file
5. Once it loads, open the "Memory Profiler" by going to the "Windows -> Analysis -> Memory Profiler"
6. In the "Memory Profiler", press the "Capture New Snapshot" button
7. In the "Allocated Memory Distribution" section, observe the memory distribution
Expected result: There are no "Untracked" memory
Actual result: There's a big chunk of "Untracked" memory
Reproducible with: 2021.3.44f1, 2022.3.49f1, 6000.0.22f1
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
Notes:
- Reproducible in Player
- “TriLib” does not use native plugins to load the sample model nor does any allocations with “Marshal.AllocHGlobal”
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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
Resolution Note:
After some investigations it seems like TriLib uses StbImageSharp which calls Hebron.Runtime.CRuntime.malloc which in turn calls into Marshal.AllocHGlobal() which is treated as untracked.