View Issue Details

IDProjectCategoryLast Update
0019121AI War 2Crash/ExceptionMay 30, 2017 11:36 am
ReporterBadgerBadger Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version0.201 Bugfixes and Optimizations 
Fixed in Version0.301 The New HDR Visual Stack 
Summary0019121: NullReferenceException: FillPotentialTargets
DescriptionI was trying to load my saved game from last night. I loaded one game, but it was the wrong one so I clicked "Quit Game" without ever unpausing. Then I spotted this error in the ArcenDebugLog.

I tried quitting the game, then reloading the save game to see if the problem reproduced easily, but I could not reproduce it.

5/20/2017 10:06:31 AM Successfully opened host socket
5/20/2017 10:06:41 AM Error in thread for execution context 'executionContext':System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.Core.GameEntity.FillPotentialTargets (Boolean IgnoreThreshold) [0x00084] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\GameEntity\GameEntity.cs:1902
  at Arcen.AIW2.Core.GameEntity.ReevaluateAIOrders (Arcen.AIW2.Core.ArcenSimContext Context) [0x002c8] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\GameEntity\GameEntity.cs:1774
  at Arcen.AIW2.Core.World_AIW2+<DoWorldStepLogic>c__AnonStorey0.<>m__1 (Arcen.AIW2.Core.GameEntity entity) [0x00008] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:253
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (GameEntityCategorySet Set, Arcen.AIW2.Core.ProcessorDelegate Processor) [0x0005a] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\GameEntity\EntityCollection.cs:302
  at Arcen.AIW2.Core.World_AIW2.DoForEntities (GameEntityCategorySet Set, Arcen.AIW2.Core.ProcessorDelegate Processor) [0x00027] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:381
  at Arcen.AIW2.Core.World_AIW2.DoWorldStepLogic (Arcen.AIW2.Core.ArcenSimContext Context) [0x0016d] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\GameState\World_AIW2.cs:251
  at Arcen.AIW2.Core.SimExecution.Execute () [0x00043] in D:\vclarge\AI_War_2_Ultra\ArcenAIW2Core\src\Logic\Sim\SimExecution\SimExecution.cs:27
TagsNo tags attached.

Activities

keith.lamothe

May 30, 2017 11:36 am

administrator   ~0046229

For 0.301:

* Reworked the "Quit Game" button on the master menu to no longer be a "immediately chuck the gamestate into the grinder" function, but rather "tell the game that once it's done executing the current sim frame to close the gamestate". This avoids various race-condition null exceptions when quitting while the sim threads are going.

Thanks :)

Issue History

Date Modified Username Field Change
May 20, 2017 10:09 am BadgerBadger New Issue
May 30, 2017 10:36 am Chris_McElligottPark Assigned To => keith.lamothe
May 30, 2017 10:36 am Chris_McElligottPark Status new => assigned
May 30, 2017 11:36 am keith.lamothe Note Added: 0046229
May 30, 2017 11:36 am keith.lamothe Status assigned => resolved
May 30, 2017 11:36 am keith.lamothe Fixed in Version => 0.301 The New HDR Visual Stack
May 30, 2017 11:36 am keith.lamothe Resolution open => fixed