Search Issue Tracker

Fixed

Votes

0

Found in

5.5.0f3

Issue ID

858122

Regression

No

Crash in UnityEditor.SerializedObject:ApplyModifiedProperties() when removing array element on prefab component

Scripting

-

To reproduce:
1. Open attached project
2. Find DialogueData prefab
3. Remove last element in Char array on Font Manager component

Actual: Editor crashes with Fatal error:

The file 'MemoryStream' is corrupted! Remove it and launch unity again!
[Position out of bounds!]
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

From Editor.log:

The file 'MemoryStream' is corrupted! Remove it and launch unity again!
[Position out of bounds!]
UnityEditor.SerializedObject:ApplyModifiedProperties()
UnityEditor.TargetChoiceHandler:DuplicateArrayElement(Object) (at C:\buildslave\unity\build\Editor\Mono\GUI\TargetChoiceHandler.cs:21)
UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32) (at C:\buildslave\unity\build\artifacts\generated\common\editor\GenericMenuBindings.gen.cs:122)

[C:\buildslave\unity\build\Runtime/Serialize/SerializationCaching/CachedReader.cpp line 214]
(Filename: C:/buildslave/unity/build/Editor/Mono/GUI/TargetChoiceHandler.cs Line: 21)

Expected: Editor shouldn't crash when removing array element

Reproducible: 5.4.3p3, 5.5.0p1, 5.6.0a6

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.