Search Issue Tracker
Won't Fix
Votes
0
Found in
2022.2.15f1
2023.2.0a6
Issue ID
UUM-33671
Regression
Yes
Crash on MergePrefabChanges when opening scenes
Reproduction steps:
1. Open the attached user's project ("Or..Client.zip")
2. Select UniCorn -> Scenes Window -> WorldScene
Expected result: The scene is opened
Actual result: The Editor crashes
Reproducible with: 2022.2.0a9, 2022.2.15f1, 2023.2.0a6
Not reproducible with:2020.3.46f1, 2021.3.22f1, 2022.2.0a8
Reproducible on: macOS 13.3.1 (Intel)
Stacktrace:
0x00007ff774b45db1 (Unity) MergePrefabChanges
0x00007ff774b284cd (Unity) MergePrefabInternal
0x00007ff774b24904 (Unity) MergeAllPrefabInstanceInfosDuringLoad
0x00007ff774b25ac2 (Unity) MergeAllPrefabInstancesDuringLoad
0x00007ff77391232a (Unity) LoadSceneOperation::CompleteAwakeSequence
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
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
- Group Node name text is way smaller in the renaming state than the actual display size
- "Visual Effect Event Tester" Overlay is cut off when using the Scene View not in standard dimensions
- Visual Effect overlay has no tooltips for the playback controls
- Github link in the Rider tab of Preferences window has no padding on the left side and is not aligned with the other elements
Resolution Note:
The issue is caused by a call to AssetDatabase.RenameAsset() in OnValidate() in OrionInputDefinition.cs. The scene opens correctly when removing the renaming operation. OnValidate() is meant to validate that data changed, and should not be used for complex tasks that involve asset operations: https://docs.unity3d.com/2022.2/Documentation/ScriptReference/MonoBehaviour.OnValidate.html. Unfortunately we currently don't have a way to fail calls to these operations during OnValidate().