View Issue Details

IDProjectCategoryLast Update
0021567AI War 2Crash/ExceptionSep 5, 2019 12:20 pm
ReporterAsteroid Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.886 Zombie Homebodies 
Fixed in Version0.887 Ending Scenes 
Summary0021567: Exception and messed up UI when loading a game
DescriptionLoaded a game from last version. Then I presume it autosaved with this version. Then loading the autosave produces this exception and my UI is spammed with bogus notifications (see attached screenshot and save that produces the exception).

Error occurred in sim planning context perSecondNonSimPlanningLongRangeContext
NullReferenceException
Object reference not set to an instance of an object
===STACK FRAMES (with file info)===
FILE METHOD IL_OFFSET NATIVE_OFFSET LINE_NUMBER COLUMN_NUMBER
    GetIndexOfMostAnnoyingFaction 152 407 0 0
    <DoLocalFactionPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking>b__4 79 226 0 0
    DoForEntities 55 213 0 0
    DoLocalFactionPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking 1960 7610 0 0
    DoPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking 11 74 0 0
    DoPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking 1 47 0 0
    <DoCentralLoop>b__5_0 1 42 0 0
    DoForFactions 18 107 0 0
    DoCentralLoop 12 194 0 0
    Execute 17 66 0 0
    InnerRun 65 205 0 0
===RAW STACK TRACE===
  at Arcen.AIW2.Core.PlanetFaction.GetIndexOfMostAnnoyingFaction (Arcen.AIW2.Core.ArcenSimContext Context, System.Boolean DefaultToRandomNonHumanHostileFaction) [0x00098] in <7e2157f0accb400dbf8295732ebca772>:0
  at Arcen.AIW2.External.SpecialFaction_Human+<>c__DisplayClass40_3.<DoLocalFactionPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking>b__4 (Arcen.AIW2.Core.GameEntity_Squad entity) [0x0004f] in <4ab95f27986d454c82040035eede73e7>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.EntityRollupType Rollup, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00037] in <7e2157f0accb400dbf8295732ebca772>:0
  at Arcen.AIW2.External.SpecialFaction_Human.DoLocalFactionPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context) [0x007a8] in <4ab95f27986d454c82040035eede73e7>:0
  at Arcen.AIW2.External.SpecialFaction_Human.DoPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context) [0x0000b] in <4ab95f27986d454c82040035eede73e7>:0
  at Arcen.AIW2.Core.Faction.DoPerSecondNonSimUpdate_OnBackgroundNonSimThread_NonBlocking (Arcen.AIW2.Core.ArcenSimContext Context) [0x00001] in <7e2157f0accb400dbf8295732ebca772>:0
  at Arcen.AIW2.External.PerSecondNonSimPlanning.<DoCentralLoop>b__5_0 (Arcen.AIW2.Core.Faction faction) [0x00001] in <4ab95f27986d454c82040035eede73e7>:0
  at Arcen.AIW2.Core.World_AIW2.DoForFactions (Arcen.AIW2.Core.Faction+ProcessorDelegate Processor) [0x00012] in <7e2157f0accb400dbf8295732ebca772>:0
  at Arcen.AIW2.External.PerSecondNonSimPlanning.DoCentralLoop () [0x0000c] in <4ab95f27986d454c82040035eede73e7>:0
  at Arcen.AIW2.External.PerSecondNonSimPlanning.Execute () [0x00011] in <4ab95f27986d454c82040035eede73e7>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00041] in <4ab95f27986d454c82040035eede73e7>:0

  at System.Environment.get_StackTrace () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <cf6815b1499c470fa82c0c6b3c362fe7>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <cf6815b1499c470fa82c0c6b3c362fe7>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <cf6815b1499c470fa82c0c6b3c362fe7>:0
  at Arcen.Universal.ArcenDebugging.LogException (System.Exception e, System.String message, Arcen.Universal.Verbosity verbosity) [0x00000] in <cf6815b1499c470fa82c0c6b3c362fe7>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00000] in <4ab95f27986d454c82040035eede73e7>:0
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <4ab95f27986d454c82040035eede73e7>:0
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
TagsNo tags attached.

Activities

Asteroid

Sep 4, 2019 4:17 am

reporter  

Autosave.11400.save (658,602 bytes)

Chris_McElligottPark

Sep 5, 2019 12:20 pm

administrator   ~0052858

Thanks!

* Fixed a bunch more cases where code calling GetIndexOfMostAnnoyingFaction() was trying to find the faction off of it and then getting a nullref exception when there was not a most annoying faction locally (a very valid case).

Issue History

Date Modified Username Field Change
Sep 4, 2019 4:17 am Asteroid New Issue
Sep 4, 2019 4:17 am Asteroid File Added: Autosave.11400.save
Sep 4, 2019 4:17 am Asteroid File Added: Autosave.11400.savemet
Sep 4, 2019 4:17 am Asteroid File Added: 2019-09-04 04_14_47-AIWar2.png
Sep 5, 2019 12:20 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Sep 5, 2019 12:20 pm Chris_McElligottPark Status new => resolved
Sep 5, 2019 12:20 pm Chris_McElligottPark Resolution open => fixed
Sep 5, 2019 12:20 pm Chris_McElligottPark Fixed in Version => 0.887 Ending Scenes
Sep 5, 2019 12:20 pm Chris_McElligottPark Note Added: 0052858