Unity Issue Tracker - InvalidOperationException is thrown when using NativeList<T>.BinarySearch
Closed
ECSB-49
InvalidOperationException is thrown when using NativeList<T>.BinarySearch
Package: Unity Native Collections
Won't Fix
1.2.X
1.1.X
There are no fixes planned for this Bug
How to reproduce:
1. Open the user's attached project
2. At the top of the Editor window, go to Issue -> BinarySearch
3. Observe the Console
Expected result: no exceptions are thrown
Actual result: "System::InvalidOperationException: The Unity.Collections.NativeList`1[System.Int32] has been declared as [ReadOnly] in the job, but you are writing to it. <...>"
Reproducible with: 1.1.0, 1.2.3-pre.1 (2020.3.32f1, 2021.2.19f1, 2022.1.0b15, 2022.2.0a9)
Could not test with: 0.9.0-preview.6 (2019.4.37f1), 1.3.0-pre.7 (invalid dependencies)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?