Search Issue Tracker

Won't Fix

Votes

1

Found in

5.4.0b10

Issue ID

780408

Regression

No

Uncaught exception when entering play mode that has OnGUI call and search bar located in project tab has input

IMGUI

-

Steps to reproduce:

1. Open attached project "_IMGUIrepro.zip"
2. Open "M" scene
3. In search bar which is located in project tab input some text, for exmaple "TestException"
4. Run scene
5. Notice Uncaught exception:
Uncaught exception in async net callback: Object reference not set to an instance of an object
UnityEditor.AsyncHTTPClient:Done(State, Int32)
at UnityEngine.GUISkin.GetStyle (System.String styleName) [0x00010] in C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUISkin.cs:319
at UnityEngine.GUIStyle.op_Implicit (System.String str) [0x00020] in C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUIStyle.cs:586
at UnityEditor.ProjectBrowser.InitSearchMenu () [0x00014] in C:\buildslave\unity\build\Editor\Mono\ProjectBrowser.cs:483
at UnityEditor.ProjectBrowser.AssetStoreSearchEndedCallback () [0x00000] in C:\buildslave\unity\build\Editor\Mono\ProjectBrowser.cs:511
at UnityEditor.ObjectListArea+<QueryAssetStore>c__AnonStorey3E.<>m__60 (UnityEditor.AssetStoreSearchResults results) [0x00356] in C:\buildslave\unity\build\Editor\Mono\ObjectListArea.cs:406
at UnityEditor.AssetStoreResultBase`1[Derived].Parse (UnityEditor.AssetStoreResponse response) [0x000fc] in C:\buildslave\unity\build\Editor\Mono\AssetStore\AssetStoreClient.cs:89
at UnityEditor.AssetStoreClient+<SearchAssets>c__AnonStorey66.<>m__BF (UnityEditor.AssetStoreResponse ar) [0x00000] in C:\buildslave\unity\build\Editor\Mono\AssetStore\AssetStoreClient.cs:751
at UnityEditor.AssetStoreClient+<WrapJsonCallback>c__AnonStorey65.<>m__BD (UnityEditor.AsyncHTTPClient job) [0x00012] in C:\buildslave\unity\build\Editor\Mono\AssetStore\AssetStoreClient.cs:624
UnityEditor.AsyncHTTPClient:Done(State, Int32)

Workaround: make sure that search bar has no input when entering play mode

Note: this is only reproducible when any active script component has calling OnGUI(){}

Reproduced with: 5.1.5f1, 5.2.4f1, 5.3.4f1, 5.4.0p1, 5.5.0a5, 2018.1.0b1

Comments (3)

  1. chrixxxtopher

    Sep 24, 2018 15:59

    for unity 2018.2.7f1

  2. chrixxxtopher

    Sep 24, 2018 15:58

    "Workaround: make sure that search bar has no input when entering play mode"

    This fixes the issue for me as well

  3. Enumerator_T

    Jan 26, 2018 03:09

    Indeed i can confirm this fixes the issue.

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.