Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2021.2
2021.3
2021.3.0f1
Issue ID
1422124
Regression
Yes
Crash when Undoing GameObject copy after Transform.SetParent(null) call to set World as the parent
Reproduction steps:
Create empty project
1. Import and open the project scene (TestUndoBugCrash.zip)
2. Select the Cube prefab instance inside the "Parent" object
3. Click the button in Game View to duplicate the prefab
4. Observe that the prefab copy is a child of World now
5. Ctrl+z triggering Undo will crash Unity
Expected result: Editor undoes the last action
Actual result: Editor crashes
Reproducible with:2021.2.0a9, 2021.3.0f1, 2022.1.0a11
Not reproducible with: 2019.4.39f1, 2020.3.34f1, 2021.2.0a8, 2022.1.0a12
Reproducible on: Windows 10 (20H2)
0x00007ff7726bc9cd (Unity) Scene_CUSTOM_GetRootCountInternal
0x000002c266ef79aa (Mono JIT Code) (wrapper managed-to-native) UnityEngine.SceneManagement.Scene:GetRootCountInternal (int)
0x000002c266ef78f3 (Mono JIT Code) UnityEngine.SceneManagement.Scene:get_rootCount ()
0x000002c266ef76d3 (Mono JIT Code) UnityEditor.SceneVisibilityManager:AreAllDescendantsHidden
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
- Crash on BurstCompilerService::CompileAsync when opening a specific project
- [Android] Particles aren't rendered when the shader "Particle/Standard Unlit" or "Particles/Standard Surface" is used on a Material
- Crash on nvoglv64.dll when opening a project
- [RenderGraph] [CameraStacking] Passes are failing when CameraStacking and RG are enabled
- Physics and Raycast have different behavior when enum is exposed in the Editor
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12