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
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12