View Issue Details

IDProjectCategoryLast Update
0021743AI War 2Crash/ExceptionNov 14, 2019 4:05 pm
ReporterOzoneGrif Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version0.896 Strength and Control 
Fixed in Version1.008 Golems And Arks Come Marching In 
Summary0021743: ArgumentOutOfRangeException in ShipVisualizer.DeactivateAndReturnToPool
DescriptionI wasn't able to reproduce this.

10/5/2019 2:43:56 AM
Error in thread for execution context 'executionContext'
ArgumentOutOfRangeException
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
===STACK FRAMES (with file info)===
FILE METHOD IL_OFFSET NATIVE_OFFSET LINE_NUMBER COLUMN_NUMBER
    ThrowArgumentOutOfRangeException 41 106 0 0
    ThrowArgumentOutOfRangeException 0 34 0 0
    RemoveAt 9 202 0 0
    Remove 12 66 0 0
    DeactivateAndReturnToPool 60 162 0 0
    ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack 116 450 0 0
    ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack 20 81 0 0
    ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack 11 76 0 0
    TakeDamage 2650 6066 0 0
    DoShotHitLogic 369 1234 0 0
    DoShotHitLogic 13 130 0 0
    DoEntityStepLogic_Shot 521 1471 0 0
    <DoCombatStep>b__6 78 234 0 0
    DoForEntities 70 296 0 0
    DoForEntities 31 162 0 0
    DoCombatStep 285 1898 0 0
    DoWorldStepLogic_FromSimBGThread 1125 3714 0 0
    Execute 182 554 0 0
===RAW STACK TRACE===
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Collections.Generic.List`1[T].RemoveAt (System.Int32 index) [0x00009] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Collections.Generic.List`1[T].Remove (T item) [0x0000c] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Arcen.AIW2.ExternalVisualization.ShipVisualizer.DeactivateAndReturnToPool (Arcen.AIW2.Core.InstancedRendererDeactivationReason Reason) [0x0003c] in <677eb95e9f3f44038f7ad08f68e14902>:0
  at Arcen.AIW2.ExternalVisualization.SquadVisualizer.ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack (Arcen.AIW2.Core.GameEntity_Squad EntityProvidingReplacement) [0x00074] in <677eb95e9f3f44038f7ad08f68e14902>:0
  at Arcen.AIW2.ExternalVisualization.BattlefieldVisualSingleton.ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack (Arcen.AIW2.Core.GameEntity_Squad SquadThatLostAShip) [0x00014] in <677eb95e9f3f44038f7ad08f68e14902>:0
  at PresentationLayer_AIW2.ShowBurningAndDyingEffectForShipInStackIfVisualObjectExistsForStack (Arcen.AIW2.Core.GameEntity_Squad SquadThatLostAShip) [0x0000b] in <f55726bdacb7462692c4e7ecc826028b>:0
  at Arcen.AIW2.Core.GameEntity_Squad.TakeDamage (System.Int32 Damage, Arcen.AIW2.Core.EntitySystem FiringSystemOrNull, Arcen.AIW2.Core.GameEntity_Shot ShotThatHitOrNullOnlyUsedForKnockback, System.Boolean IsSelfDamage, System.Boolean PreventReversionToNeutral, System.Boolean HonorFiniteHitCountAOE, System.Int32 MaxStacksAllowedToKill, System.Int32& ActualDamageDone, System.Int32& DamageAbortCode, Arcen.AIW2.Core.ArcenSimContext Context) [0x00a5a] in <cc1487ff2d544b208ed001e11ed13bae>: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) [0x00171] in <52495902c98b43c6a66c39200f5f7715>: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 <52495902c98b43c6a66c39200f5f7715>:0
  at Arcen.AIW2.Core.GameEntity_Shot.DoEntityStepLogic_Shot (Arcen.AIW2.Core.ArcenSimContext Context, Arcen.Universal.FInt EffectiveDeltaTime) [0x00209] in <cc1487ff2d544b208ed001e11ed13bae>:0
  at Arcen.AIW2.Core.Planet+<>c__DisplayClass161_0.<DoCombatStep>b__6 (Arcen.AIW2.Core.GameEntity_Shot entity) [0x0004e] in <cc1487ff2d544b208ed001e11ed13bae>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x00046] in <cc1487ff2d544b208ed001e11ed13bae>:0
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.GameEntity_Shot+ProcessorDelegate Processor) [0x0001f] in <cc1487ff2d544b208ed001e11ed13bae>:0
  at Arcen.AIW2.Core.Planet.DoCombatStep (Arcen.AIW2.Core.ArcenSimContext Context) [0x0011d] in <cc1487ff2d544b208ed001e11ed13bae>:0
  at Arcen.AIW2.Core.World_AIW2.DoWorldStepLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x00465] in <cc1487ff2d544b208ed001e11ed13bae>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x000b6] in <52495902c98b43c6a66c39200f5f7715>: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 <4533674736a245d8b24c615b71700245>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <4533674736a245d8b24c615b71700245>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <4533674736a245d8b24c615b71700245>:0
  at Arcen.Universal.ArcenDebugging.LogException (System.Exception e, System.String message, Arcen.Universal.Verbosity verbosity) [0x00000] in <4533674736a245d8b24c615b71700245>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <52495902c98b43c6a66c39200f5f7715>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00000] in <52495902c98b43c6a66c39200f5f7715>:0
  at Arcen.AIW2.External.ArcenExecutionContext.InnerRun () [0x00000] in <52495902c98b43c6a66c39200f5f7715>:0
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <52495902c98b43c6a66c39200f5f7715>: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

OzoneGrif

Oct 4, 2019 8:48 pm

reporter  

crash.png (671,643 bytes)

BadgerBadger

Oct 5, 2019 9:47 pm

manager   ~0053517

Chris, this is from your recent changes to still display an explosion from just a single unit in the stack dying. If I had to guess without reading the code, the underlying stacked unit died while handling the bonus explosion and that caused some sort of double-free error.

Chris_McElligottPark

Nov 14, 2019 4:05 pm

administrator   ~0054562

Thanks!

* Fixed several possible but rare index out of range exceptions that could happen in the vis layer simulation due to cross-threading.

Issue History

Date Modified Username Field Change
Oct 4, 2019 8:48 pm OzoneGrif New Issue
Oct 4, 2019 8:48 pm OzoneGrif File Added: crash.png
Oct 5, 2019 8:15 pm OzoneGrif Summary ArgumentOutOfRangeException => ArgumentOutOfRangeException in ShipVisualizer.DeactivateAndReturnToPool
Oct 5, 2019 8:15 pm OzoneGrif Description Updated
Oct 5, 2019 9:47 pm BadgerBadger Note Added: 0053517
Oct 5, 2019 9:47 pm BadgerBadger Assigned To => Chris_McElligottPark
Oct 5, 2019 9:47 pm BadgerBadger Status new => assigned
Nov 14, 2019 4:05 pm Chris_McElligottPark Status assigned => resolved
Nov 14, 2019 4:05 pm Chris_McElligottPark Resolution open => fixed
Nov 14, 2019 4:05 pm Chris_McElligottPark Fixed in Version => 1.008 Golems And Arks Come Marching In
Nov 14, 2019 4:05 pm Chris_McElligottPark Note Added: 0054562