Search Issue Tracker

Not Reproducible

Votes

1

Found in

2019.3.0a2

2020.1.0a1

2020.1.0a9

Issue ID

1191858

Regression

No

[SerializeReference] Crash when deleting first child element in list

Asset - Importers

-

Reproduction steps:
1. Open the attached project "1191858" and "test" scene
2. In the Project window, open "Test.cs", comment out line 44, save it and compile the code by going back to the Editor
3. Uncomment the same line, save it and recompile again
4. In the Hierarchy, select Main Camera object and in the Test (Script) component, expand list P
5. Right-click on the first element in list P (Element 0) and press "Delete Array Element"

Reproducible with: 2019.3.0a2, 2019.3.0b7, 2020.1.0a9
Could not test with: 2017.4.33f1, 2018.4.11f1, 2019.2.10f1, 2019.3.0a1 (SerializeReference inaccessible due to its protection level)

Note1: Crash only occurs when deleting the first element of the list
Note2: If code is not recompiled (steps 2 and 3 are skipped) a silent crash occurs

Workaround: Deleting the SerializeReference attribute stops the crashes

  1. Resolution Note (2020.1.X):

    Not reproducible on latest 2019.3 and 2020.1 releases (2019.3.1f1, 2020.1.0a23)

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.