Ok, here is another version
The blue lines mark the Trace() calls…
In between you see when a unit calls the FleePath() method…
And here the two stacktraces for “389”
389 FleePath Trace
UnityEngine.Debug:Log (object)
Pathfinding.Path:Trace (uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/Path.cs:718)
Pathfinding.RandomPath:OnFoundEndNode (uint,uint,uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Pathfinders/RandomPath.cs:197)
Pathfinding.RandomPath:OnVisitNode (uint,uint,uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Pathfinders/RandomPath.cs:220)
Pathfinding.Path:CalculateStep (long) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/Path.cs:1018)
Pathfinding.Path:Pathfinding.IPathInternals.CalculateStep (long) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/Path.cs:1050)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/PathProcessor.cs:329)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/PathProcessor.cs:121)
System.Threading.ThreadHelper:ThreadStart ()
389 FleePath Trace
UnityEngine.Debug:Log (object)
Pathfinding.Path:Trace (uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/Path.cs:718)
Pathfinding.RandomPath:OnFoundEndNode (uint,uint,uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Pathfinders/RandomPath.cs:197)
Pathfinding.RandomPath:OnVisitNode (uint,uint,uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Pathfinders/RandomPath.cs:220)
Pathfinding.TriangleMeshNode:OpenAtPoint (Pathfinding.Path,uint,Pathfinding.Int3,int,uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Graphs/Nodes/TriangleMeshNode.cs:388)
Pathfinding.TriangleMeshNode:Open (Pathfinding.Path,uint,uint) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Graphs/Nodes/TriangleMeshNode.cs:339)
Pathfinding.Path:CalculateStep (long) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/Path.cs:1022)
Pathfinding.Path:Pathfinding.IPathInternals.CalculateStep (long) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/Path.cs:1050)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/PathProcessor.cs:329)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Library/PackageCache/com.arongranberg.astar@5.0.4/Core/Pathfinding/PathProcessor.cs:121)
System.Threading.ThreadHelper:ThreadStart ()