Search Issue Tracker
Won't Fix
Votes
0
Found in
2023.2.0a15
2023.3.0a14
Issue ID
UUM-55749
Regression
Yes
User gets an error "MissingReferenceException: The object of type 'UnityEditor.DockArea' has been destroyed but you are still trying to access it."
Steps to reproduce:
- Create a project;
- Go to the menu "Window" -> "Text";
- Select "Sprite Importer"
- Verify that the "Sprite Importer" popup becomes visible;
- Click the kebab menu and verify that the contextual menu becomes visible;
- Close the "Sprite Importer" window;
- Observe that the contextual menu stays on the screen;
- In the contextual menu, which is still displayed, select "Add Tab" -> "Scene";
- Observe the "Console" window.
Expected Result: When the user closes the "Sprite Importer" popup contextual menu should be removed too. Any errors in the Console.
Actual Result: The console displays an error "MissingReferenceException: The object of type 'UnityEditor.DockArea' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object." Added screenshot in the "Attachments" section.
Reproducible with: 2023.2.0a15, 2023.2.0b18, 2023.3.0a14.
Not reproducible with: 2021.3.32f1, 2022.3.13f1, 2023.1.19f1, 2023.2.0a14.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
Due to the state of the new Contextual Menus feature, we decided to revert to OS Menus in 2023.3. Hence, we are cancelling all 2023.2.X ports and recommend using 2023.3.0b1 or higher for more stable context menus. The feature will be reconsidered in future versions.