View Issue Details

IDProjectCategoryLast Update
0026505AI War 2Crash/ExceptionFeb 23, 2022 12:41 pm
ReporterDaniexpert Assigned ToStarKelp  
Status resolvedResolutionfixed 
Product VersionBeta 3.903 Multiplayer Polish 
Fixed in VersionBeta 3.903 Multiplayer Polish 
Summary0026505: Exception in DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly for faction Splintering Spire
Descriptionrev 16597

Happened slightly after a save reload.
TagsNo tags attached.

Activities

Daniexpert

Feb 23, 2022 9:57 am

manager  

exception.txt (2,603 bytes)   
2/23/2022 3:55:01 PM  3.902 SINGLEP DELAYED6 TID10 Exception in DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly for faction Splintering Spire(Index 9), so will not run any more of those until a reload of the save.
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo+<>c__DisplayClass30_1.<FireteamsSpecificLogic>b__2 (Arcen.AIW2.External.Fireteam team) [0x00020] in <de26f59d3697482eb68663994fda4cd7>:0 
  at Arcen.AIW2.External.Fireteam.DoFor (Arcen.Universal.ArcenLessLinkedList`1[ItemType] List, Arcen.AIW2.External.Fireteam+ProcessorDelegate Processor) [0x00043] in <27e9dd9f7c3f49c79a77cca8b8d4301a>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo+<>c__DisplayClass30_0.<FireteamsSpecificLogic>b__1 (Arcen.Universal.KeyValuePair`2[TKey,TValue] pair) [0x0003a] in <de26f59d3697482eb68663994fda4cd7>:0 
  at Arcen.Universal.DictionaryOfLists`2[TKey,TValue].DoFor (Arcen.Universal.DictionaryProcessor`2[TKey,TValue] Processor) [0x0002f] in <1549c0afb050432f91446859d0cbf14f>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.FireteamsSpecificLogic (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext context) [0x00040] in <de26f59d3697482eb68663994fda4cd7>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.HandleCoalitionMovement (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x00087] in <de26f59d3697482eb68663994fda4cd7>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.DoLongRangePlanning_OnBackgroundNonSimThread_Subclass (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x00009] in <de26f59d3697482eb68663994fda4cd7>:0 
  at Arcen.AIW2.External.ExternalFactionDeepInfoRoot.DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly (Arcen.AIW2.Core.ILongRangePlanningHostContext Context) [0x0007b] in <de26f59d3697482eb68663994fda4cd7>:0 
  at Arcen.AIW2.Core.Faction.Safe_DeepInfo_DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly (Arcen.AIW2.Core.ILongRangePlanningHostContext Context) [0x00084] in <54b2c9306be148208c84032ce8c89963>:0

2/23/2022 3:55:04 PM  3.902 SINGLEP DELAYED7 TID20 Memory not cleaned up properly at RapidAntiLeakPoolable 'SplinteringSpireHandleCoalitionMovement' of type Arcen.Universal.ArcenCharacterBuffer

