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
- Shader Graph Asset icon is not shown on creation unless you confirm the name
- APV Sky occlusion doesn't consider the terrain
- [iOS] "EXC_BAD_ACCESS" Player crash when Script Debugging is enabled
- Cursor skips input fields when tabbing between two sets of input fields
- "Shader error redefinition of 'Varyings'" error appears when selecting the shader
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.