View Issue Details

IDProjectCategoryLast Update
0019761AI War 2Crash/ExceptionJul 24, 2018 4:51 pm
Reporterdv Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.749 Release The Hounds 
Summary0019761: NullReferenceException repeatedly raised after I hide the GUI
DescriptionAfter I trigger the Debug_ToggleHideGUI (with LeftControl+F12), AIW2 repeatedly reports a null reference exception.

I can attach the whole debug log, but here are two such exceptions:

7/13/2018 11:20:28 AM
-----------
Exception: window: Window_SidebarShips
System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.GameObject.SetActive(UnityEngine.GameObject,bool)
  at Arcen.Universal.ArcenUI_Element.SetActiveIfNeeded (System.Boolean shouldBeActive) [0x00020] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Element.cs:142
  at Arcen.Universal.ArcenUI_Element.UpdateFromUI (System.Single DeltaTime) [0x0006f] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Element.cs:363
  at Arcen.Universal.ArcenUI_Window.OnUpdate (System.Single DeltaTime) [0x0013f] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Window.cs:120
  at Arcen.Universal.ArcenUI.OnUpdateFromMainThread () [0x00067] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI.cs:315
Stack Trace: Arcen.Universal.ArcenUI.OnUpdateFromMainThread () (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/ArcenUI/ArcenUI.cs:319)
Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Engine_Universal.cs:1108)
ArcenGameController.Update () (at D:/vclarge/AI_War_2_Ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:84)



  at System.Environment.get_StackTrace () [0x00000] in <f826c2584fc94ec19a48a6576640bdc5>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x000d1] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:155
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00005] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:116
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00004] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:96
  at Arcen.Universal.Engine_Universal.LogWritten (System.String LogString, System.String StackTrace, UnityEngine.LogType Type, System.Exception Cause, System.Boolean CameFromUnity) [0x000d3] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:844
  at Arcen.Universal.Engine_Universal.LogWrittenFromUnity (System.String LogString, System.String StackTrace, UnityEngine.LogType Type) [0x0003d] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:797
  at UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) [0x00000] in <1e1760ad73da4b428754bbe08d67ab8d>:0

7/13/2018 11:20:28 AM
ErrorsReportedByEngine: -----------
Exception: window: Window_SidebarShips
System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.GameObject.SetActive(UnityEngine.GameObject,bool)
  at Arcen.Universal.ArcenUI_Element.SetActiveIfNeeded (System.Boolean shouldBeActive) [0x00020] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Element.cs:142
  at Arcen.Universal.ArcenUI_Element.UpdateFromUI (System.Single DeltaTime) [0x0006f] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Element.cs:363
  at Arcen.Universal.ArcenUI_Window.OnUpdate (System.Single DeltaTime) [0x0013f] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Window.cs:120
  at Arcen.Universal.ArcenUI.OnUpdateFromMainThread () [0x00067] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI.cs:315
Stack Trace: Arcen.Universal.ArcenUI.OnUpdateFromMainThread () (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/ArcenUI/ArcenUI.cs:319)
Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Engine_Universal.cs:1108)
ArcenGameController.Update () (at D:/vclarge/AI_War_2_Ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:84)



  at System.Environment.get_StackTrace () [0x00000] in <f826c2584fc94ec19a48a6576640bdc5>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x000d1] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:155
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00005] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:116
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00004] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\UtilityLibraries\ArcenDebugging.cs:96
  at Arcen.Universal.Engine_Universal.WriteToErrorFile (System.String ErrorFile, System.String ErrorName, System.String ErrorText, System.Boolean SuppressArcenDebugLog) [0x0016c] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:1321
  at Arcen.Universal.Engine_Universal.WriteToErrorFile (System.String ErrorFile, System.String ErrorName, System.String ErrorText) [0x00005] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:1287
  at Arcen.Universal.Engine_Universal.LogWritten (System.String LogString, System.String StackTrace, UnityEngine.LogType Type, System.Exception Cause, System.Boolean CameFromUnity) [0x000ea] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:847
  at Arcen.Universal.Engine_Universal.LogWrittenFromUnity (System.String LogString, System.String StackTrace, UnityEngine.LogType Type) [0x0003d] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:797
  at UnityEngine.Application.CallLogCallback (System.String logString, System.String stackTrace, UnityEngine.LogType type, System.Boolean invokedOnMainThread) [0x00000] in <1e1760ad73da4b428754bbe08d67ab8d>:0

TagsNo tags attached.

Activities

Chris_McElligottPark

Jul 13, 2018 3:14 pm

administrator   ~0047862

Please do let me know if you see this in 0.750, although I can't duplicate the issue. I happened to be making this optimization anyway:

* Improved how the GUI window bits are shown and hidden. Rather than disabling the entire object of each canvas, we now disable just the canvas itself. Per some unity optimization guidelines, this keeps the visual cache of those canvases from being cleared, and is helpful for when things are being shown and hidden (such as tooltips). This may also prevent errors with things like hiding the GUI, but we can't duplicate that at the moment.

Thanks!

Issue History

Date Modified Username Field Change
Jul 13, 2018 1:21 pm dv New Issue
Jul 13, 2018 3:14 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Jul 13, 2018 3:14 pm Chris_McElligottPark Status new => assigned
Jul 13, 2018 3:14 pm Chris_McElligottPark Note Added: 0047862
Jul 24, 2018 4:51 pm Chris_McElligottPark Status assigned => resolved
Jul 24, 2018 4:51 pm Chris_McElligottPark Resolution open => fixed