Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

2.1.4 - Collections

Issue ID

ECSB-49

Regression

No

InvalidOperationException is thrown when using NativeList<T>.BinarySearch

Package: Unity Native Collections

-

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)

  1. Resolution Note:

    There are no fixes planned for this Bug

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.