Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X, 2021.2.X
Votes
1
Found in
2019.4.18f1
2020.2.2f1
2020.3
2021.1.0a7
2021.2
Issue ID
1324978
Regression
Yes
Crash on BuildPrefabInstanceCorrespondingObjectMap when overriding nested prefab inside AssetDatabase.StartAssetEditing() block
How to reproduce:
1. Open user's attached project from "CrashTest 2020.2.2f1.zip"
2. Open Scene "CrashTestScene"
3. Add 2 objects as children under Prefab "Inner" which is under "Outer" in Hierarchy
4. Select Prefab "Inner" and click the "Crash Test" button in Inspector
5. Observe crash
Reproducible with: 2019.4.18f1, 2019.4.24f1, 2020.2.2f1, 2020.3.4f1, 2021.1.0a7, 2021.1.3f1, 2021.2.0a12
Not reproducible with: 2018.4.33f1, 2019.4.17f1, 2020.2.1f1, 2021.1.0a6
First lines of stack trace:
0x00007ff76b5f93d0 (Unity) BuildPrefabInstanceCorrespondingObjectMap
0x00007ff76b5f5343 (Unity) AddGameObjectsToPrefabAndConnect
0x00007ff76c0b7dd6 (Unity) PrefabUtility_CUSTOM_AddGameObjectsToPrefabAndConnect_Internal
0x000002042c54287d (Mono JIT Code) (wrapper managed-to-native) UnityEditor.PrefabUtility:AddGameObjectsToPrefabAndConnect_Internal (UnityEngine.GameObject[],UnityEngine.Object)
0x000002042c541f93 (Mono JIT Code) UnityEditor.PrefabUtility:AddGameObjectsToPrefabAndConnect
Note:
1. Crash occurs when applying more than one AddedObjectOverrides to it inside AssetDatabase.StartAssetEditing, works fine with one
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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0a3
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0b9
Resolution Note (fix version 2021.1):
Fixed in 2021.1.22f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.19f1
Resolution Note (fix version 2019.4):
Fixed in Version 2019.4.31f1