Author Topic: NGUI 3.0.8f3 Adding Colored Checkbox causes exceptions when run  (Read 4262 times)

John.Bergman

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
NGUI 3.0.8f3 Adding Colored Checkbox causes exceptions when run
« on: January 03, 2014, 03:58:07 AM »
When I drag the Control-Colored Checkbox over to my UI - making no changes other than the depth to pace it on top of the background of the window, I receive two exceptions

Why would adding a checkbox add an async HTTP operation?

--
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:\BuildAgent\work\d3d49558e4d408f4\artifacts\EditorGenerated\GUISkinBindings.cs:267
  at UnityEngine.GUIStyle.op_Implicit (System.String str) [0x00020] in C:\BuildAgent\work\d3d49558e4d408f4\artifacts\EditorGenerated\GUIStyleBindings.cs:823
  at UnityEditor.ProjectBrowser.InitSearchMenu () [0x00014] in C:\BuildAgent\work\d3d49558e4d408f4\Editor\Mono\ProjectBrowser.cs:457
  at UnityEditor.ProjectBrowser.AssetStoreSearchEndedCallback () [0x00000] in C:\BuildAgent\work\d3d49558e4d408f4\Editor\Mono\ProjectBrowser.cs:485
  at UnityEditor.ObjectListArea+<QueryAssetStore>c__AnonStoreyF.<>m__11 (UnityEditor.AssetStoreSearchResults results) [0x00356] in C:\BuildAgent\work\d3d49558e4d408f4\Editor\Mono\ObjectListArea.cs:407
  at UnityEditor.AssetStoreResultBase`1[Derived].Parse (UnityEditor.AssetStoreResponse response) [0x000fc] in C:\BuildAgent\work\d3d49558e4d408f4\Editor\Mono\AssetStore\AssetStoreClient.cs:89
  at UnityEditor.AssetStoreClient+<SearchAssets>c__AnonStorey2C.<>m__49 (UnityEditor.AssetStoreResponse ar) [0x00000] in C:\BuildAgent\work\d3d49558e4d408f4\Editor\Mono\AssetStore\AssetStoreClient.cs:751
  at UnityEditor.AssetStoreClient+<WrapJsonCallback>c__AnonStorey2B.<>m__47 (UnityEditor.AsyncHTTPClient job) [0x00012] in C:\BuildAgent\work\d3d49558e4d408f4\Editor\Mono\AssetStore\AssetStoreClient.cs:624
UnityEditor.AsyncHTTPClient:Done(State, Int32)


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.0.8f3 Adding Colored Checkbox causes exceptions when run
« Reply #1 on: January 03, 2014, 04:00:36 AM »
I have no idea. I've seen it around, and it's not an error and as far as I can tell it's a completely pointless Debug.Log entry that started happening with Unity 4.3. It's some bug in Unity. NGUI doesn't use HTTP/WWW.

zippo227

  • Jr. Member
  • **
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 55
    • View Profile
Re: NGUI 3.0.8f3 Adding Colored Checkbox causes exceptions when run
« Reply #2 on: January 07, 2014, 11:54:58 PM »
I'm getting a similar error. It started when I began using NGUI 3.0.8f7 just for reference. I never noticed it before then.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.0.8f3 Adding Colored Checkbox causes exceptions when run
« Reply #3 on: January 08, 2014, 12:51:44 PM »
It's not related to any NGUI version. I saw it occur even in a clean project with nothing in it.

nzen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 30
    • View Profile
Re: NGUI 3.0.8f3 Adding Colored Checkbox causes exceptions when run
« Reply #4 on: March 02, 2014, 07:24:54 PM »
Unchecking "Show Asset Store search hits" in Edit > Preferences fixes this message.

What does that option even mean? It says "Should the number of free/paid assets from the store be shown in the Project Browser?" in the Unity manual.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.0.8f3 Adding Colored Checkbox causes exceptions when run
« Reply #5 on: March 02, 2014, 09:46:10 PM »
That's a question for Unity. I have no idea what it does.