Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
2
Found in
6000.0.75f1
6000.3.16f1
6000.4.8f1
6000.5.0b9
6000.6.0a5
Issue ID
UUM-143136
Regression
No
InvalidOperationException error thrown when deallocating a NativeArray on exiting Play mode after using AsyncGPUReadback.RequestIntoNativeArrayAsync
How to reproduce:
1. Open the attached "AsyncGPUReadbackUndisposable.zip" project
2. Open the "SampleScene"
3. Enter the Play mode
4. Exit Play mode
5. Observe the Console
Actual result: "InvalidOperationException: The Unity.Collections.NativeArray1[System.Single] has been set to undisposable and cannot be deallocated." error is thrown in the Console
Expected result: No errors are thrown in the Console
Reproducible with: 6000.0.0f1, 6000.0.75f1, 6000.3.16f1, 6000.4.8f1, 6000.5.0b9, 6000.6.0a5
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Note: Full error message:
"InvalidOperationException: The Unity.Collections.NativeArray1[System.Single] has been set to undisposable and cannot be deallocated.
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.CheckDeallocateAndThrow (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle handle) (at <45311e8ef3c14e41beb8c7dcd27b7c82>:0)
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.DisposeHandle (Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle& safety) (at <45311e8ef3c14e41beb8c7dcd27b7c82>:0)
Unity.Collections.NativeArray1[T].Dispose () (at <45311e8ef3c14e41beb8c7dcd27b7c82>:0)
MST.Unity.Teer.ReadbackTestCoroutine.OnDisable () (at Assets/IN-142929_ReadbackTest.cs:33)"
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ShaderGraph Graph Inspector "Vector4" W label is always truncated to "..."
- Transform Scale "Enable constrained proportions" button appears low-resolution at display scaling ≥ 225%
- "Will this app be targeted to children as defined by applicable laws?" dropdown shows "Please select" placeholder after relinking the project
- Crash on "EXC_BAD_ACCESS" when exiting the application
- InvalidOperationException error thrown when deallocating a NativeArray on exiting Play mode after using AsyncGPUReadback.RequestIntoNativeArrayAsync
Add comment