View Issue Details

IDProjectCategoryLast Update
0019761AI War 2[All Projects] Crash/ExceptionJul 13, 2018 3:14 pm
ReporterdvAssigned Tox4000Bughunter 
Severityminor 
Status assignedResolutionopen 
Product Version0.749 Release The Hounds 
Fixed in Version 
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

x4000Bughunter

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 x4000Bughunter Assigned To => x4000Bughunter
Jul 13, 2018 3:14 pm x4000Bughunter Status new => assigned
Jul 13, 2018 3:14 pm x4000Bughunter Note Added: 0047862