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
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
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Resolution Note (2020.1.X):
Not reproducible on latest 2019.3 and 2020.1 releases (2019.3.1f1, 2020.1.0a23)