Anyone experienced memory leak when using NativeQueue? I think I have one when copying it to NativeList
Confirmed.
Any workarounds?
What is your Unity/ Unity.Collections version?
Sending data from a worker thread to the main with a NativeQueue and there is a memory leak. Though I do not copy to NativeList
Unity 2019.2.5f1
Collections preview - 0.1.1
Unity 2019.2.4f1
Collections preview - 0.1.1
Unity 2019.1.8f1
Collections preview - 0.1.1
Confirmed. It’s very easy to reproduce, simply Enqueue() then Dequeue(). See:
https://forum.unity.com/threads/memory-leak-in-nativequeue.814668/#post-5400846