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)"