Search Issue Tracker

Fixed

Fixed in 6000.0.43f1, 6000.1.0b11, 6000.2.0a7

Votes

0

Found in

6000.0.0f1

6000.0.40f1

6000.1.0a2

6000.2.0a1

7000.0.0a1

Issue ID

UUM-98587

Regression

No

Adding non-context menu item via ContextMenuUtility API can crash Editor down the line

-

Using the attached BoxColliderCtx.cs script, do:
1. Execute "DEBUG/Create GO and add comp" menu item.
2. Notice there's a GO with BoxCollider now in the hierarchy.
3. Enter "BoxCollider Context" context.
4. Right click in SV more than once so the menu's shown at least 2 times (you should see a contextual menu with "SomeMenuItem" entry - don't click it!).
5. Undo - the GO should be gone from the hierarchy.
6. Redo - GO should return but have no BoxCollider attached.
7. Hit "p" to trigger `SomeMenuItem` menu item (if it conflicts, go to shortcut manager and unbind p from everything else other than SomeMenuItem. Then repeat the steps from scratch.)
8. Editor crashes

Expected result: Action is Completed
Actual result: Editor crashes

Reproducible with: 6000.0.0f1 (6.0.1), 6000.0.40f1 (6.0.4)

Reproducible on: macOS, Windows 10, Windows 11
Not reproducible on: No other environment tested

Notes: CQA could not reproduce the issue locally

First few lines of stack traces:
{noformat}
0x00007FFB185845D1 (Unity) Scripting::ScriptingWrapperFor
0x00007FFB194AC91D (Unity) ScriptCommands::Validate
0x00007FFB199209E1 (Unity) ValidateSubmenu
0x00007FFB1993B945 (Unity) ContainerPlatform::ContainerWndProc
0x00007FFBC23383F1 (USER32) DispatchMessageW{noformat}
{noformat}
0x00007FF819FA4C48 (Unity) ScriptableBatchRenderer::RenderMultipleMeshes
0x00007FF819F9F7FA (Unity) ScriptableBatchRenderer::Flush
0x00007FF81B50C8A2 (Unity) BRGPickingDrawLoop
0x00007FF81B50C008 (Unity) BRGInvocationRenderDrawCommand
0x00007FF81B50C28A (Unity) BRGInvocationRenderRootNode{noformat}
{noformat}
0x00007FFBEF0E7E71 (Unity) Scripting::ScriptingWrapperFor
0x00007FFBF001163D (Unity) ScriptCommands::Validate
0x00007FFBEFCAFAFD (Unity) MenuController::ExecuteMenuItem
0x00007FFBEFCAF21D (Unity) MenuController::ExecuteMainMenuItem
0x00007FFBEE6286A5 (Unity) EditorApplication_CUSTOM_ExecuteMenuItemInternal{noformat}

  1. Resolution Note:

    Postponing port

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.