Search Issue Tracker

Fixed in 2018.3.X

Fixed in 2019.1.X

Votes

0

Found in

2018.3.0a4

2018.3.2f1

2019.1.0a1

2019.2.0a1

Issue ID

1119209

Regression

Yes

MissingReferenceException and broken GUI after enter/exit Play mode with Script Execution Order tab open

Scripting

-

How to reproduce:
1. Open the attached "Test.zip" project or create a new one
2. In the Menu bar, select "Edit/ Project Settings..."
3. In the Project Settings window, make sure that the "Script Execution Order" tab is selected
4. Enter the Play mode
5. Exit the Play mode
6. Observe the Console window

Expected result: The Console does not contain any errors and Project Settings window is not broken.
Actual result: There are multiple errors in the Console and GUI of the Script Execution Order tab is broken (it is empty, hovering the mouse over it produces even more errors).

Reproducible with - 2018.3.0a4, 2018.3.3f1, 2019.1.0a15, 2019.2.0a2
Not reproducible with - 2017.4.19f1, 2018.3.0a3

Note: The regression was introduced (in 2018.3.0a4) along with the new Project Settings window. (Prior to that, "Script Execution Order" would appear in the Inspector window.)

Errors thrown:
- "MissingReferenceException: The object of type 'MonoScript' has been destroyed but you are still trying to access it. <...>"
- "ArgumentException: GUILayout: Mismatched LayoutGroup.repaint <...>"
- "GUI Error: You are pushing more GUIClips than you are popping. Make sure they are balanced. <...>"
- "Scope was not disposed! You should use the 'using' keyword or manually call Dispose. <...>"

  1. Resolution Note (fix version 2018.3):

    Fixed in 2019.2.0a5
    Backported to 2018.3.7f1, 2019.1.0b3

Comments (16)

  1. ben-hirsh-gripable

    Mar 09, 2022 16:35

    I have this in 2019.4.43f1

  2. Gruguir

    Dec 26, 2020 18:09

    "VOTING DISABLED FOR RESOLVED ISSUES (FIXED)" what a joke

  3. AVeilleuxMesa

    Dec 14, 2020 21:30

    Just got error in 2019.4.5f1 when pressing Ctrl + B with window open. builds project fine if I press Build and Run from build settings but fails to run on build with the errors.

  4. ExNinja

    May 25, 2020 01:31

    This was NOT fixed in 2019.3.13f1 on macOS when building for Oculus Quest.

  5. afshin_a_1

    Sep 04, 2019 17:01

    i have the exact same 3 errors.
    using unity 2018.4.6 on windows 10
    target platform android.
    please fix it quickly, it prevents building sometimes.
    i delete the whole library and fresh restart to perform build. but i keep getting this error still.

  6. FredTuna

    Aug 20, 2019 23:03

    I get the exact same thing when making changes to Script Execution Order. Unity is unusable afterward as the GUI is completely broken. In Unity 2019.2.0.f1

  7. ArcIo

    Aug 15, 2019 16:29

    I did a full reinstall of Unity, Shutdown the PC, Updated my Java and the issue persisted. Then, I went to another tab in project settings and changed from android to standalone. Then my player settings came back. I then switched back to android and I'm now no longer seeing the issue.

  8. ArcIo

    Aug 15, 2019 15:00

    Unity 2019.2.0f1

    Everything was fine when I left the office yesterday. Came in this morning, opened Unity and this issue was suddenly here. I literally did nothing but start Unity. I have no idea how to resolve this issue but I'm getting:

    You are pushing more GUIClips than you are popping
    GUILayout: Mismatched LayoutGroup.repaint
    Failed to update Android SDK package list

    Again, everything was good when I left last night. Came in and this was happening.

  9. chriscode

    Aug 07, 2019 12:41

    Still seeing in 2019.2.0f1

  10. RGV

    Aug 04, 2019 20:32

    Just eventually happened in Unity 2019.2.0f1. Same conditions. Not every time.

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.