Unity Issue Tracker - NativeArray appears as disposed of when updating the safety handle of a list with the Add function
Closed
UUM-17174
NativeArray appears as disposed of when updating the safety handle of a list with the Add function
Unity: Core Runtime
Won't Fix
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
This is a known issue as described here:
https://docs.unity3d.com/Packages/com.unity.collections@2.1/manual/issues.html
Steps to reproduce:
1. Open the user’s attached project
2. Open Window > General > Test Runner
3. In the Test Runner window switch to Edit Mode
4. Run the "MinRepro_TempListToTempArrayGetsInvalidated" test
Expected result: The test passes without any errors
Actual result: The test fails due to the “The Unity.Collections.NativeList`1[System.Int32] has been deallocated, it is not allowed to access it“ error