Search Issue Tracker
Fixed in 2019.1.X
Duplicate in 2019.4.X
Votes
0
Found in
2018.4
2018.4.19f1
2019.1
Issue ID
1242943
Regression
No
ManagedHeap UsedSize leaking memory when MemorySnapshot RequestNewSnapshot in package is called and Allow Unsafe Code is enabled
How to reproduce:
1. Open attached project "MemorySnapshotLeakSampleZip.zip"
2. Open the Package Manager and add a local package from disk; the package is located in the project's root directory(MemorySnapshotLeakPackage).
3. Open the Profiler window and start profiling the Editor while looking at the Memory module(Used total and Mono)
4. From the Menu Bar select Memory Snapshot Test and click the only button in the window that pops up to take memory snapshot
5. Note the memory usage after a snapshot is taken. Each time the snapshot is taken, the Mono memory increases exponentially and does not get cleared.
Expected result: the memory usage stops increasing at around 100-200Mb
Actual result: Mono memory increases exponentially and does not get cleared
Reproducible with: 2018.4.23f1, 2019.1.0a5
Fixed in: 2019.1.0a6 and above
Notes:
The issue is only reproducible on Windows, could not reproduce on macOS
The issue is only reproducible when the package contents are imported as a package
The issue is only reproducible when 'Allow unsafe code' in the package .asmdef is enabled
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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Resolution Note (fix version 2019.1):
Verified in:
2019.1.0a6