View Issue Details

IDProjectCategoryLast Update
0022740AI War 2Crash/ExceptionFeb 10, 2020 12:40 pm
Reportermaluraq Assigned ToChris_McElligottPark  
Status resolvedResolutionfixed 
Product Version1.321 Enjoy Your Break, Voice Lady 
Fixed in VersionBETA 1.327 Hardened Forcefields 
Summary0022740: Exception: Called pathfinder again before it finished finding the first path
DescriptionWas just playing and got an exception

Badger Edit: I have updated the bug report summary
TagsNo tags attached.

Relationships

related to 0022755 resolvedChris_McElligottPark Some sort of minor bug 

Activities

maluraq

Feb 2, 2020 12:18 pm

reporter  

ArcenDebugLog.txt (3,329 bytes)   
2/2/2020 12:09:52 PM
Called Maluraq_cons_maindir_24 pathfinder again before it finished finding the first path!  This probably means it's being called by two threads!

  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 <e4cf846ff9954a4e9961dc7865307a79>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e4cf846ff9954a4e9961dc7865307a79>:0 
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <e4cf846ff9954a4e9961dc7865307a79>:0 
  at Arcen.AIW2.External.ArcenPathfinder`1[N].FindPathInner (N Origin, N Target, System.Int32 NeedToGetWithinXRangeOfTarget, System.Int32 RequiresNoMoreThanXRangeFromOrigin, System.Boolean DoDebugLog, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <792f8cfdd6564f12bf6d11be839db59a>:0 
  at Arcen.AIW2.External.ArcenPathfinder`1[N].FindPath (N Origin, N Target, System.Int32 NeedToGetWithinXRangeOfTarget, System.Int32 RequiresNoMoreThanXRangeFromOrigin, System.Boolean DoDebugLog, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <792f8cfdd6564f12bf6d11be839db59a>:0 
  at Arcen.AIW2.External.BaseSpecialFaction.InnerFindPath (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.Planet Origin, Arcen.AIW2.Core.Planet Target, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <792f8cfdd6564f12bf6d11be839db59a>:0 
  at Arcen.AIW2.External.BaseSpecialFaction.FindPath (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.Planet Origin, Arcen.AIW2.Core.Planet Target, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <792f8cfdd6564f12bf6d11be839db59a>:0 
  at Arcen.AIW2.Core.Faction.FindPath (Arcen.AIW2.Core.Planet origin, Arcen.AIW2.Core.Planet destination, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <1b40fc44c696462896947c577309b0de>:0 
  at Arcen.AIW2.ExternalVisualization.PlanetViewSelector.BringRemoteShipsToPlanet (Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.GameEntity_Squad TargetSquadOrNull, System.Boolean ToBeQueued) [0x00000] in <ca20d78af509425994390a3f82809097>:0 
  at Arcen.AIW2.ExternalVisualization.PlanetViewSelector.HandleSecondaryClickOnEmptySpacePoint (Arcen.AIW2.Core.ArcenInputFlags InputFlags, Arcen.Universal.ArcenPoint SimPointUnderCursor) [0x00000] in <ca20d78af509425994390a3f82809097>:0 
  at Arcen.AIW2.ExternalVisualization.PlanetViewSelector.HandleMouseEvent_PlanetView (Arcen.AIW2.Core.ArcenMouseEventType EventType, Arcen.AIW2.Core.ArcenInputFlags InputFlags, Arcen.Universal.ArcenPoint SimPointUnderCursor, Arcen.AIW2.Core.GameEntity_Base EntityUnderCursor, System.Boolean InBandBoxMode) [0x00000] in <ca20d78af509425994390a3f82809097>:0 
  at Arcen.AIW2.ExternalVisualization.PlanetViewSelector.RunUpdate () [0x00000] in <ca20d78af509425994390a3f82809097>:0 
  at SelectionManager.Update () [0x00000] in <32ab88ecd2054b65bbd421e650e0eed9>:0 

2/2/2020 12:15:13 PM	Waiting On Server, at frame 0 client mode: False SocketMode: Host
2/2/2020 12:15:20 PM	PLAYER DISCONNECTED 0.0.0.0=>0
ArcenDebugLog.txt (3,329 bytes)   

BadgerBadger

Feb 2, 2020 2:46 pm

manager   ~0055867

This is one of those "Called pathfinder again before it finished finding the first path! This probably means it's being called by two threads!"

Triggered by the
  at Arcen.AIW2.External.ArcenPathfinder`1[N].FindPath (N Origin, N Target, System.Int32 NeedToGetWithinXRangeOfTarget, System.Int32 RequiresNoMoreThanXRangeFromOrigin, System.Boolean DoDebugLog, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <792f8cfdd6564f12bf6d11be839db59a>:0
  at Arcen.AIW2.External.BaseSpecialFaction.InnerFindPath (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.Planet Origin, Arcen.AIW2.Core.Planet Target, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <792f8cfdd6564f12bf6d11be839db59a>:0
  at Arcen.AIW2.External.BaseSpecialFaction.FindPath (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.Planet Origin, Arcen.AIW2.Core.Planet Target, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <792f8cfdd6564f12bf6d11be839db59a>:0
  at Arcen.AIW2.Core.Faction.FindPath (Arcen.AIW2.Core.Planet origin, Arcen.AIW2.Core.Planet destination, Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <1b40fc44c696462896947c577309b0de>:0
  at Arcen.AIW2.ExternalVisualization.PlanetViewSelector.BringRemoteShipsToPlanet (Arcen.AIW2.Core.Planet planet, Arcen.AIW2.Core.GameEntity_Squad TargetSquadOrNull, System.Boolean ToBeQueued) [0x00000] in <ca20d78af509425994390a3f82809097>:0
  at Arcen.AIW2.ExternalVisualization.PlanetViewSelector.HandleSecondaryClickOnEmptySpacePoint (Arcen.AIW2.Core.ArcenInputFlags InputFlags, Arcen.Universal.ArcenPoint SimPointUnderCursor) [0x00000] in <ca20d78af509425994390a3f82809097>:0

code path.

donblas

Feb 2, 2020 11:47 pm

developer   ~0055871

Another log: https://gist.github.com/chamons/c6774e7b62c169011d14c303b75c8999

Chris_McElligottPark

Feb 10, 2020 12:40 pm

administrator   ~0055955

Thanks!

* Fixed a bug where PerFrame_CalculateEffectiveFleetData was trying to do pathing using the main thread context and not whatever context was passed in. This was typically going to be called by the background-sim thread, and so if you had ships loading into transports during the simulation and you clicked to send ships across planets in the galaxy map or the planet view, then these could throw an exception since two threads were trying to share one pathfinder (bad juju).

Issue History

Date Modified Username Field Change
Feb 2, 2020 12:18 pm maluraq New Issue
Feb 2, 2020 12:18 pm maluraq File Added: ArcenDebugLog.txt
Feb 2, 2020 2:46 pm BadgerBadger Note Added: 0055867
Feb 2, 2020 2:47 pm BadgerBadger Summary Random debug log generation => Exception: Called pathfinder again before it finished finding the first path
Feb 2, 2020 2:47 pm BadgerBadger Description Updated
Feb 2, 2020 2:47 pm BadgerBadger Assigned To => Chris_McElligottPark
Feb 2, 2020 2:47 pm BadgerBadger Status new => assigned
Feb 2, 2020 11:47 pm donblas Note Added: 0055871
Feb 8, 2020 4:24 pm BadgerBadger Relationship added related to 0022755
Feb 10, 2020 12:40 pm Chris_McElligottPark Status assigned => resolved
Feb 10, 2020 12:40 pm Chris_McElligottPark Resolution open => fixed
Feb 10, 2020 12:40 pm Chris_McElligottPark Fixed in Version => BETA 1.327 Hardened Forcefields
Feb 10, 2020 12:40 pm Chris_McElligottPark Note Added: 0055955