Search Issue Tracker
Fixed in 0.2.0-preview.13
Votes
24
Found in [Package]
preview 0.1.0 - preview - 0.1.1
Issue ID
1177449
Regression
Yes
Memory leak occurs when filling NativeArray from NativeQueue since allocations are never deallocated
How to reproduce:
1. Open attached project
2. Open Profiler window
3. Enter the Play Mode
4. Select Memory part of the Profiler
5. Choose a Detailed profiling, and press Gather object references
6. Press Take a Sample Playmode and repeat after few seconds, and notice that NativeArray is leaking memory
Reproducible with: 2019.1.0a1, 2019.1.14f1, 2019.2.7f2, 2019.3.0b3, 2020.1.0a5
Not reproducible with: 2017.4.32f1, 2018.4.10f1
Reproducible with package: Collections preview 0.1.0 and up
Not reproducible with package: Collections preview.20 - 0.0.9 and down
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
hongquang1799
Feb 01, 2020 15:24
this bug was fixed in preview 0.2.4
francois85
Jan 24, 2020 08:35
You have my vote
arkano22
Jan 24, 2020 08:25
Been experiencing this myself, *very* frustrating. Here's a bit more insight about the cause:
https://forum.unity.com/threads/memory-leak-in-nativequeue.814668/#post-5400846
yongheekim
Dec 19, 2019 09:37
I know you guys have lots of things on the plate. But I'm really frustrated by this... Because I don't have whole lot of experience with garbage collection and memory management. So It's hard to for me to pin down the cause of memory leak and fix my code... ;д;