Search Issue Tracker

Fixed in 2020.2.X

Votes

0

Found in

2020.1.0b10

2020.1.5f1

Issue ID

1277423

Regression

Yes

Editor crashes with memcpy_repmovs when deleting items from multiple arrays using SerializedProperty

Serialization

-

How to reproduce:
1. Open the attached project named "ArrayDeleteCrash"
2. "Sprite Asset 1" and "Sprite Asset 2" in the project window
3. Click "Delete First (Crash)" button in the Inspector window

Expected result: The first element from the arrays in both assets is deleted
Actual result: Editor crashes memcpy_repmovs dynamic_array<unsigned char,0>::insert

Reproducible with: 2020.1.0b10, 2020.1.8f1
Not reproducible with: 2019.4.12f1, 2020.1.0b9, 2020.2.0a1, 2020.2.0b5

First lines of the crash stack:
0x00007FF6BEE4998E (Unity) memcpy_repmovs
0x00007FF6BAA47690 (Unity) dynamic_array<unsigned char,0>::insert
0x00007FF6BCE8F132 (Unity) FixAlignmentForArrayResize
0x00007FF6BCE8CEF5 (Unity) DeleteArrayElement
0x00007FF6BCE8CF3D (Unity) DeleteArrayElement
0x00007FF6BCFDAE5F (Unity) SerializedProperty::DeleteCommand
0x00007FF6BCFDAAAF (Unity) SerializedProperty::DeleteArrayElementAtIndex
0x00007FF6BD7D80B1 (Unity) SerializedProperty_CUSTOM_DeleteArrayElementAtIndexInternal

  1. Resolution Note (fix version 2020.2):

    Fixed in - 2020.2.0a1 and above

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.