Search Issue Tracker
Fixed in 2022.2.X
Votes
1
Found in
2019.4
2019.4.16f1
2020.3
2021.2
2022.1
Issue ID
1391014
Regression
No
Editor crashes on "MenuController::ExecuteMenuItem" when resetting a script that contains "Reset(){DestroyImmediate(this);}"
Reproduction steps:
1. Open the attached project "repro.zip"
2. Open Scenes/SampleScene scene
3. Select MainCamera in the Hierarchy window
4. Right-click on the "Repro (Script)" component
5. Select "Reset" in the Tooltip
Expected result: Editor does not crash
Actual result: Editor crashes
Reproducible with: 2019.4.34f1, 2020.3.25f1, 2021.2.7f1, 2022.1.0b2
Stack trace:
0x00007ff6f9a42f60 (Unity) MenuController::ExecuteMenuItem
0x00007ff6fa05f9b2 (Unity) ShowDelayedContextMenu
0x00007ff6fa06fe26 (Unity) GUIView::OnInputEvent
0x00007ff6f9b3a527 (Unity) GUIView::ProcessInputEvent
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Add comment