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: