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
- ScrollView speed is slower when entering Play mode
- UI Builder elements disappear and "Semantic - Unknown template name" error appears when changes to "Template" parameter are saved
- Renderers outside Light Probe hull use incorrect Ambient Probe values when "Renderer Light Probe Selection" is set to "Use Ambient Probe" and "Light Probes" on Mesh is set to "Blend Probes"
- ArgumentNullException error occurs when selecting a Camera in the Hierarchy with the Scene view open
- Clicking 'Open Editor Log' through the Console fails to open redirected Logs when relative Log files exist outside of the Project root
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0a12