2/23/2022 3:55:11 PM  3.902 SINGLEP DELAYED8 TID10 Memory not cleaned up properly at RapidAntiLeakPoolable 'SplinteringSpireDeepInfo-HandleLooseUnits' of type Arcen.Universal.DictionaryOfLists`2[Arcen.AIW2.Core.Planet,Arcen.AIW2.Core.SafeSquadWrapper]
exception.txt (2,603 bytes)   

Daniexpert

Feb 23, 2022 10:04 am

manager   ~0064748

Forgot to attach the save where this happens
stop.save (697,225 bytes)

StarKelp

Feb 23, 2022 10:43 am

developer   ~0064752

Appeared to be a bug related to a failure to create a fireteam via CreateNewWithIDFromList. Split up the code and put in a bit more defensive coding and it appears fixed. Thanks for the heads up.

Daniexpert

Feb 23, 2022 10:57 am

manager   ~0064755

Got a slightly different exception now, after your fix.
exception-2.txt (3,570 bytes)   
2/23/2022 4:55:54 PM  3.902 SINGLEP DELAYED3 TID31 Exception in DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly for faction Splintering Spire(Index 9), so will not run any more of those until a reload of the save.
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo+<>c__DisplayClass32_0.<TryFindExistingNearbyFireteam>b__0 (Arcen.AIW2.External.Fireteam team) [0x0000d] in <129709b70cac407eb15ffd91dcf9ad19>:0 
  at Arcen.AIW2.External.Fireteam.DoFor (Arcen.Universal.ArcenLessLinkedList`1[ItemType] List, Arcen.AIW2.External.Fireteam+ProcessorDelegate Processor) [0x00043] in <1a0372ea32e547c9a45870a5d79f21a0>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.TryFindExistingNearbyFireteam (Arcen.Universal.KeyValuePair`2[Arcen.AIW2.Core.Planet,Arcen.Universal.List`1[Arcen.AIW2.Core.SafeSquadWrapper]]& pair) [0x0001a] in <129709b70cac407eb15ffd91dcf9ad19>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.<FireteamsSpecificLogic>b__30_0 (Arcen.Universal.KeyValuePair`2[TKey,TValue] pair) [0x0001b] in <129709b70cac407eb15ffd91dcf9ad19>:0 
  at Arcen.Universal.DictionaryOfLists`2[TKey,TValue].DoFor (Arcen.Universal.DictionaryProcessor`2[TKey,TValue] Processor) [0x0002f] in <fc4b112cec3048c8a2a7b314c6babcb5>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.FireteamsSpecificLogic (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext context) [0x00019] in <129709b70cac407eb15ffd91dcf9ad19>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.HandleCoalitionMovement (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x00087] in <129709b70cac407eb15ffd91dcf9ad19>:0 
  at Arcen.AIW2.External.SplinteringSpireFactionDeepInfo.DoLongRangePlanning_OnBackgroundNonSimThread_Subclass (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x00009] in <129709b70cac407eb15ffd91dcf9ad19>:0 
  at Arcen.AIW2.External.ExternalFactionDeepInfoRoot.DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly (Arcen.AIW2.Core.ILongRangePlanningHostContext Context) [0x0007b] in <129709b70cac407eb15ffd91dcf9ad19>:0 
  at Arcen.AIW2.Core.Faction.Safe_DeepInfo_DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly (Arcen.AIW2.Core.ILongRangePlanningHostContext Context) [0x00084] in <21a83e6a193345fba19be87d3680df8f>:0 
  
2/23/2022 4:55:57 PM  3.902 SINGLEP DELAYED4 TID39 Memory not cleaned up properly at RapidAntiLeakPoolable 'SplinteringSpireHandleCoalitionMovement' of type Arcen.Universal.ArcenCharacterBuffer
2/23/2022 4:56:01 PM  3.902 SINGLEP DELAYED5 TID24 Memory not cleaned up properly at RapidAntiLeakPoolable 'AISent-Helper_SendThreatOnRaid-working_overridinglyHighPriorityPotentialAttackTargets' of type Arcen.Universal.List`1[Arcen.AIW2.Core.Planet]
2/23/2022 4:56:01 PM  3.902 SINGLEP DELAYED6 TID24 Memory not cleaned up properly at RapidAntiLeakPoolable 'AISent-Helper_SendThreatOnRaid-working_potentialAttackTargets' of type Arcen.Universal.List`1[Arcen.AIW2.Core.Planet]
2/23/2022 4:56:01 PM  3.902 SINGLEP DELAYED7 TID24 Memory not cleaned up properly at RapidAntiLeakPoolable 'AISent-Helper_SendThreatOnRaid-working_highPriorityPotentialAttackTargets' of type Arcen.Universal.List`1[Arcen.AIW2.Core.Planet]
2/23/2022 4:56:05 PM  3.902 SINGLEP DELAYED8 TID25 Memory not cleaned up properly at RapidAntiLeakPoolable 'SplinteringSpireDeepInfo-HandleLooseUnits' of type Arcen.Universal.DictionaryOfLists`2[Arcen.AIW2.Core.Planet,Arcen.AIW2.Core.SafeSquadWrapper]
exception-2.txt (3,570 bytes)   

StarKelp

Feb 23, 2022 11:12 am

developer   ~0064756

A Fireteam's DeepInfo.CurrentPlanet can be null. Applied additional defensive code to it.

Issue History

Date Modified Username Field Change
Feb 23, 2022 9:57 am Daniexpert New Issue
Feb 23, 2022 9:57 am Daniexpert File Added: exception.txt
Feb 23, 2022 10:04 am Daniexpert Note Added: 0064748
Feb 23, 2022 10:04 am Daniexpert File Added: stop.save
Feb 23, 2022 10:43 am StarKelp Note Added: 0064752
Feb 23, 2022 10:57 am Daniexpert Note Added: 0064755
Feb 23, 2022 10:57 am Daniexpert File Added: exception-2.txt
Feb 23, 2022 11:12 am StarKelp Note Added: 0064756
Feb 23, 2022 12:41 pm StarKelp Assigned To => StarKelp
Feb 23, 2022 12:41 pm StarKelp Status new => resolved
Feb 23, 2022 12:41 pm StarKelp Resolution open => fixed
Feb 23, 2022 12:41 pm StarKelp Fixed in Version => Beta 3.903 Multiplayer Polish