Search Issue Tracker

Active

Under Consideration for 2021.3.X

Votes

47

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)

Comments (6)

  1. 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 ()

  2. 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*)

  3. 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.

  4. 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.

  5. DylanDev_

    Sep 17, 2022 21:47

    This keeps happening to me please fix soon!

  6. putlocker

    Sep 04, 2022 19:59

    ://play.acast.com/s/63145d36949fb9001396a266
    ://play.acast.com/s/63145e9432272e0011edb33a
    ://play.acast.com/s/63145fa43df8380013789afe
    ://play.acast.com/s/6314609d32272e0011edbb2f
    ://play.acast.com/s/6314618277b5ac0012a6d5d8
    ://play.acast.com/s/6314f860949fb9001398fa95?amzn
    ://play.acast.com/s/6314f97fbffcf3001465f7fe?tony
    ://play.acast.com/s/6314fa87c385c3001315cf93?ttdj
    ://play.acast.com/s/6314fbed5682e7001202b762?jane
    ://play.acast.com/s/6314fd3332272e0011f01b48?ggmu
    ://play.acast.com/s/6314fdee949fb90013991067?muna
    ://play.acast.com/s/6314fea3a253860014766a28?slot
    ://play.acast.com/s/6314ffe919a7e20012c00e39?gdpr
    ://play.acast.com/s/63150182848de50012860d4b?opotah
    ://techplanet.today/post/gkjhgkjhgdkajdgadkjgdakjdgku
    ://cccnext.jira.com/wiki/spaces/CAT/pages/2780463740/LKHDlksHDLKSH
    ://whitesource.atlassian.net/wiki/spaces/~62385935bef8a60068c5c8a6/pages/2589327985/fgjBNDGKJDAGKj
    ://boerse-express.com/community/thread/rechterbrein-onderwijsscholen-321584

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.