View Issue Details

IDProjectCategoryLast Update
0019724AI War 2Crash/ExceptionJul 18, 2018 8:26 pm
ReporterRocketAssistedPuffin Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.748 Macrophage Teeth 
Fixed in Version0.752 Mathematics Milestone 
Summary0019724: Quitting to Menu...er, broke...everything.
DescriptionLooking at Dyson Sphere, quit to main menu. Sphere is now my menu. Can somehow look at galaxy map, which shows the line connections but no planets. Coming out of this I think let me look at the game I should've just been in, but it's non-responsive. Trying to quit again to main menu does nothing either, have to go to desktop.

I've...attached logs, but unfortunately didn't nab it when the error came up. Not used to actually reporting these yet, apologies. One seems to be talking about menus and new galaxy generation, the "Unhandled Errors" file.

Problem occured on the date this was reported. Had a few games loaded, just prodding at minor factions, but it was the first one, I'm reasonably sure. I was looking at a Dyson Sphere directly if that helps any, with the unloading of images etc.
TagsNo tags attached.

Activities

RocketAssistedPuffin

Jul 6, 2018 6:14 pm

reporter  

UnhandledErrors.txt (2,652 bytes)   
7/6/2018 10:48:35 PM (0.748) Mem: 460,464,128 Mode: Host Plat:WindowsPlayer
-----------
Exception when checking for sim step: System.InvalidOperationException: HashSet have been modified while it was iterated over
  at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].CheckState () [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].MoveNext () [0x00000] in <filename unknown>:0 
  at Arcen.AIW2.Core.Planet.Dismantle (Boolean ForceImmediateVisualRemoval) [0x00087] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Planet.cs:412 
  at Arcen.AIW2.Core.Galaxy.Dismantle () [0x00015] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Galaxy.cs:72 
  at Arcen.AIW2.Core.World_AIW2.SetupOnly_ResetForNewMapGeneration () [0x00061] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:866 
  at Arcen.AIW2.Core.Engine_AIW2.QuitGameAndGoBackToMainMenu () [0x00006] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:1360 
  at Arcen.AIW2.Core.Engine_AIW2.ProcessSimStep (System.Boolean& stalledWaitingOnConnections) [0x004b1] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:684 
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x001f4] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:1061 
Stack Trace:   at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].CheckState () [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].MoveNext () [0x00000] in <filename unknown>:0 
  at Arcen.AIW2.Core.Planet.Dismantle (Boolean ForceImmediateVisualRemoval) [0x00087] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Planet.cs:412 
  at Arcen.AIW2.Core.Galaxy.Dismantle () [0x00015] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Galaxy.cs:72 
  at Arcen.AIW2.Core.World_AIW2.SetupOnly_ResetForNewMapGeneration () [0x00061] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:866 
  at Arcen.AIW2.Core.Engine_AIW2.QuitGameAndGoBackToMainMenu () [0x00006] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:1360 
  at Arcen.AIW2.Core.Engine_AIW2.ProcessSimStep (System.Boolean& stalledWaitingOnConnections) [0x004b1] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:684 
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x001f4] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:1061 


