Search Issue Tracker

Duplicate

Votes

0

Found in

5.2.0f3

Issue ID

729290

Regression

Yes

Crash when using editor scripts and applying prefab

Editor - Other

-

-

Priority: 2Necessary for shipping a final release

-

Severity: 1Crash, freeze, data loss, work stops

To reproduce:
1. Open project, open scene "player test" in "Prototyping/Scenes/Testing"
2. Select "player" object.
3. Press "revert" or "apply"
The script "PEPrefabScript" should produce a null reference error, and, after a few seconds, Unity should crash. The crash doesn't occur if you comment out line 434 in the script (the one that causes the null reference) (PrefabUtility.ReplacePrefab(instantiatedPrefab, PrefabUtility.GetPrefabParent(instantiatedPrefab), ReplacePrefabOptions.ConnectToPrefab);).

Response avatar

This is a duplicate of issue #728853

Editor crashes when stopping scene

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.