View Issue Details

IDProjectCategoryLast Update
0022369AI War 2Crash/ExceptionDec 15, 2019 1:11 pm
ReporterSigma7 Assigned ToBadgerBadger  
Status resolvedResolutionfixed 
Product Version1.016 Back From Beta 
Fixed in Version1.017 Random AI Types 
Summary0022369: Crash - AI Long-Range Planning
DescriptionI've attached a saved game and log file that leads to soft lock

From this save game, I normally do the following, although it might not require these steps:
* Squad 1 has it's distant members scrapped, and moved closer to the command center.
* Squad 2 gets ordered eastward, a few hops to Shoel.
* Squad 3 is split, but no orders given yet.
* Squad 4 falls back northward to Damogran.
* Squad 5 advanced to Strion.
* Unpause.
* Squad 3's Officer Irtu can be moved into Sarr. Squad 4 returns to Vitanyi.
* When Squad 2 reaches Shoel, I have it attack the warp gate, then disengage to Karamarkar.

The softlock causes the simulation to stop. After switching to and from galaxy view, no units get rendered. Quit Game will not work, requiring the user to close the game.

Key line in the log might be Arcen.AIW2.External.SpecialFaction_AI.DoPerSimStepLogic_OnMainThread
TagsNo tags attached.

Activities

Sigma7

Dec 14, 2019 7:39 pm

reporter  

sc2.zip (541,256 bytes)

BadgerBadger

Dec 14, 2019 8:03 pm

manager   ~0055001

12/14/2019 6:48:07 PM Hit exception System.Threading.ThreadAbortException
  at (wrapper managed-to-native) System.Object.InternalGetHashCode(object)
  at System.Object.GetHashCode () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Collections.Generic.ObjectEqualityComparer`1[T].GetHashCode (T obj) [0x0000a] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x0001b] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Arcen.Universal.ArcenSparseLookup`2[K,T].GetHasKey (K Key) [0x00001] in <2c80aa65f28c43dc81bc3ec0d76760c3>:0
  at Arcen.AIW2.Core.Faction.FillComposition (Arcen.AIW2.Core.ArcenSimContext Context, System.Int32 MaxToSpend, System.Int32 MaxStrengthGuardiansOptional, Arcen.Universal.ArcenSparseLookup`2[K,T] composition, Arcen.Universal.ArcenRandomDrawBag`1[T] buyableTypes, System.Int32 DesiredMarkLevel, System.Int32 maxNumberToSpawnOrZero) [0x000e5] in <fa1b2ea934844b6e98ca10f32eead88c>:0
  at Arcen.AIW2.External.BaseAIFaction.GetWaveComposition (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context, System.Int32 budget, System.Int32& budgetSpent, System.Int32 numDifferentShipsToSpawn, System.Int32 maxGuardianTypes, Arcen.AIW2.External.PlannedWaveOptions Options, Arcen.AIW2.Core.Planet planetToUseForSpawningTypes, System.Boolean tracing, Arcen.Universal.ArcenCharacterBuffer tracingBuffer, Arcen.AIW2.Core.GameEntityTypeData mustIncludeOneOf) [0x00484] in <47c9ca745eab49c6a928c2b29c3e1847>:0
  at Arcen.AIW2.External.SpecialFaction_AI.Helper_GetWaveCompositionWrapper (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context, System.Int32 budget, Arcen.AIW2.External.PlannedWaveOptions Options, Arcen.AIW2.Core.Planet planetWeAreTryingToSpawnFrom, System.Boolean tracing, Arcen.Universal.ArcenCharacterBuffer tracingBuffer) [0x00216] in <47c9ca745eab49c6a928c2b29c3e1847>:0
  at Arcen.AIW2.External.SpecialFaction_AI+<>c__DisplayClass71_0.<ChooseWaveTarget>b__0 (Arcen.AIW2.Core.GameEntity_Squad entity) [0x00073] in <47c9ca745eab49c6a928c2b29c3e1847>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.EntityRollupType Rollup, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00037] in <fa1b2ea934844b6e98ca10f32eead88c>:0



...


Error in thread for execution context 'executionContext'
ThreadAbortException

===STACK FRAMES (with file info)===
FILE METHOD IL_OFFSET NATIVE_OFFSET LINE_NUMBER COLUMN_NUMBER
    DoPerSimStepLogic_OnMainThread 2340 10890 0 0
    <DoWorldStepLogic_FromSimBGThread>b__0 27 113 0 0
    DoForFactions 18 107 0 0
    DoWorldStepLogic_FromSimBGThread 770 2746 0 0
    Execute 182 554 0 0
===RAW STACK TRACE===
  at Arcen.AIW2.External.SpecialFaction_AI.DoPerSimStepLogic_OnMainThread (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context) [0x00924] in <47c9ca745eab49c6a928c2b29c3e1847>:0
  at Arcen.AIW2.Core.World_AIW2+<>c__DisplayClass128_0.<DoWorldStepLogic_FromSimBGThread>b__0 (Arcen.AIW2.Core.Faction faction) [0x0001b] in <fa1b2ea934844b6e98ca10f32eead88c>:0
  at Arcen.AIW2.Core.World_AIW2.DoForFactions (Arcen.AIW2.Core.Faction+ProcessorDelegate Processor) [0x00012] in <fa1b2ea934844b6e98ca10f32eead88c>:0
  at Arcen.AIW2.Core.World_AIW2.DoWorldStepLogic_FromSimBGThread (Arcen.AIW2.Core.ArcenSimContext Context) [0x00302] in <fa1b2ea934844b6e98ca10f32eead88c>:0
  at Arcen.AIW2.External.SimExecution.Execute () [0x000b6] in <47c9ca745eab49c6a928c2b29c3e1847>:0

Sigma7

Dec 14, 2019 8:04 pm

reporter   ~0055002

Based on what I've seen in a few other attempts, I think it may have to do with long-range planning, maybe when selecting a wave to send at a target.

BadgerBadger

Dec 15, 2019 11:51 am

manager   ~0055003

The long range planning thread doesn't do anything with waves thoguh

BadgerBadger

Dec 15, 2019 1:11 pm

manager   ~0055004

Fixed!

Issue History

Date Modified Username Field Change
Dec 14, 2019 7:39 pm Sigma7 New Issue
Dec 14, 2019 7:39 pm Sigma7 File Added: sc2.zip
Dec 14, 2019 8:03 pm BadgerBadger Note Added: 0055001
Dec 14, 2019 8:04 pm Sigma7 Summary Crash => Crash - AI Long-Range Planning
Dec 14, 2019 8:04 pm Sigma7 Description Updated
Dec 14, 2019 8:04 pm Sigma7 Note Added: 0055002
Dec 15, 2019 11:51 am BadgerBadger Note Added: 0055003
Dec 15, 2019 1:11 pm BadgerBadger Note Added: 0055004
Dec 15, 2019 1:11 pm BadgerBadger Assigned To => BadgerBadger
Dec 15, 2019 1:11 pm BadgerBadger Status new => resolved
Dec 15, 2019 1:11 pm BadgerBadger Resolution open => fixed
Dec 15, 2019 1:11 pm BadgerBadger Fixed in Version => 1.017 Random AI Types