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
- Memory leak when a lot of UI elements are spawned and despawned
- Warnings are not logged in the Console window when using external code analyzers
- Errors “TLS Allocator ALLOC_TEMP_TLS, underlying allocator ALLOC_TEMP_MAIN has unfreed allocations, size 288“ appear constantly when Prefab is open
- Crash on PPtr<Shader>::operator or NullException errors spammed in console when calling Dispose() on null GraphicsBuffer with baked Reflection Probes
- “EndRenderPass: Not inside a Renderpass” and other Render Graph errors in the Player when Render Graph is enabled and Overlay UI is used
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