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
- Editor crashes on StoredGraphicsBuffer::GetGfxBufferID when VFX Graph property is modified during Play Mode and Application.targetFrameRate is used to limit FPS
- Crash on NVAPI_Thunk when changing Player resolution while HDR display is used and Direct3D12 is set as the graphics API
- Only one out of multiple cameras is shown in the Play Mode while HDR display is used and Direct3D12 is set as the graphics API
- The "Paste Component as New" option is incorrectly displayed as active despite the action being prohibited
- "TLS Allocator ALLOC_TEMP_TLS" errors are thrown when unsuccessfully importing an FBX file
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12