UnhandledErrors.txt (2,652 bytes)   
ErrorsReportedByEngine.txt (8,157 bytes)   
7/1/2018 12:06:35 PM (0.746) Mem: 345,980,928 Mode: Host Plat:WindowsPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
Exception: window: Window_SaveGameMenu
System.IO.DirectoryNotFoundException: Directory 'D:/Steam/steamapps/common/AI War 2/PlayerData/Save/Diff 7 DysonTrader ' not found.
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00166] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:528 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:308 
  at Arcen.AIW2.External.SaveLoadMethods.ParseListOfOnDiskSaveGamesInCampaignFolder (System.String CampaignName, System.Collections.Generic.List`1& SavesInCampaign) [0x00000] in <filename unknown>:0 
  at Arcen.AIW2.External.Window_SaveGameMenu+bsSaveGameButtons.OnUpdate () [0x00000] in <filename unknown>:0 
  at Arcen.Universal.ArcenUI_ButtonSet.OnUpdate_Subclass (Single DeltaTime) [0x00052] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_ButtonSet.cs:55 
  at Arcen.Universal.ArcenUI_Element.UpdateFromUI (Single DeltaTime) [0x00101] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Element.cs:386 
  at Arcen.Universal.ArcenUI_Window.OnUpdate (Single DeltaTime) [0x00155] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Window.cs:120 
  at Arcen.Universal.ArcenUI.OnUpdateFromMainThread () [0x0007e] 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:1116)
ArcenGameController.Update () (at D:/vclarge/AI_War_2_Ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:84)



7/2/2018 5:23:39 PM (0.746) Mem: 98,607,104 Mode: Off Plat:WindowsPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
Exception: window: Window_LoadGameMenu
System.IO.DirectoryNotFoundException: Directory 'D:/Steam/steamapps/common/AI War 2/PlayerData/Save/Diff 7 DysonTrader ' not found.
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00166] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:528 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:308 
  at Arcen.AIW2.External.SaveLoadMethods.ParseListOfOnDiskSaveGamesInCampaignFolder (System.String CampaignName, System.Collections.Generic.List`1& SavesInCampaign) [0x00000] in <filename unknown>:0 
  at Arcen.AIW2.External.Window_LoadGameMenu+bsLoadGameButtons.OnUpdate () [0x00000] in <filename unknown>:0 
  at Arcen.Universal.ArcenUI_ButtonSet.OnUpdate_Subclass (Single DeltaTime) [0x00052] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_ButtonSet.cs:55 
  at Arcen.Universal.ArcenUI_Element.UpdateFromUI (Single DeltaTime) [0x00101] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Element.cs:386 
  at Arcen.Universal.ArcenUI_Window.OnUpdate (Single DeltaTime) [0x00155] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Window.cs:120 
  at Arcen.Universal.ArcenUI.OnUpdateFromMainThread () [0x0007e] 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:1116)
ArcenGameController.Update () (at D:/vclarge/AI_War_2_Ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:84)



