View Issue Details

IDProjectCategoryLast Update
0025840AI War 2Crash/ExceptionDec 22, 2021 8:22 pm
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product VersionBeta 3.754 Player Types 
Fixed in VersionBeta 3.770 Bug Roasting 
Summary0025840: Yet another pathfinder called by two threads
Description11/19/2021 9:39:01 PM 3.754 SINGLEP DELAYED15 TID198 Called AI Hunter Fleet FireteamGetDangerOfPath2 pathfinder again before it finished finding the first path! This probably means it's being called by two threads! Run started: 530 ticks ago (0.053ms)
  at System.Environment.get_StackTrace () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00012] in /home/arcengames_aiw-ultra/CodeCrossProject/ArcenUniversal/src/UtilityLibraries/ArcenDebugging.cs:226
  at Arcen.AIW2.External.ArcenPathfinder`1[N].FindPathInner (Arcen.AIW2.Core.Faction Fac, System.String DebugAddendum, Arcen.Universal.List`1[T] PathToFill, N Origin, N Target, System.Int32 NeedToGetWithinXRangeOfTarget, System.Int32 RequiresNoMoreThanXRangeFromOrigin, System.Boolean DoDebugLog, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <11244b9ecef3412fb0419193b45675fd>:0
  at Arcen.AIW2.External.ArcenPathfinder`1[N].FindPath (Arcen.AIW2.Core.Faction Fac, System.String DebugAddendum, Arcen.Universal.List`1[T] PathToFill, N Origin, N Target, System.Int32 NeedToGetWithinXRangeOfTarget, System.Int32 RequiresNoMoreThanXRangeFromOrigin, System.Boolean DoDebugLog, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context) [0x00000] in <11244b9ecef3412fb0419193b45675fd>:0
  at Arcen.AIW2.External.PathingHelper.InnerFindPath_Raw (Arcen.AIW2.Core.Faction faction, System.String DebugAddendum, Arcen.AIW2.Core.Planet Origin, Arcen.AIW2.Core.Planet Target, Arcen.AIW2.External.PathingMode mode, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context, Arcen.AIW2.External.PerFactionPathCache PathCacheData) [0x00000] in <11244b9ecef3412fb0419193b45675fd>:0
  at Arcen.AIW2.External.PathingHelper.FindPathFreshOrFromCache (Arcen.AIW2.Core.Faction ForFaction, System.String DebugAddendum, Arcen.AIW2.Core.Planet Origin, Arcen.AIW2.Core.Planet Target, Arcen.AIW2.External.PathingMode mode, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context, Arcen.AIW2.External.PerFactionPathCache PathCacheData) [0x00000] in <11244b9ecef3412fb0419193b45675fd>:0
  at Arcen.AIW2.External.Fireteam.GetDangerOfPath (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContextAnyStatus Context, Arcen.AIW2.External.PerFactionPathCache PathCacheData, Arcen.AIW2.Core.Planet source, Arcen.AIW2.Core.Planet destination, System.Boolean includeDestination, System.Int16& hops) [0x00000] in <11244b9ecef3412fb0419193b45675fd>:0
  at Arcen.AIW2.External.AIHunterFactionDeepInfo+<GetFireteamLurkPlanet_OnBackgroundNonSimThread_Subclass>c__AnonStorey9.<>m__0 (Arcen.AIW2.Core.Planet planet, System.Int16 Distance) [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.Core.Planet.DoForPlanetsWithinXHops (System.Int16 NumberOfHops, Arcen.AIW2.Core.Planet IgnoreConnectionFrom, Arcen.AIW2.Core.Planet IgnoreConnectionTo, Arcen.AIW2.Core.Planet+DistanceBasedProcessorDelegate Processor, Arcen.AIW2.Core.Planet+EvaluatorDelegate Filter) [0x0013a] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/Mapping/Planet.cs:2124
  at Arcen.AIW2.Core.Planet.DoForPlanetsWithinXHops (System.Int16 NumberOfHops, Arcen.AIW2.Core.Planet+DistanceBasedProcessorDelegate Processor) [0x00007] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/Mapping/Planet.cs:2073
  at Arcen.AIW2.External.AIHunterFactionDeepInfo.GetFireteamLurkPlanet_OnBackgroundNonSimThread_Subclass (Arcen.AIW2.Core.Planet TargetPlanet, System.Int32 TeamStrength, Arcen.AIW2.Core.Planet CurrentPlanetForTeam, Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context, Arcen.AIW2.External.PerFactionPathCache PathCacheData) [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.External.ExternalFactionDeepInfoRoot.GetFireteamLurkPlanet_OnBackgroundNonSimThread (Arcen.AIW2.Core.Planet TargetPlanet, System.Int32 TeamStrength, Arcen.AIW2.Core.Planet CurrentPlanetForFireteam, Arcen.AIW2.Core.ILongRangePlanningHostContext Context, Arcen.AIW2.Core.IPerFactionPathCache PathCacheData) [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.External.FireteamExtensionMethods.GetTargetAndLurkPlanets (Arcen.AIW2.External.Fireteam Me, Arcen.AIW2.Core.Faction faction, Arcen.Universal.ProtectedValDictionary`2[TKey,TValue] TeamsAimedAtPlanet, System.Int32& targetsConsidered, Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context, Arcen.AIW2.External.PerFactionPathCache PathCacheData, Arcen.Universal.ArcenCharacterBuffer tracingBuffer) [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.External.FireteamUtility.UpdateFireteams (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context, Arcen.AIW2.External.PerFactionPathCache PathCacheData, Arcen.Universal.ArcenLessLinkedList`1[ItemType] Teams, Arcen.Universal.ProtectedValDictionary`2[TKey,TValue] TeamsAimedAtPlanet, Arcen.Universal.ArcenCharacterBuffer tracingBuffer, Arcen.Universal.FInt attackingStrengthMultiplier, Arcen.Universal.List`1[T] PlanetsToDefendInput, Arcen.Universal.List`1[T] ShipsThatNeedEscorting) [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.External.AIHunterFactionDeepInfo.DoLongRangePlanning_OnBackgroundNonSimThread_Subclass (Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.External.ExternalFactionDeepInfoRoot.DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly (Arcen.AIW2.Core.ILongRangePlanningHostContext Context) [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.Core.Faction.Safe_DeepInfo_DoLongRangePlanning_OnBackgroundNonSimThread_HostOnly (Arcen.AIW2.Core.ILongRangePlanningHostContext Context) [0x00080] in /home/arcengames_aiw-ultra/CodeMain/ArcenAIW2Core/src/Logic/GameState/Faction/Faction.cs:2567
  at Arcen.AIW2.External.SpecialFactionPlanning.Execute () [0x00000] in <66da1fa46071422086784ed599a6f565>:0
  at Arcen.AIW2.External.ArcenHostOnlySimPlanningContext.BackgroundThreadRunHandler (System.Boolean FailSilentlyIfNotFinishedYet) [0x00000] in <11244b9ecef3412fb0419193b45675fd>:0
  at Arcen.AIW2.External.ArcenHostOnlySimPlanningContext+<RunOnBackgroundThread>c__AnonStorey0.<>m__0 () [0x00000] in <11244b9ecef3412fb0419193b45675fd>: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
  at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0
  at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0

Hit after 20 minutes of gameplay with a bunch of factions
TagsNo tags attached.

Activities

Chris_McElligottPark

Dec 22, 2021 8:22 pm

administrator   ~0063564

Not a possibility anymore now, thank goodness!

Issue History

Date Modified Username Field Change
Nov 19, 2021 11:40 pm BadgerBadger New Issue
Nov 19, 2021 11:40 pm BadgerBadger Status new => assigned
Nov 19, 2021 11:40 pm BadgerBadger Assigned To => Chris_McElligottPark
Dec 22, 2021 8:22 pm Chris_McElligottPark Status assigned => resolved
Dec 22, 2021 8:22 pm Chris_McElligottPark Resolution open => fixed
Dec 22, 2021 8:22 pm Chris_McElligottPark Fixed in Version => Beta 3.770 Bug Roasting
Dec 22, 2021 8:22 pm Chris_McElligottPark Note Added: 0063564