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
- Terrain Samples throws warnings in the Console window after import
- UI Builder expands and collapses USS files only by adding or removing selectors
- A vertex stream with a stride of 1 is bound to the GPU in Player when mesh is compressed
- Spot light is not rendered if the Outer Spot Angle is set to below 2.56216 when the Android Build Platform is selected
- StructuredBuffer is not writable to when using DirectX Graphics APIs
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12