Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.1.0a10
2019.2
2019.3
2019.3.9f1
2020.1
2020.2
Issue ID
1243062
Regression
No
MissingReferenceException is thrown in the Play mode
How to reproduce:
1. Open the attached repo-812099.zip project
2. Enter the Play mode
Expected: no errors in the Console window
Actual: Twoo errors are printed in the Console window:
- MissingReferenceException: The object of type 'DockArea' has been destroyed but you are still trying to access it.
- Failed to load window layout: System.ArgumentException: Window layout at '/Users/unity/Documents/PS/EditorMisc/test.wlt' could not be loaded.
MissingReferenceException reproducible with: 2019.1.0a10, 2019.1.14f1, 2019.2.21f1, 2019.3.14f1, 2020.1.0b9, 2020.2.0a11
Not reproducible with: 2018.4.23f1, 2019.1.0a9
-
SantiagoIsAFK
Dec 11, 2023 04:32
Fixied. Just reset the layouts. Is bellow of the close button of the unity
-
thomasgainant
Sep 28, 2023 10:02
> Unfortunately, the user code is switching layout while entering play mode which destroy and recreate new windows that register to EditorApplication.playModeStateChanged and at this time their view is not fully created causing many issue null ref issues. The user best options is to delay the layout change once the system has fully enter playmode.
What the hell does this even mean?
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
- [Android] Crash on vendor/lib64/egl/libGLES_mali.so when Graphics Jobs(Experimental) is disabled and the Player is running on the Google Pixel 6 with the March security patch installed
- Profiler does not profile after building the Project with Autoconnect Profiler Option enabled
- Editor slows down when selecting a script with the [HideInInspector] attribute on arrays with dynamic values
- [XR] Custom Pass not working as intended with Single Pass Instanced when XR is initialized after runtime start
- NullReferenceException floods the Console when Previewing Probe Adjustments before Probe Volume Baking is finished, Prove Volume Baking hangs
Resolution Note (2020.2.X):
Unfortunately, the user code is switching layout while entering play mode which destroy and recreate new windows that register to EditorApplication.playModeStateChanged and at this time their view is not fully created causing many issue null ref issues. The user best options is to delay the layout change once the system has fully enter playmode.