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
- Opening Terrain Prefab in Prefab Editing Mode throws "NullReferenceException" error
- [Search] Dragging query pills put them behind the search text field
- A CustomPropertyDrawer that returns a PropertyField for a property named the same as a child field will not render all child fields
- Graphics Settings shows default values instead of the real values in the Rendering Debugger when Volume.profile is assigned via script
- Deleting multiple Tags throws “NullReferenceException”, and "Retrieving array element that was out of bounds" errors when holding the Enter key
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.