Search Issue Tracker
Fixed
Fixed in 2021.3.12f1
Votes
68
Found in
2021.3.9f1
2022.2.0b7
2023.1.0a9
Issue ID
UUM-13617
Regression
Yes
[2021.3] Editor crashes on GetTransformAccess when undoing GameObject duplication
Reproduction steps:
1. Open any Unity project
2. Create any GameObject
3. Inside the created GameObject create a 3D Cube GameObject
4. Duplicate the 3D Cube GameObject
5. Undo
Expected result: Editor does not crash
Actual result: Editor crashes
Reproduced in: 2021.3.9f1
Not reproduced in: 2020.3.39f1, 2021.3.8f1, 2022.1.16f1, 2022.2.0b7, 2023.1.0a9
Reproduced using: macOS Monterey 12.0.1, Windows 10
Notes:
1. GetTransformAccess seems to be macOS related. Windows crash stack frames do not have it
2. Not reproduced when undoing duplication of an empty GameObject
First few stack frames (with 3D objects):
#0 Transform::GetTransformAccess()
#1 RendererUpdateManager::RemoveRenderer(Renderer&)
#2 Renderer::RemoveFromScene()
#3 Renderer::Deactivate(DeactivateOperation)
#4 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
First few stack frames (with UI objects):
#0 Transform::GetTransformAccess()
#1 UI::CanvasRenderer::Deactivate(DeactivateOperation)
#2 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
#3 GameObject::ActivateAwakeRecursively(DeactivateOperation)
#4 GameObject::Deactivate(DeactivateOperation)
First few stack frames (with light objects):
#0 Transform::GetTransformAccess()
#1 LightManager::RemoveLight(Light*)
#2 Light::RemoveFromManager()
#3 GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
#4 GameObject::ActivateAwakeRecursively(DeactivateOperation)
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
- Asset Bundles retain their previous hash and CRC values when an object within a bundle is changed and rebuilt
- APV Reflection Probe Normalization breaks when SSGI is enabled
- Default Custom Components in project have Library counterparts
- [iOS]"The destination host has an erroneous SSL certificate" error is thrown when using UnityWebRequest to connect to the server with a self-signed certificate
- Freeze/crash on DynamicHeapAllocator::Allocate when opening a specific project
richardporteous
Sep 30, 2022 17:13
Windows 2021.3.10f1 LTS my crash report was labeled duplicate of this
enhawk
Sep 26, 2022 06:23
I'm seeing this also.
Unity 2021.3.10f1
macOS 12.6
malinin_unity
Sep 22, 2022 12:56
Unity 2021.2.9f
Windows 11
=================================================================
Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
=================================================================
Managed Stacktrace:
=================================================================
at <unknown> <0xffffffff>
at UnityEditor.EditorApplication:ExecuteMenuItem <0x000e0>
at UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 <0x0008a>
at UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent <0x02040>
at UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent <0x000f2>
at UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler <0x00302>
at UnityEditor.EditorApplication:Internal_CallGlobalEventHandler <0x000bd>
at System.Object:runtime_invoke_void <0x00184>
=================================================================
Received signal SIGSEGV
Obtained 41 stack frames
0x00007ff669fafc68 (Unity) RendererUpdateManager::RemoveRenderer
0x00007ff669f9c458 (Unity) Renderer::RemoveFromScene
0x00007ff669f9a0f7 (Unity) Renderer::Deactivate
0x00007ff669e07827 (Unity) GameObject::ActivateAwakeRecursivelyInternal
0x00007ff669e07439 (Unity) GameObject::ActivateAwakeRecursively
0x00007ff669e0a0f9 (Unity) GameObject::Deactivate
0x00007ff66a11ac05 (Unity) DestroyObjectHighLevel_Internal
0x00007ff66a11a854 (Unity) DestroyObjectHighLevel
0x00007ff66b3a69eb (Unity) CreatedObjectUndo::ApplyUndo
0x00007ff66b3a6b0b (Unity) UndoManager::ApplyUndo
0x00007ff66b3b0397 (Unity) UndoManager::Undo
0x00007ff66aeb2f70 (Unity) MenuController::ExecuteMenuItem
0x00007ff66aeb2652 (Unity) MenuController::ExecuteMainMenuItem
0x00007ff669d15cae (Unity) EditorApplication_CUSTOM_ExecuteMenuItem
0x000001e79c9fa281 (Mono JIT Code) (wrapper managed-to-native) UnityEditor.EditorApplication:ExecuteMenuItem (string)
0x000001e79c9fa14b (Mono JIT Code) UnityEditor.ShortcutManagement.MenuItemEntryDiscoveryInfo:<.ctor>b__7_0 (UnityEditor.ShortcutManagement.ShortcutArguments)
0x000001e79c9f2041 (Mono JIT Code) UnityEditor.ShortcutManagement.Trigger:HandleKeyEvent (UnityEngine.Event,UnityEditor.ShortcutManagement.IContextManager)
0x000001e79ca8e4f3 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutController:HandleKeyEvent (UnityEngine.Event)
0x000001e79ca8e133 (Mono JIT Code) UnityEditor.ShortcutManagement.ShortcutIntegration:EventHandler ()
0x000001e79ca8dcee (Mono JIT Code) UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
slippyfrog
Sep 21, 2022 02:00
I'm seeing this as well:
Unity 2021.3.10f1
macOS 12.5.1
Stack Trace:
Obtained 14 stack frames.
#0 0x00000104ba741e in Transform::GetTransformAccess()
#1 0x000001053729a7 in UI::CanvasRenderer::Deactivate(DeactivateOperation)
#2 0x000001046a1130 in GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
#3 0x000001046a106e in GameObject::ActivateAwakeRecursivelyInternal(DeactivateOperation, AwakeFromLoadQueue&)
#4 0x000001046a0c3e in GameObject::ActivateAwakeRecursively(DeactivateOperation)
#5 0x000001046a1cfa in GameObject::Deactivate(DeactivateOperation)
#6 0x00000104a0d13b in DestroyObjectHighLevel_Internal(Object*, bool)
#7 0x00000104a0a251 in DestroyObjectHighLevel(Object*, bool)
#8 0x00000105ac0812 in CreatedObjectUndo::ApplyUndo()
#9 0x00000105ac7719 in UndoManager::ApplyUndo()
#10 0x00000105ac7eb7 in UndoManager::Undo()
#11 0x00000105d6ba3d in EditMenu::Execute(MenuItem const&)
#12 0x0000010581043e in MenuController::ExecuteMenuItem(MenuItem&, MenuController::ExecutionCause)
#13 0x000001044865f8 in EditorApplication_CUSTOM_ExecuteMenuItem(ScriptingBackendNativeStringPtrOpaque*)
DoN2kcz
Sep 20, 2022 06:49
We're losing a lot of work in our team every day because of this. Any undo is now dangerous. Better to downgrade to an older version for now.
idealidoling
Sep 18, 2022 06:32
I wonder why it's being kept just as "known issues" in a stable version 2021.3.10f1.
Undo is very crucial... Better hold the release before fixing this.
DylanDev_
Sep 17, 2022 21:47
This keeps happening to me please fix soon!