Search Issue Tracker

Fixed in 4.3.X

Votes

0

Found in

4.2.1f4

Issue ID

565490

Regression

Yes

Crash when adding a missing script to multiple objects in a prefab

Assets Management

-

repro:
- create an empty GO and add another one as its child
- create a new script, apply to the child
- (move to Project tab to) create a prefab from this hierarchy of 2 GOs
- remove the script asset (child now has a missing script warning)
- duplicate the child in the scene view instance of the prefab

Problem 1.
- try selecting the two child objects, console prints error:
m_ByteOffset + m_TypeTree->m_ByteSize <= m_Data->size ()
UnityEditor.SerializedObject:InternalCreate(Object[])
UnityEditor.SerializedObject:.ctor(Object[])

Problem 2.
- create a new script
- multiselect children and apply it in the Missing Script place
- crash!:
The file 'MemoryStream' is corrupted! Remove it and launch unity again!
[Position out of bounds! 60 > 56]
(see picture)

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.