Reproduction steps:
1. Open the attached project “CurveCrash“
2. Open the "Assets/Scenes/SampleScene.unity" scene
3. Select the “MyCurve“ GameObject in the Hierarchy window
4. In the Inspector window, right click on the curve in the “Animation Curve Test (Script)” component
Expected result: No crash
Actual result: Curve window opens and Editor crashes
Reproducible with: 2023.1.0a23, 2023.1.6f1, 2023.2.0a14
Not reproducible with: 2021.3.29f1, 2022.3.6f1, 2023.1.0a22
Fixed in: 2023.2.0a15
Reproducible on: macOS Ventura 13.4.1 (M1 Max), macOS Ventura 13.4.1 (c) (Intel)
Not reproducible on: Windows 11
First few lines of stack trace:
{{#0 0x00000104d7a734 in ShowDelayedContextMenu(bool) }}
{{#1 0x00000104d980d0 in GUIView::OnInputEvent(InputEvent&) }}
{{#2 0x00000103907d08 in GUIView::ProcessInputEvent(InputEvent&) }}
{{#3 0x00000104da5b54 in -[GUIRenderView handleEvent:] }}
{{#4 0x00000104da63d8 in -[GUIRenderView rightMouseUp:] }}
#5 0x0000019add4f10 in _routeRightMouseUpEvent
Note: If Editor doesn't crash, repeat the 3rd step a few times and wait a few seconds after clicking the curve