7/3/2018 11:09:09 AM (0.747) Mem: 95,686,656 Mode: Off Plat:WindowsPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
Exception: window: Window_LoadGameMenu
System.IO.DirectoryNotFoundException: Directory 'D:/Steam/steamapps/common/AI War 2/PlayerData/Save/Diff 7 DysonTrader ' not found.
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00166] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:528 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:308 
  at Arcen.AIW2.External.SaveLoadMethods.ParseListOfOnDiskSaveGamesInCampaignFolder (System.String CampaignName, System.Collections.Generic.List`1& SavesInCampaign) [0x00000] in <filename unknown>:0 
  at Arcen.AIW2.External.Window_LoadGameMenu+bsLoadGameButtons.OnUpdate () [0x00000] in <filename unknown>:0 
  at Arcen.Universal.ArcenUI_ButtonSet.OnUpdate_Subclass (Single DeltaTime) [0x00052] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_ButtonSet.cs:55 
  at Arcen.Universal.ArcenUI_Element.UpdateFromUI (Single DeltaTime) [0x00101] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Element.cs:386 
  at Arcen.Universal.ArcenUI_Window.OnUpdate (Single DeltaTime) [0x00155] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\ArcenUI\ArcenUI_Window.cs:120 
  at Arcen.Universal.ArcenUI.OnUpdateFromMainThread () [0x0007e] 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:1116)
ArcenGameController.Update () (at D:/vclarge/AI_War_2_Ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:84)



7/6/2018 10:48:44 PM (0.748) Mem: 327,806,976 Mode: Host Plat:WindowsPlayer
-----------------------------------ErrorsReportedByEngine-----------------------------------
-----------
NullReferenceException: Object reference not set to an instance of an object
Stack Trace: PresentationLayer_AIW2.CenterGalaxyViewOnPlanet (Arcen.AIW2.Core.Planet Planet, Boolean DoImmediately) (at D:/vclarge/AI_War_2_Ultra/ArcenAIW2Visualization/src/PresentationLayer_AIW2.cs:57)
Arcen.AIW2.Core.Engine_AIW2.SetCurrentGameViewMode (GameViewMode NewMode) (at D:/vclarge/AI_War_2_Ultra/ArcenAIW2Core/src/Logic/Engine_AIW2.cs:843)
Arcen.AIW2.Core.Engine_AIW2.InnerDoStartNewWorldOKLogic (Arcen.AIW2.Core.ScenarioData Scenario) (at D:/vclarge/AI_War_2_Ultra/ArcenAIW2Core/src/Logic/Engine_AIW2.cs:948)
Arcen.AIW2.External.Window_MainMenu+bCustomStartGame.HandleClick_Subclass ()
Arcen.AIW2.External.ButtonAbstractBase.HandleClick (MouseHandlingInput input)
Arcen.Universal.ArcenUI_Button.OnClick (UnityEngine.EventSystems.PointerEventData eventData) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/ArcenUI/ArcenUI_Button.cs:164)
Arcen.Universal.ArcenUI_Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/ArcenUI/ArcenUI_Button.cs:173)
UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) (at C:/buildslave/unity/build/Extensions/guisystem/UnityEngine.UI/EventSystem/ExecuteEvents.cs:261)
UnityEngine.EventSystems.EventSystem:Update()



ErrorsReportedByEngine.txt (8,157 bytes)   
ArcenDebugLog.txt (290,221 bytes)

BadgerBadger

Jul 7, 2018 1:26 am

manager   ~0047764

Chris, I think the key error here is
7/6/2018 10:48:35 PM
: -----------
Exception when checking for sim step: System.InvalidOperationException: HashSet have been modified while it was iterated over
  at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].CheckState () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].MoveNext () [0x00000] in <filename unknown>:0
  at Arcen.AIW2.Core.Planet.Dismantle (Boolean ForceImmediateVisualRemoval) [0x00087] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Planet.cs:412
  at Arcen.AIW2.Core.Galaxy.Dismantle () [0x00015] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Galaxy.cs:72
  at Arcen.AIW2.Core.World_AIW2.SetupOnly_ResetForNewMapGeneration () [0x00061] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:866
  at Arcen.AIW2.Core.Engine_AIW2.QuitGameAndGoBackToMainMenu () [0x00006] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:1360
  at Arcen.AIW2.Core.Engine_AIW2.ProcessSimStep (System.Boolean& stalledWaitingOnConnections) [0x004b1] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:684
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x001f4] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:1061
Stack Trace: at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].CheckState () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.HashSet`1+Enumerator[Arcen.AIW2.Core.GameEntity].MoveNext () [0x00000] in <filename unknown>:0
  at Arcen.AIW2.Core.Planet.Dismantle (Boolean ForceImmediateVisualRemoval) [0x00087] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Planet.cs:412
  at Arcen.AIW2.Core.Galaxy.Dismantle () [0x00015] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\Mapping\Galaxy.cs:72
  at Arcen.AIW2.Core.World_AIW2.SetupOnly_ResetForNewMapGeneration () [0x00061] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:866
  at Arcen.AIW2.Core.Engine_AIW2.QuitGameAndGoBackToMainMenu () [0x00006] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:1360
  at Arcen.AIW2.Core.Engine_AIW2.ProcessSimStep (System.Boolean& stalledWaitingOnConnections) [0x004b1] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Engine_AIW2.cs:684
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x001f4] in D:\vclarge\AI_War_2_Ultra\ArcenUniversal\src\Engine_Universal.cs:1061

Which I reported to you earlier. I can hit this also just on a clean normal "Quit Game" path, and once you hit this you usually need to restart the application

Chris_McElligottPark

Jul 18, 2018 8:26 pm

administrator   ~0047920

Thank you!

* Fixed a bug where if you had ships selected when you exited the game to the main menu, you'd get an exception.
** This one took some trial and error, because we weren't seeing it most of the time.

Issue History

Date Modified Username Field Change
Jul 6, 2018 6:14 pm RocketAssistedPuffin New Issue
Jul 6, 2018 6:14 pm RocketAssistedPuffin File Added: UnhandledErrors.txt
Jul 6, 2018 6:14 pm RocketAssistedPuffin File Added: ErrorsReportedByEngine.txt
Jul 6, 2018 6:14 pm RocketAssistedPuffin File Added: ArcenDebugLog.txt
Jul 7, 2018 1:26 am BadgerBadger Note Added: 0047764
Jul 7, 2018 1:26 am BadgerBadger Assigned To => Chris_McElligottPark
Jul 7, 2018 1:26 am BadgerBadger Status new => assigned
Jul 18, 2018 8:26 pm Chris_McElligottPark Status assigned => resolved
Jul 18, 2018 8:26 pm Chris_McElligottPark Resolution open => fixed
Jul 18, 2018 8:26 pm Chris_McElligottPark Fixed in Version => 0.752 Mathematics Milestone
Jul 18, 2018 8:26 pm Chris_McElligottPark Note Added: 0047920