View Issue Details

IDProjectCategoryLast Update
0023558AI War 2Bug - OtherAug 26, 2020 8:12 pm
ReporterCRCGamer Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.122 Empire Names 
Fixed in Version2.127 Cranky AI Exceptions 
Summary0023558: Another log dump pop-up error.
DescriptionError during ReactToShotHittingSquad debug number 20
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.ExternalVisualization.ShotVisualizer.ReactToShotHittingSquad (Arcen.AIW2.Core.GameEntity_Squad TargetSquad, Arcen.AIW2.Core.GameEntity_Squad ProtectingShieldThatTookTheHitOrNull, System.Int32 NumberOfShipsKilled, System.Boolean WasEntireSquadKilled) [0x00907] in <70aa3b336fc044118a765dcb32408096>: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 <4366ab765ade4799a47960f79db46b76>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <4366ab765ade4799a47960f79db46b76>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <4366ab765ade4799a47960f79db46b76>:0
  at Arcen.AIW2.ExternalVisualization.ShotVisualizer.ReactToShotHittingSquad (Arcen.AIW2.Core.GameEntity_Squad TargetSquad, Arcen.AIW2.Core.GameEntity_Squad ProtectingShieldThatTookTheHitOrNull, System.Int32 NumberOfShipsKilled, System.Boolean WasEntireSquadKilled) [0x00000] in <70aa3b336fc044118a765dcb32408096>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoShotHitLogic (Arcen.AIW2.Core.GameEntity_Shot ShotOrNull, Arcen.AIW2.Core.EntitySystem OriginSystemForShot, Arcen.AIW2.Core.GameEntity_Squad Target, System.Boolean HonorFiniteHitCountAOE, Arcen.Universal.FInt PercentOfTotalAttackPowerForThisHit, Arcen.Universal.FInt& PercentOfTotalAttackPowerUsedForThisHit, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoShotHitLogic (Arcen.AIW2.Core.GameEntity_Shot ShotOrNull, Arcen.AIW2.Core.EntitySystem OriginSystemForShot, Arcen.AIW2.Core.GameEntity_Squad Target, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.Core.GameEntity_Shot.DoEntityStepLogic_Shot (Arcen.AIW2.Core.ArcenSimContext Context, Arcen.Universal.FInt EffectiveDeltaTime) [0x00000] in <b48419e1498c458fbeb27687a7ba192d>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass32_0.<DoCombatStepForPlanet>b__3 (Arcen.AIW2.Core.GameEntity_Shot entity) [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x00000] in <b48419e1498c458fbeb27687a7ba192d>:0
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x00000] in <b48419e1498c458fbeb27687a7ba192d>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoCombatStepForPlanet (Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass46_0.<DoCombatPerStepLogic>b__0 (Arcen.AIW2.Core.Planet planet) [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.Core.Galaxy.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <b48419e1498c458fbeb27687a7ba192d>:0
  at Arcen.AIW2.Core.World_AIW2.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <b48419e1498c458fbeb27687a7ba192d>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoCombatPerStepLogic (Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoWorldStepLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.External.ArcenExecutionContext.InnerRun () [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>:0
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <dbf79cc80a9a49e1abc22b1b08b54047>: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

-----------------------------------
The above log data was from a bit of a fight where I had parasitic pike corvette and persuaders along with more usual combat units in my fleet smacking some shield guardians that were stacked during the initial beachhead into an AI system. Either the shield stacking had something go screwy or it was a thread race condition is my guess.
TagsNo tags attached.

Activities

Chris_McElligottPark

Aug 26, 2020 8:12 pm

administrator   ~0058196

Thanks!

* Suppressed a harmless popup that could happen in ReactToShotHittingSquad during cross-thread race conditions. Now it just fixes the data and moves on.

Issue History

Date Modified Username Field Change
Aug 18, 2020 10:36 am CRCGamer New Issue
Aug 26, 2020 8:12 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 26, 2020 8:12 pm Chris_McElligottPark Status new => resolved
Aug 26, 2020 8:12 pm Chris_McElligottPark Resolution open => fixed
Aug 26, 2020 8:12 pm Chris_McElligottPark Fixed in Version => 2.127 Cranky AI Exceptions
Aug 26, 2020 8:12 pm Chris_McElligottPark Note Added: 0058196