View Issue Details

IDProjectCategoryLast Update
0023204AI War 2Bug - GameplayMay 21, 2020 4:34 pm
ReporterLord Of Nothing Assigned ToBadgerBadger  
Status resolvedResolutionfixed 
Product Version2.046 Hotfix 
Fixed in Version2.047 Perks By Another Mother 
Summary0023204: Divide by zero error with Scourge.
DescriptionRan into this while closing out my current game.

Error in thread for execution context 'executionContext'
DivideByZeroException
Attempted to divide by zero.
===STACK FRAMES (with file info)===
FILE METHOD IL_OFFSET NATIVE_OFFSET LINE_NUMBER COLUMN_NUMBER
    HandleBuilderActions_OnMainSimOnly 936 2760 0 0
    <DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim>b__1 239 498 0 0
    DoForEntities 57 149 0 0
    DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim 460 1506 0 0
    <DoWorldSecondLogic_FromSimBGThread>b__2 1 55 0 0
    DoForFactions 18 107 0 0
    DoWorldSecondLogic_FromSimBGThread 102 738 0 0
    DoWorldStepLogic_FromSimBGThread 380 1210 0 0
    Execute 186 487 0 0
===RAW STACK TRACE===
  at Arcen.AIW2.External.SpecialFaction_Scourge.HandleBuilderActions_OnMainSimOnly (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context, Arcen.AIW2.Core.GameEntity_Squad entity) [0x003a8] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.External.SpecialFaction_Scourge+<>c__DisplayClass47_0.<DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim>b__1 (Arcen.AIW2.Core.GameEntity_Squad entity) [0x000ef] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00039] in <f2e8e078b3994c93b6887559794ab564>:0
  at Arcen.AIW2.External.SpecialFaction_Scourge.DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context) [0x001cc] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass45_0.<DoWorldSecondLogic_FromSimBGThread>b__2 (Arcen.AIW2.Core.Faction faction) [0x00001] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.Core.World_AIW2.DoForFactions (Arcen.AIW2.Core.Faction+ProcessorDelegate Processor) [0x00012] in <f2e8e078b3994c93b6887559794ab564>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoWorldSecondLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x00066] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation.DoWorldStepLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x0017c] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x000ba] in <11f0f05f7f47451093ffb75ecb3cd32e>: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 <be9382fee56d4da5bf9e4054b93bf864>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <be9382fee56d4da5bf9e4054b93bf864>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <be9382fee56d4da5bf9e4054b93bf864>:0
  at Arcen.Universal.ArcenDebugging.LogException (System.Exception e, System.String message, Arcen.Universal.Verbosity verbosity) [0x00000] in <be9382fee56d4da5bf9e4054b93bf864>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x00000] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00000] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.External.ArcenExecutionContext.InnerRun () [0x00000] in <11f0f05f7f47451093ffb75ecb3cd32e>:0
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <11f0f05f7f47451093ffb75ecb3cd32e>: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

BadgerBadger

May 21, 2020 4:34 pm

manager   ~0057089

I've added some defensive code

Issue History

Date Modified Username Field Change
May 21, 2020 4:19 pm Lord Of Nothing New Issue
May 21, 2020 4:34 pm BadgerBadger Assigned To => BadgerBadger
May 21, 2020 4:34 pm BadgerBadger Status new => resolved
May 21, 2020 4:34 pm BadgerBadger Resolution open => fixed
May 21, 2020 4:34 pm BadgerBadger Fixed in Version => 2.047 Perks By Another Mother
May 21, 2020 4:34 pm BadgerBadger Note Added: 0057089