View Issue Details

IDProjectCategoryLast Update
0026421AI War 2Crash/ExceptionFeb 17, 2022 1:32 pm
ReporterDaniexpert Assigned ToBadgerBadger  
Status resolvedResolutionfixed 
Product VersionBeta 3.805 Bolstering Spire 
Fixed in VersionBeta 3.805 Bolstering Spire 
Summary0026421: ReactToShotHittingSquad Error at debug number3
Descriptionrev 16380

TagsNo tags attached.

Activities

Daniexpert

Feb 16, 2022 10:57 pm

manager  

exception.txt (7,325 bytes)   
2/17/2022 4:56:07 AM  3.804 SINGLEP DELAYED70 TID5 ReactToShotHittingSquad Error at debug number3
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.ExternalVisualization.SquadVisualizer.GetRandomShipsThatCanBeFiredUpon (System.Int32 numShipsRequested, Arcen.Universal.List`1[T] listToFill, Arcen.Universal.List`1[T] excludedShipsList, Arcen.AIW2.ExternalVisualization.ShipVisualizer excludedShipSingle) [0x0005c] in <f0dd03414a794da6a8304a6f8af6745e>:0 
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <6b80f81d198143778fe50a07e7cbcc5a>:0 
  at Arcen.AIW2.ExternalVisualization.SquadVisualizer.GetRandomShipsThatCanBeFiredUpon (System.Int32 numShipsRequested, Arcen.Universal.List`1[T] listToFill, Arcen.Universal.List`1[T] excludedShipsList, Arcen.AIW2.ExternalVisualization.ShipVisualizer excludedShipSingle) [0x00000] in <f0dd03414a794da6a8304a6f8af6745e>:0 
  at Arcen.AIW2.ExternalVisualization.ShotVisualizer.TryRewiringShotToNewShipAtSameTargetSquad (Arcen.Universal.List`1[T] shipsToExcludeOrNull) [0x00000] in <f0dd03414a794da6a8304a6f8af6745e>: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 <f0dd03414a794da6a8304a6f8af6745e>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoShotHitLogic_Inner (Arcen.AIW2.Core.IShotHitSource ShotHitNeverNull, System.Int32 CompressedShots, Arcen.AIW2.Core.EntitySystem OriginSystemForShotOrNull, Arcen.AIW2.Core.GameEntity_Squad Target, System.Boolean HonorFiniteHitCountAOE, Arcen.Universal.FInt PercentOfTotalAttackPowerForThisHitOutOf100, System.Int32& TotalDamageDealt, System.Int32& ActualCompressedShotsHit, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoShotHitLogic (Arcen.AIW2.Core.IShotHitSource ShotHitNeverNull, System.Int32 CompressedShots, Arcen.AIW2.Core.EntitySystem OriginSystemForShot, Arcen.AIW2.Core.GameEntity_Squad Target, System.Boolean HonorFiniteHitCountAOE, Arcen.Universal.FInt PercentOfTotalAttackPowerForThisHitOutOf100, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.CheckForShotAOEDetonation (Arcen.AIW2.Core.IShotHitSource ShotHitNeverNull, System.Int32 CompressedShots, Arcen.AIW2.Core.EntitySystem OriginSystemForShotOrNull, Arcen.AIW2.Core.GameEntity_Squad TargetOrNull, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.Core.EntitySimLogicBaseInfo.CheckForShotAOEDetonation (Arcen.AIW2.Core.GameEntity_Shot ShotHitNeverNull, Arcen.AIW2.Core.GameEntity_Squad TargetOrNull, Arcen.AIW2.Core.EntitySystem OriginSystemForShot, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <7673e8bf8fda47498a3504e27e363557>:0 
  at Arcen.AIW2.Core.GameEntity_Shot.DoOnDeathInCombatLogic (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <7673e8bf8fda47498a3504e27e363557>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo+<>c__DisplayClass69_0.<DoCombatStepForPlanet>b__2 (Arcen.AIW2.Core.GameEntity_Shot entity) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x00000] in <7673e8bf8fda47498a3504e27e363557>:0 
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x00000] in <7673e8bf8fda47498a3504e27e363557>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoCombatStepForPlanet (Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo+<>c__DisplayClass86_0.<DoCombatPerStepLogic>b__0 (Arcen.AIW2.Core.Planet planet) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.Core.Galaxy.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <7673e8bf8fda47498a3504e27e363557>:0 
  at Arcen.AIW2.Core.World_AIW2.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <7673e8bf8fda47498a3504e27e363557>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoCombatPerStepLogic (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.External.EntitySimLogicImplementation_BaseInfo.DoWorldStepLogic_ClientOrHost_FromSimBGThread (Arcen.AIW2.Core.ArcenClientOrHostSimContextCore Context) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext.BackgroundThreadRunHandler (System.Single SuicidesAfterTime, System.Boolean FailSilentlyIfNotFinishedYet) [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.AIW2.External.ArcenClientOrHostSimPlanningContext+<>c__DisplayClass15_0.<RunOnBackgroundThread>b__0 () [0x00000] in <1d8363fef25740d69f1b114a1a5b8533>:0 
  at Arcen.Universal.ArcenThreading+<>c__DisplayClass11_0.<RunTaskOnBackgroundThread>b__0 () [0x00000] in <6b80f81d198143778fe50a07e7cbcc5a>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.Tasks.Task.Execute () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 
exception.txt (7,325 bytes)   

BadgerBadger

Feb 17, 2022 1:32 pm

manager   ~0064570

I've added some defensive code

Issue History

Date Modified Username Field Change
Feb 16, 2022 10:57 pm Daniexpert New Issue
Feb 16, 2022 10:57 pm Daniexpert File Added: exception.txt
Feb 17, 2022 1:32 pm BadgerBadger Assigned To => BadgerBadger
Feb 17, 2022 1:32 pm BadgerBadger Status new => resolved
Feb 17, 2022 1:32 pm BadgerBadger Resolution open => fixed
Feb 17, 2022 1:32 pm BadgerBadger Fixed in Version => Beta 3.805 Bolstering Spire
Feb 17, 2022 1:32 pm BadgerBadger Note Added: 0064570