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.

  1. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.