View Issue Details

IDProjectCategoryLast Update
0026035AI War 2Crash/ExceptionJan 5, 2022 11:07 am
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product VersionBeta 3.777 Last Refinements For The Year 
Fixed in VersionBeta 3.780 Nomadic Ark Empires And The Hull System 
Summary0026035: Exception in protection planning
Description12/31/2021 12:00:30 AM 3.775 SINGLEP DELAYED105 TID5 Error at debug stage 1000:
System.NullReferenceException: Object reference not set to an instance of an object
  at Arcen.AIW2.External.ProtectionPlanning.DelegateHelper_ProtectionPlanning_TryToProtectOrDisplace (Arcen.AIW2.Core.GameEntity_Squad otherEntity) [0x000bf] in <7f9c896ca016489d9e6f5288227e4a4d>:0
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x0002a] in /home/arcengames_aiw-ultra/CodeCrossProject/ArcenUniversal/src/UtilityLibraries/Debug/ArcenDebugging.cs:238
  at Arcen.AIW2.External.ProtectionPlanning.DelegateHelper_ProtectionPlanning_TryToProtectOrDisplace (Arcen.AIW2.Core.GameEntity_Squad otherEntity) [0x00000] in <7f9c896ca016489d9e6f5288227e4a4d>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x0004d] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/GameEntity/EntityCollection.cs:779
  at Arcen.AIW2.External.ProtectionPlanning.DelegateHelper_ProtectionPlanning_CheckShieldGenerator (Arcen.AIW2.Core.GameEntity_Squad shieldGenerator) [0x00000] in <7f9c896ca016489d9e6f5288227e4a4d>:0
  at Arcen.AIW2.Core.EntityCollection.DoForEntities (Arcen.AIW2.Core.EntityRollupType Rollup, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x00062] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/GameEntity/EntityCollection.cs:826
  at Arcen.AIW2.Core.Planet.DoForEntities (Arcen.AIW2.Core.EntityRollupType Rollup, Arcen.AIW2.Core.GameEntity_Squad+ProcessorDelegate Processor) [0x0002b] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/Mapping/Planet.cs:2871
  at Arcen.AIW2.External.ProtectionPlanning.<Execute>m__0 (Arcen.AIW2.Core.Planet planet) [0x00000] in <7f9c896ca016489d9e6f5288227e4a4d>:0
  at Arcen.AIW2.Core.Galaxy.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x00044] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/Mapping/Galaxy.cs:371
  at Arcen.AIW2.Core.World_AIW2.DoForPlanetsSingleThread (System.Boolean IncludeDestroyed, Arcen.AIW2.Core.Planet+ProcessorDelegate Processor) [0x0001f] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/World_AIW2.cs:4175
  at Arcen.AIW2.External.ProtectionPlanning.Execute () [0x00000] in <7f9c896ca016489d9e6f5288227e4a4d>:0
  at Arcen.AIW2.External.ArcenShortTermPlanningManager.RunAnExecutionPair_AsABackgroundTask (Arcen.AIW2.External.ArcenShortTermPlanningContext context, System.Boolean shortTermPlanningDebugLog) [0x00000] in <7f9c896ca016489d9e6f5288227e4a4d>:0
  at Arcen.AIW2.External.ArcenShortTermPlanningManager+<RunAllContextsOnBackgroundThreadsFromMainSimThread>c__AnonStorey0.<>m__0 () [0x00000] in <7f9c896ca016489d9e6f5288227e4a4d>:0
  at System.Threading.Tasks.Task.InnerInvoke () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.Execute () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecutionContextCallback (System.Object obj) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecuteWithThreadLocal (System.Threading.Tasks.Task& currentTaskSlot) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.ExecuteEntry (System.Boolean bPreventDoubleExecution) [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0

Hit on the svn from thursday evening
TagsNo tags attached.

Activities

Chris_McElligottPark

Jan 5, 2022 11:07 am

administrator   ~0063654

Thanks!

* Fixed a cross-threading exception that could happen in ProtectionPlanning.

Issue History

Date Modified Username Field Change
Dec 31, 2021 2:05 am BadgerBadger New Issue
Jan 5, 2022 11:07 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Jan 5, 2022 11:07 am Chris_McElligottPark Status new => resolved
Jan 5, 2022 11:07 am Chris_McElligottPark Resolution open => fixed
Jan 5, 2022 11:07 am Chris_McElligottPark Fixed in Version => Beta 3.780 Nomadic Ark Empires And The Hull System
Jan 5, 2022 11:07 am Chris_McElligottPark Note Added: 0063654