View Issue Details

IDProjectCategoryLast Update
0023576AI War 2Crash/ExceptionAug 26, 2020 7:18 pm
ReporterNRSirLimbo Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product VersionBeta 2.124 HRF Pacekeeping 
Fixed in Version2.127 Cranky AI Exceptions 
Summary0023576: Exception Popup: "Error in thread for execution context 'executionContext': NullReferenceException"
DescriptionNote that I'm playing with both Modified Marauders and Precepts of the Precursors, but the exception happened in Arcen.AIW2.ExternalVisualization.ShipVisualizer.SetFormationPositionFromSquad which Modified Marauders definitely don't touch and PoP doubtfully do.

There's also some Marauder fireteam debugging, but the exception is at just before the bottom of the debug log. Can't miss it.
TagsNo tags attached.

Activities

NRSirLimbo

Aug 22, 2020 7:19 am

developer  

ArcenDebugLog.txt (314,658 bytes)

BadgerBadger

Aug 22, 2020 1:07 pm

manager   ~0058166

Presumably a race between a ship dying and the vis code.

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
    SetFormationPositionFromSquad 31 167 0 0
    ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack 178 546 0 0
    ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack 20 77 0 0
    ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack 11 64 0 0
    TakeDamageDirectly 3367 9323 0 0
    DoShotHitLogic 771 3146 0 0
    DoShotHitLogic 13 123 0 0
    DoEntityStepLogic_Shot 503 1370 0 0
    <DoCombatStepForPlanet>b__3 21 106 0 0
    DoForEntities 57 149 0 0
    DoForEntities 31 162 0 0
    DoCombatStepForPlanet 288 1178 0 0
    <DoCombatPerStepLogic>b__0 1 47 0 0
    DoForPlanets 59 200 0 0
    DoForPlanets 22 106 0 0
    DoCombatPerStepLogic 31 282 0 0
    DoWorldStepLogic_FromSimBGThread 156 402 0 0
    Execute 186 434 0 0
===RAW STACK TRACE===
  at Arcen.AIW2.ExternalVisualization.ShipVisualizer.SetFormationPositionFromSquad (Arcen.AIW2.ExternalVisualization.SquadVisualizer Squad) [0x0001f] in <d90bb6ae209c4d988c9fc78333cddf46>:0
  at Arcen.AIW2.ExternalVisualization.SquadVisualizer.ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack (Arcen.AIW2.Core.GameEntity_Squad EntityProvidingReplacement) [0x000b2] in <d90bb6ae209c4d988c9fc78333cddf46>:0
  at Arcen.AIW2.ExternalVisualization.BattlefieldVisualSingleton.ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack (Arcen.AIW2.Core.GameEntity_Squad SquadThatLostAShip) [0x00014] in <d90bb6ae209c4d988c9fc78333cddf46>:0
  at PresentationLayer_AIW2.ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack (Arcen.AIW2.Core.GameEntity_Squad SquadThatLostAShip) [0x0000b] in <76eb9398b0d34d049892b53369f4c5eb>:0
  at Arcen.AIW2.Core.GameEntity_Squad.TakeDamageDirectly (System.Int32 DamageAmount, Arcen.AIW2.Core.EntitySystem FiringSystemOrNull, Arcen.AIW2.Core.GameEntity_Shot ShotThatHitOrNullOnlyUsedForKnockback, Arcen.AIW2.Core.DamageSource Damage, System.Boolean PreventReversionToNeutral, System.Boolean HonorFiniteHitCountAOE, System.Int32 MaxStacksAllowedToKill, System.Boolean OnlyDamageShieldNotHull, System.Int32& ActualDamageDone, System.Int32& DamageAbortCode, Arcen.AIW2.Core.ArcenSimContext Context, Arcen.Universal.ArcenCharacterBuffer traceBuffer) [0x00d27] in <e137a520aab5411b8b3fb31c967496b0>: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) [0x00303] in <2a4e4918c4d1480fa4f978b1ec818189>: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) [0x0000d] in <2a4e4918c4d1480fa4f978b1ec818189>:0
  at Arcen.AIW2.Core.GameEntity_Shot.DoEntityStepLogic_Shot (Arcen.AIW2.Core.ArcenSimContext Context, Arcen.Universal.FInt EffectiveDeltaTime) [0x001f7] in <e137a520aab5411b8b3fb31c967496b0>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass32_0.<DoCombatStepForPlanet>b__3 (Arcen.AIW2.Core.GameEntity_Shot entity) [0x00015] in <2a4e4918c4d1480fa4f978b1ec818189>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x00039] in <e137a520aab5411b8b3fb31c967496b0>:0
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x0001f] in <e137a520aab5411b8b3fb31c967496b0>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoCombatStepForPlanet (Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.ArcenSimContext Context) [0x00120] in <2a4e4918c4d1480fa4f978b1ec818189>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass46_0.<DoCombatPerStepLogic>b__0 (Arcen.AIW2.Core.Planet planet) [0x00001] in <2a4e4918c4d1480fa4f978b1ec818189>:0
  at Arcen.AIW2.Core.Galaxy.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x0003b] in <e137a520aab5411b8b3fb31c967496b0>:0
  at Arcen.AIW2.Core.World_AIW2.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00016] in <e137a520aab5411b8b3fb31c967496b0>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoCombatPerStepLogic (Arcen.AIW2.Core.ArcenSimContext Context) [0x0001f] in <2a4e4918c4d1480fa4f978b1ec818189>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoWorldStepLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x0009c] in <2a4e4918c4d1480fa4f978b1ec818189>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x000ba] in <2a4e4918c4d1480fa4f978b1ec818189>:0

Chris_McElligottPark

Aug 26, 2020 7:18 pm

administrator   ~0058192

Thanks!

* Fixed another rare race condition that could happen with the vis code, this time in SetFormationPositionFromSquad.

Issue History

Date Modified Username Field Change
Aug 22, 2020 7:19 am NRSirLimbo New Issue
Aug 22, 2020 7:19 am NRSirLimbo File Added: ArcenDebugLog.txt
Aug 22, 2020 1:07 pm BadgerBadger Note Added: 0058166
Aug 26, 2020 7:18 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 26, 2020 7:18 pm Chris_McElligottPark Status new => resolved
Aug 26, 2020 7:18 pm Chris_McElligottPark Resolution open => fixed
Aug 26, 2020 7:18 pm Chris_McElligottPark Fixed in Version => 2.127 Cranky AI Exceptions
Aug 26, 2020 7:18 pm Chris_McElligottPark Note Added: 0058192