A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.
In working on saving to file the NativeArrays
used to fetch BlendShapeCoefficients in ARFoundation, I encountered the error above.
How does one enable the type of full stack trace this error requires to decipher where things went wrong?
- I tried the full stack checkboxes on the bottom of Player Settings, but it still does not reveal further details.
- I have tried to
.Dispose()
both upon beginning a new recording and on saving. Calling .Dispose led to another errorInvalidOperationException: The NativeArray has been deallocated, it is not allowed to access it
- I also tried using brackets
[DeallocateOnJobCompletion]
above the NativeArray variable declarations (still occurs)