View Issue Details

IDProjectCategoryLast Update
0024268AI War 2Crash/ExceptionDec 30, 2020 4:07 pm
ReporterOzoneGrif Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product Version2.708 Mapgen For Multiplayer 
Fixed in Version2.711 Deep Memories 
Summary0024268: [Multiplayer] Client exception GameEntity_Squad DoCombatStepForPlanet
Description12/22/2020 7:28:48 PM 2.708 CLIENT Error in thread for execution context 'executionContext'
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
    <DoCombatStepForPlanet>b__0 20 49 0 0
    DoForEntities 77 202 0 0
    DoForEntities 31 162 0 0
    DoCombatStepForPlanet 100 450 0 0
    <DoCombatPerStepLogic>b__0 1 52 0 0
    DoForPlanets 59 200 0 0
    DoForPlanets 22 106 0 0
    DoCombatPerStepLogic 31 330 0 0
    DoWorldStepLogic_FromSimBGThread 156 442 0 0
    Execute 186 519 0 0
===RAW STACK TRACE===
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass36_0.<DoCombatStepForPlanet>b__0 (Arcen.AIW2.Core.GameEntity_Squad entity) [0x00014] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x0004d] in <965c9010cbac4de7b1278dac397d6a21>:0
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x0001f] in <965c9010cbac4de7b1278dac397d6a21>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoCombatStepForPlanet (Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.ArcenSimContext Context) [0x00064] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass50_0.<DoCombatPerStepLogic>b__0 (Arcen.AIW2.Core.Planet planet) [0x00001] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.Core.Galaxy.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x0003b] in <965c9010cbac4de7b1278dac397d6a21>:0
  at Arcen.AIW2.Core.World_AIW2.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00016] in <965c9010cbac4de7b1278dac397d6a21>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoCombatPerStepLogic (Arcen.AIW2.Core.ArcenSimContext Context) [0x0001f] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoWorldStepLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x0009c] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x000ba] in <09195713bfd64cce80fbe3c3b56b20f2>: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, System.DateTime Timestamp) [0x00000] in <f2649366d9a647199afdb1fe1eaa9324>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <f2649366d9a647199afdb1fe1eaa9324>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <f2649366d9a647199afdb1fe1eaa9324>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <f2649366d9a647199afdb1fe1eaa9324>:0
  at Arcen.Universal.ArcenDebugging.LogException (System.Exception e, System.String message, Arcen.Universal.Verbosity verbosity) [0x00000] in <f2649366d9a647199afdb1fe1eaa9324>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00000] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.External.ArcenExecutionContext.InnerRun () [0x00000] in <09195713bfd64cce80fbe3c3b56b20f2>:0
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <09195713bfd64cce80fbe3c3b56b20f2>: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

Chris_McElligottPark

Dec 23, 2020 10:32 pm

administrator   ~0060155

Does this also happen on the latest version? I notice you're one version back.

Chris_McElligottPark

Dec 30, 2020 4:07 pm

administrator   ~0060192

Thanks!

* Not sure what was happening or why, and we may have fixed it two versions ago, but DoCombatStepForPlanet() now has a lot more instrumentation and will catch exceptions and report them more nicely rather than having its entire thread potentially suicide. This would probably have only been relevant for multiplayer clients, but the fix would help anyone.

Issue History

Date Modified Username Field Change
Dec 23, 2020 9:59 pm OzoneGrif New Issue
Dec 23, 2020 10:32 pm Chris_McElligottPark Note Added: 0060155
Dec 30, 2020 4:07 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Dec 30, 2020 4:07 pm Chris_McElligottPark Status new => resolved
Dec 30, 2020 4:07 pm Chris_McElligottPark Resolution open => fixed
Dec 30, 2020 4:07 pm Chris_McElligottPark Fixed in Version => 2.711 Deep Memories
Dec 30, 2020 4:07 pm Chris_McElligottPark Note Added: 0060192