NativeQueue<T>.ParallelWriter leak [preview-0.1.1]

Haven’t test it on earlier versions, but using Unity 2019.2.0f1 and Unity.Collections preview-0.1.1, using the ParallelWriter version will cause leak when trying to Dequeue. You can replicate this in the main thread or in a job. All you need is NativeQueue.ParallelWriter version executing Enqueue.

I have submitted a repo with the case number 1175386.

[ ]'s

1 Like

Hmm does this also result in the Dequeue returning false when it should be true? They fixed that in 0.1.1 for the non concurrent version and it also leaked memory as a side effect.

1 Like

Nop, the result is correctly true. The only odd think is the leak.

[ ]'s

This is fixed in [0.2.0-preview] - 2019-08-28.

1 Like