Search Issue Tracker

Duplicate

Votes

0

Found in

2020.2.0b3

2020.3

2021.2

2021.2.8f1

2022.1

2022.2

Issue ID

1397522

Regression

Yes

ArgumentOutOfRangeException is thrown for ReorderableList when nesting SerializedProperties

Quality of Life

-

How to reproduce:
1. Open the user's attached project
2. In the Project window, navigate to Assets/Scripts
3. Select the Asset "Recurse Asset Array Error"
4. In the Inspector window, expand one of the "RecurseAsset Array Error-0" fields and attempt to add further nested arrays

Expected result: no errors are thrown
Actual result: error is thrown: "ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection."

Reproducible with: 2020.2.0b3, 2020.3.29f1, 2021.2.12f1, 2022.1.0b8, 2022.2.0a5
Not reproducible with: 2019.4.36f1, 2020.2.0b2

Notes:
1. In 2020.2, the error is thrown but nested arrays can be added further, while in later versions the error breaks the Inspector and nested arrays cannot be added
2. Related errors are thrown in some versions: "InvalidOperationException: The operation is not possible when moved past all properties (Next returned false)", "ArgumentNullException: Value cannot be null.", "NullReferenceException: SerializedObject of SerializedProperty has been Disposed."

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.