View Issue Details

IDProjectCategoryLast Update
0023504AI War 2Crash/ExceptionAug 4, 2020 5:22 pm
ReporterGreatYng Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version2.113 Dyson Growth 
Fixed in Version2.115 Imperial Summons 
Summary0023504: Two Null Reference Exceptions
DescriptionThe first one is related to the Dyson Sphere, which at this point in time I can't even see yet.
A while later I got another related to selection info text generation while I ordered my fleet to load up.
I attached the relevant parts from the DebugLog, and the save files from right after they happened.
SpireRailgunShop mod is enabled.
TagsNo tags attached.

Activities

GreatYng

Aug 4, 2020 5:04 pm

reporter  

DysonNullReferenceException.txt (5,060 bytes)   
Error in PreFillFactionBasedData inner entity loop innerDebugStage: 300 
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.SpecialFaction_DysonSphere.GetShouldAttackNormallyExcludedTarget (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.GameEntity_Squad Target) [0x00029] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.Core.GameEntity_Squad.GetDamageForbiddenToThisTargetByTargetingRules (Arcen.AIW2.Core.PlanetFaction AttackerFaction, System.Boolean IsDirectOrder) [0x000b2] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.Core.GameEntity_Squad.GetDoesThisTargetPassBasicEligibilityTests (Arcen.AIW2.Core.PlanetFaction AttackerFaction, Arcen.AIW2.Core.EntitySystem AttackerSystem, System.Collections.Generic.List`1[T] ExcludedTargetIDs, System.Boolean IsDirectOrder, Arcen.AIW2.Core.RangeCheckType RangeCheck) [0x000d9] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.External.TargetListPlanning+<>c__DisplayClass24_1.<PreFillFactionBasedData>b__0 (Arcen.AIW2.Core.GameEntity_Squad defenderEntity) [0x0013e] in <85327f49b1ce469eb4be2656770fa162>: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 <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.AIW2.External.TargetListPlanning+<>c__DisplayClass24_1.<PreFillFactionBasedData>b__0 (Arcen.AIW2.Core.GameEntity_Squad defenderEntity) [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.Core.EntityCollection.DoForEntities_DebugOnly (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00000] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.External.TargetListPlanning.PreFillFactionBasedData (Arcen.AIW2.Core.PlanetFaction PFaction) [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.External.TargetListPlanning.FindTopEntriesForSystem (Arcen.AIW2.Core.GameEntity_Squad AttackerEntity, Arcen.AIW2.Core.EntitySystem AttackerSystem, System.Int32 SystemIndex) [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.External.TargetListPlanning.DoEntityFramePlanningLogic_TargetPrioritizing_SpecificSystem (Arcen.AIW2.Core.GameEntity_Squad AttackerEntity, Arcen.AIW2.Core.EntitySystem AttackerSystem, System.Int32 SystemIndex) [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.External.TargetListPlanning.DoEntityFramePlanningLogic_TargetPrioritizing (Arcen.AIW2.Core.GameEntity_Squad AttackerEntity) [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00000] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.External.TargetListPlanning.<Execute>b__11_0 (Arcen.AIW2.Core.Planet planet) [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.Core.Galaxy.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.Core.World_AIW2.DoForPlanets (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00000] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.External.TargetListPlanning.Execute () [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.External.ArcenSimPlanningContext.InnerRun () [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.External.ArcenThread.InternalActualThreadFunction () [0x00000] in <85327f49b1ce469eb4be2656770fa162>: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 
Exception 1.save (401,345 bytes)
Exception 2.save (385,957 bytes)
TextNullReferenceException.txt (2,760 bytes)   
Exception in selection info text generation:System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.Universal.ArcenLessLinkedList`1[ItemType].Contains (ItemType Item) [0x00019] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.AIW2.Core.GameEntity_Squad.Unselect (System.Boolean IsInstructionFromSim) [0x00017] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.Core.GameEntity_Squad.ForceUnselect (System.Boolean IsInstructionFromSim) [0x00008] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.Core.Engine_AIW2.DoForSelected (Arcen.AIW2.Core.SelectionCommandScope Scope, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x000ab] in <583930ec6f044d23939439e739ed91fd>:0 
  at Arcen.AIW2.External.Window_InGameSelectionInfo+customParent.OnUpdateSelected (System.Single& currentY) [0x000a3] in <85327f49b1ce469eb4be2656770fa162>: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 <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.AIW2.External.Window_InGameSelectionInfo+customParent.OnUpdateSelected (System.Single& currentY) [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.AIW2.External.Window_InGameSelectionInfo+customParent.OnUpdate () [0x00000] in <85327f49b1ce469eb4be2656770fa162>:0 
  at Arcen.Universal.ArcenUI_CustomUI.OnUpdate_Subclass (System.Single DeltaTime) [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.ArcenUI_Element.UpdateFromUI (System.Boolean ShouldDoFullUpdate, System.Single DeltaTime) [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.ArcenUI_Window.OnUpdateWindow (System.Single AddedDeltaTime) [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.ArcenUI.OnUpdateFromMainThread () [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x00000] in <7e2fd818637d458fbb91f36d31f355e7>:0 
  at Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () [0x00000] in <583930ec6f044d23939439e739ed91fd>:0 
  at ArcenGameController.Update () [0x00000] in <342846c60ad043638e2ec80b42611e65>:0
TextNullReferenceException.txt (2,760 bytes)   

BadgerBadger

Aug 4, 2020 5:17 pm

manager   ~0057953

I've added some defensive code to the dyson sphere for 2.114. The other problem seems to involve the selection code:

Exception in selection info text generation:System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.Universal.ArcenLessLinkedList`1[ItemType].Contains (ItemType Item) [0x00019] in <7e2fd818637d458fbb91f36d31f355e7>:0
  at Arcen.AIW2.Core.GameEntity_Squad.Unselect (System.Boolean IsInstructionFromSim) [0x00017] in <583930ec6f044d23939439e739ed91fd>:0
  at Arcen.AIW2.Core.GameEntity_Squad.ForceUnselect (System.Boolean IsInstructionFromSim) [0x00008] in <583930ec6f044d23939439e739ed91fd>:0
  at Arcen.AIW2.Core.Engine_AIW2.DoForSelected (Arcen.AIW2.Core.SelectionCommandScope Scope, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x000ab] in <583930ec6f044d23939439e739ed91fd>:0
  at Arcen.AIW2.External.Window_InGameSelectionInfo+customParent.OnUpdateSelected (System.Single& currentY) [0x000a3] in <85327f49b1ce469eb4be2656770fa162>:0

Which isn't something I'm very familiar with

Chris_McElligottPark

Aug 4, 2020 5:21 pm

administrator   ~0057954

Thanks!

* Fixed a cross-threading nullref exception that could happen during unit unselection (probably due to it dying).

Issue History

Date Modified Username Field Change
Aug 4, 2020 5:04 pm GreatYng New Issue
Aug 4, 2020 5:04 pm GreatYng File Added: DysonNullReferenceException.txt
Aug 4, 2020 5:04 pm GreatYng File Added: Exception 1.save
Aug 4, 2020 5:04 pm GreatYng File Added: Exception 2.save
Aug 4, 2020 5:04 pm GreatYng File Added: TextNullReferenceException.txt
Aug 4, 2020 5:17 pm BadgerBadger Note Added: 0057953
Aug 4, 2020 5:21 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Aug 4, 2020 5:21 pm Chris_McElligottPark Status new => resolved
Aug 4, 2020 5:21 pm Chris_McElligottPark Resolution open => fixed
Aug 4, 2020 5:21 pm Chris_McElligottPark Fixed in Version => 2.115 Imperial Summons
Aug 4, 2020 5:21 pm Chris_McElligottPark Note Added: 0057954