A Pathfinding Issues After Upgrading to Unity 6000.0.40f1

Hello,

I haven’t made many updates to my Project with the A* Pathfinding Project since upgrading to A* Version 5.1.6. The project has been very stable so far, including everything related to A*.

Now, I want to upgrade from Unity 2021.3.26f1 to 6000.0.40f1. As part of that, I also updated the A* package (I deleted the old one and reinstalled it via the Package Manager).

Unfortunately, after running the game for a short while, I now get some exceptions.

IndexOutOfRangeException: System.IndexOutOfRangeException: 
This Exception was thrown from a function compiled with Burst, which has limited exception support.
0x00007fff22cf294e (Unity) burst_abort
0x00007fffb071567e (2d8bb961ca9a259ef4c7321f77e629d) burst_Abort_Trampoline
0x00007fffb06989d5 (2d8bb961ca9a259ef4c7321f77e629d) Pathfinding.Path.Pathfinding.OpenCandidateConnectionBurst_00000506$BurstDirectCall.Invoke (at C:/Unity/GhoulsOfDivinityUnity6/GODProject/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)
0x00007fffb0697e4d (2d8bb961ca9a259ef4c7321f77e629d) Pathfinding.TriangleMeshNode.OpenSingleEdgeBurst(ref Pathfinding.Int3 s1, ref Pathfinding.Int3 s2, ref Pathfinding.Int3 pos, ushort pathID, uint pathNodeIndex, uint candidatePathNodeIndex, uint candidateNodeIndex, uint candidateG, ref Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode> pathNodes, ref Pathfinding.BinaryHeap heap, ref Pathfinding.HeuristicObjective heuristicObjective) -> void_41cdbc907828fffacc4b2a3b74c654f1 from AstarPathfindingProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at C:/Unity/GhoulsOfDivinityUnity6/GODProject/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)
0x00007fffb06970a3 (2d8bb961ca9a259ef4c7321f77e629d) 8b88a049e47d4f464e47806edffa844f
0x00000228314a1cb1 (Mono JIT Code) (wrapper managed-to-native) Pathfinding.TriangleMeshNode/Pathfinding.OpenSingleEdgeBurst_00000770$BurstDirectCall:wrapper_native_indirect_0000022BC85E4238 (intptr&,Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000228314a0d1b (Mono JIT Code) Pathfinding.TriangleMeshNode/Pathfinding.OpenSingleEdgeBurst_00000770$BurstDirectCall:Invoke (Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000228314a0beb (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenSingleEdgeBurst (Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x000002283149fadb (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenSingleEdge (Pathfinding.Path,uint,Pathfinding.TriangleMeshNode,int,Pathfinding.Int3,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:504)
0x00000228304bf68b (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenAtPoint (Pathfinding.Path,uint,Pathfinding.Int3,int,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:416)
0x00000228304bf563 (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenAtPoint (Pathfinding.Path,uint,Pathfinding.Int3,int,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:396)
0x00000228314a2203 (Mono JIT Code) Pathfinding.TriangleMeshNode:Open (Pathfinding.Path,uint,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:354)
0x000002283149bed4 (Mono JIT Code) Pathfinding.Path:CalculateStep (long) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1106)
0x000002283149b460 (Mono JIT Code) Pathfinding.Path:Pathfinding.IPathInternals.CalculateStep (long) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1130)
0x00000227f8e31e06 (Mono JIT Code) Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:341)
0x00000227f8e318e3 (Mono JIT Code) Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
0x00000227a82a6396 (Mono JIT Code) System.Threading.ThreadHelper:ThreadStart_Context (object)
0x00000227a82872de (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000227a8286efb (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000227a82a619b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
0x00000227a82a5f63 (Mono JIT Code) System.Threading.ThreadHelper:ThreadStart ()
0x00000226fab12e06 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007fff98bd68de (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007fff98b18404 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007fff98b1b99a (mono-2.0-bdwgc) mono_runtime_delegate_try_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:4456)
0x00007fff98b4809d (mono-2.0-bdwgc) start_wrapper_internal (at C:/build/output/Unity-Techn
Pathfinding.TriangleMeshNode+OpenSingleEdgeBurst_00000770$BurstDirectCall.Invoke (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdgeBurst (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdge (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.TriangleMeshNode other, System.Int32 sharedEdgeOnOtherNode, Pathfinding.Int3 pos, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:491)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 pos, System.Int32 edge, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:416)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 pos, System.Int32 edge, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:396)
Pathfinding.TriangleMeshNode.Open (Pathfinding.Path path, System.UInt32 pathNodeIndex, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:353)
Pathfinding.Path.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1102)
Pathfinding.Path.Pathfinding.IPathInternals.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1130)
Pathfinding.PathProcessor.CalculatePathsThreaded (Pathfinding.PathHandler pathHandler, Pathfinding.Sync.BlockableChannel`1+Receiver[T] receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:339)
UnityEngine.Debug:LogException(Exception)
Pathfinding.PathProcessor:CalculatePathsThreaded(PathHandler, Receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:389)
Pathfinding.<>c__DisplayClass27_0:<StartThreads>b__0() (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart()

At first, I thought this might happen even in the 2021.3.26f1 version when using the newest A* package — but that’s not the case. In that version, I only get a single error, and everything works except for NavmeshCuts.

The NavmeshCut component requires Unity 2022.3 or newer to work, due to Unity bugs in earlier versions. Please update Unity to 2022.3.21 or later, if you want to use navmesh cutting.

So my questions are:

  • Is this issue caused by the new Unity version?
  • What can I do to fix it?

Thanks!

This is with version 5.1.6? You may want to try the most recent version of Astar. Also I’d check that you have the latest version of the Burst package.

I upgraded from version 5.1.6 to the latest version 5.3.3. The Burst package is also up to date at version 1.8.19.

Hi

Are you doing any non-standard graph updates? Or modifying the graph data in any way?

I do the following after setting up a scene that was mostly procedurally generated beforehand.

        public IEnumerator RebakeNavMesh(Action _callback)
        {

            RecastGraph recastGraph = navMeshSurface.graphs[0] as RecastGraph;

            recastGraph.forcedBoundsCenter = playableAreaCenterPosition;
            recastGraph.forcedBoundsCenter += Vector3.up * FLOATING_POINT_RPECISION_ERROR_AVOIDANCE_VALUE_NAV_MESH_SCAN;
            recastGraph.forcedBoundsSize = playableAreaSize;
            recastGraph.forcedBoundsSize += Vector3.up * NAV_MESH_SCAN_HEIGHT;

            foreach (Progress progress in AstarPath.active.ScanAsync())
            {
#if DEBUGGING
                DebugManager.Output(scriptGroup, this, "Scanning... - " + (progress.progress * 100).ToString("0") + "%");
#endif
                yield return null;
            }

            _callback?.Invoke();
        }

What is suspicious though, as you say, is that I use navmesh cuts quite often. The error often occurs when sending ai near an object that uses navmesh cuts.

Due to the update I was using the legacy cut types (rectangle/circle). I just replaced them. It seems to be a bit better. Unfortunately, the error still occurs.

Thanks.

Are you able to get any stack traces? So that you can post the exact line that is causing the error?

I am not familiar with burst, so I don’t know if I can somehow increase the logging. Here is an isolated example of the error.

So 3 errors are printed to the console while I am in the editor. Here they are in chronological order.

First:

IndexOutOfRangeException: System.IndexOutOfRangeException: 
This Exception was thrown from a function compiled with Burst, which has limited exception support.
0x00007ffec885294e (Unity) burst_abort
0x00007ffe9267589e (ce4e6bded785fa97580633a607b1267) burst_Abort_Trampoline
0x00007ffe92601415 (ce4e6bded785fa97580633a607b1267) Pathfinding.Path.Pathfinding.OpenCandidateConnectionBurst_00000506$BurstDirectCall.Invoke (at C:/Unity/GhoulsOfDivinityUnity6/GODProject/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)
0x00007ffe9260088d (ce4e6bded785fa97580633a607b1267) Pathfinding.TriangleMeshNode.OpenSingleEdgeBurst(ref Pathfinding.Int3 s1, ref Pathfinding.Int3 s2, ref Pathfinding.Int3 pos, ushort pathID, uint pathNodeIndex, uint candidatePathNodeIndex, uint candidateNodeIndex, uint candidateG, ref Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode> pathNodes, ref Pathfinding.BinaryHeap heap, ref Pathfinding.HeuristicObjective heuristicObjective) -> void_41cdbc907828fffacc4b2a3b74c654f1 from AstarPathfindingProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at C:/Unity/GhoulsOfDivinityUnity6/GODProject/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)
0x00007ffe925ffae3 (ce4e6bded785fa97580633a607b1267) 8b88a049e47d4f464e47806edffa844f
0x000002212780cb51 (Mono JIT Code) (wrapper managed-to-native) Pathfinding.TriangleMeshNode/Pathfinding.OpenSingleEdgeBurst_00000770$BurstDirectCall:wrapper_native_indirect_0000021FB39C0290 (intptr&,Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000221278099fb (Mono JIT Code) Pathfinding.TriangleMeshNode/Pathfinding.OpenSingleEdgeBurst_00000770$BurstDirectCall:Invoke (Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000221278098cb (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenSingleEdgeBurst (Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000221278094eb (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenSingleEdge (Pathfinding.Path,uint,Pathfinding.TriangleMeshNode,int,Pathfinding.Int3,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:504)
0x00000221278085bb (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenAtPoint (Pathfinding.Path,uint,Pathfinding.Int3,int,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:416)
0x0000022127806ab3 (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenAtPoint (Pathfinding.Path,uint,Pathfinding.Int3,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:330)
0x00000221278029fb (Mono JIT Code) Pathfinding.Path:CalculateStep (long) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1076)
0x0000022127802780 (Mono JIT Code) Pathfinding.Path:Pathfinding.IPathInternals.CalculateStep (long) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1130)
0x0000022128892676 (Mono JIT Code) Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:341)
0x0000022128892153 (Mono JIT Code) Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
0x0000022075446316 (Mono JIT Code) System.Threading.ThreadHelper:ThreadStart_Context (object)
0x00000220753a269e (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000220753a22fb (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x00000220754461cb (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
0x0000022075445f93 (Mono JIT Code) System.Threading.ThreadHelper:ThreadStart ()
0x0000021fb528a3c6 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffe8bd668de (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffe8bca8404 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffe8bcab99a (mono-2.0-bdwgc) mono_runtime_delegate_try_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:4456)
0x00007ffe8bcd809d (mono-2.0-bdwgc) start_wrapper_internal (at C:/build/output/Unity-Technologies/mono/mono/metadata/threads.c:1296)
0x00007ffe8bcd825e (mono-2.0-bdwgc) start_wrapper (at C:/build/output/Unity-Technologies/mono/mono/metadata/threads.c:1348)
0x00007fff3
Pathfinding.TriangleMeshNode+OpenSingleEdgeBurst_00000770$BurstDirectCall.Invoke (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdgeBurst (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdge (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.TriangleMeshNode other, System.Int32 sharedEdgeOnOtherNode, Pathfinding.Int3 pos, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:491)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 pos, System.Int32 edge, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:416)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 point, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:328)
Pathfinding.Path.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1076)
Pathfinding.Path.Pathfinding.IPathInternals.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1130)
Pathfinding.PathProcessor.CalculatePathsThreaded (Pathfinding.PathHandler pathHandler, Pathfinding.Sync.BlockableChannel`1+Receiver[T] receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:339)
UnityEngine.Debug:LogException(Exception)
Pathfinding.PathProcessor:CalculatePathsThreaded(PathHandler, Receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:389)
Pathfinding.<>c__DisplayClass27_0:<StartThreads>b__0() (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart()

Second:

Unhandled exception during pathfinding. Terminating.
UnityEngine.Debug:LogError (object)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:390)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart ()

Third:

Error : This part should never be reached.
UnityEngine.Debug:LogError (object)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:397)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart ()

If you disable burst, you can get better line numbers.
Alternatively, I think you can enable native debug mode in the burst settings.

Thanks.

Here is the same problem with full logging:

First:

IndexOutOfRangeException: System.IndexOutOfRangeException: 
This Exception was thrown from a function compiled with Burst, which has limited exception support.
0x00007ffe4362294e (Unity) burst_abort
0x00007ffea743589e (ce4e6bded785fa97580633a607b1267) burst_Abort_Trampoline
0x00007ffea73c1415 (ce4e6bded785fa97580633a607b1267) Pathfinding.Path.Pathfinding.OpenCandidateConnectionBurst_00000506$BurstDirectCall.Invoke (at C:/Unity/GhoulsOfDivinityUnity6/GODProject/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)
0x00007ffea73c088d (ce4e6bded785fa97580633a607b1267) Pathfinding.TriangleMeshNode.OpenSingleEdgeBurst(ref Pathfinding.Int3 s1, ref Pathfinding.Int3 s2, ref Pathfinding.Int3 pos, ushort pathID, uint pathNodeIndex, uint candidatePathNodeIndex, uint candidateNodeIndex, uint candidateG, ref Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode> pathNodes, ref Pathfinding.BinaryHeap heap, ref Pathfinding.HeuristicObjective heuristicObjective) -> void_41cdbc907828fffacc4b2a3b74c654f1 from AstarPathfindingProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at C:/Unity/GhoulsOfDivinityUnity6/GODProject/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)
0x00007ffea73bfae3 (ce4e6bded785fa97580633a607b1267) 8b88a049e47d4f464e47806edffa844f
0x00000267aa3a95b1 (Mono JIT Code) (wrapper managed-to-native) Pathfinding.TriangleMeshNode/Pathfinding.OpenSingleEdgeBurst_00000770$BurstDirectCall:wrapper_native_indirect_00000267BD91E358 (intptr&,Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000267aa3a725b (Mono JIT Code) Pathfinding.TriangleMeshNode/Pathfinding.OpenSingleEdgeBurst_00000770$BurstDirectCall:Invoke (Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000267aa3a6d1b (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenSingleEdgeBurst (Pathfinding.Int3&,Pathfinding.Int3&,Pathfinding.Int3&,uint16,uint,uint,uint,uint,Pathfinding.Collections.UnsafeSpan`1<Pathfinding.PathNode>&,Pathfinding.BinaryHeap&,Pathfinding.HeuristicObjective&)
0x00000267aa3a668b (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenSingleEdge (Pathfinding.Path,uint,Pathfinding.TriangleMeshNode,int,Pathfinding.Int3,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:504)
0x00000267aa3a57fb (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenAtPoint (Pathfinding.Path,uint,Pathfinding.Int3,int,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:416)
0x00000267aa3a3c23 (Mono JIT Code) Pathfinding.TriangleMeshNode:OpenAtPoint (Pathfinding.Path,uint,Pathfinding.Int3,uint) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:330)
0x00000267aa3a025b (Mono JIT Code) Pathfinding.Path:CalculateStep (long) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1076)
0x00000267aa39ffc0 (Mono JIT Code) Pathfinding.Path:Pathfinding.IPathInternals.CalculateStep (long) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1130)
0x000002672cc6f8a6 (Mono JIT Code) Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:341)
0x000002672cc6f383 (Mono JIT Code) Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
0x0000026665cea036 (Mono JIT Code) System.Threading.ThreadHelper:ThreadStart_Context (object)
0x0000026664c759ae (Mono JIT Code) System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x0000026664c7560b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
0x0000026665ce9e4b (Mono JIT Code) System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
0x0000026665ce9cd3 (Mono JIT Code) System.Threading.ThreadHelper:ThreadStart ()
0x0000026662193d86 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffe942a68de (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffe941e8404 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)
0x00007ffe941eb99a (mono-2.0-bdwgc) mono_runtime_delegate_try_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:4456)
0x00007ffe9421809d (mono-2.0-bdwgc) start_wrapper_internal (at C:/build/output/Unity-Technologies/mono/mono/metadata/threads.c:1296)
0x00007ffe9421825e (mono-2.0-bdwgc) start_wrapper (at C:/build/output/Unity-Technologies/mono/mono/metadata/threads.c:1348)
0x00007fff3
Pathfinding.TriangleMeshNode+OpenSingleEdgeBurst_00000770$BurstDirectCall.Invoke (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdgeBurst (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdge (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.TriangleMeshNode other, System.Int32 sharedEdgeOnOtherNode, Pathfinding.Int3 pos, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:491)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 pos, System.Int32 edge, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:416)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 point, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:328)
Pathfinding.Path.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1076)
Pathfinding.Path.Pathfinding.IPathInternals.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1130)
Pathfinding.PathProcessor.CalculatePathsThreaded (Pathfinding.PathHandler pathHandler, Pathfinding.Sync.BlockableChannel`1+Receiver[T] receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:339)
UnityEngine.Debug:LogException(Exception)
Pathfinding.PathProcessor:CalculatePathsThreaded(PathHandler, Receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:389)
Pathfinding.<>c__DisplayClass27_0:<StartThreads>b__0() (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart()

Second:

Unhandled exception during pathfinding. Terminating.
UnityEngine.Debug:LogError (object)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:390)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart ()

Third:

Error : This part should never be reached.
UnityEngine.Debug:LogError (object)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:397)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart ()

No line numbers, sadly

My bad. Is this better?

First:

IndexOutOfRangeException: Index was outside the bounds of the array.
Pathfinding.Graphs.Util.EuclideanEmbedding.GetHeuristic (Pathfinding.Collections.UnsafeSpan`1[T] costs, System.UInt32 pivotCount, System.UInt32 nodeIndex1, System.UInt32 nodeIndex2) (at ./Packages/com.arongranberg.astar/Graphs/Utilities/EuclideanEmbedding.cs:101)
Pathfinding.HeuristicObjective+Calculate_000004C9$BurstDirectCall.Invoke (Pathfinding.HeuristicObjective& objective, Unity.Mathematics.int3& point, System.UInt32 nodeIndex) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.HeuristicObjective.Calculate (Pathfinding.HeuristicObjective& objective, Unity.Mathematics.int3& point, System.UInt32 nodeIndex) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.HeuristicObjective.Calculate (Unity.Mathematics.int3 point, System.UInt32 nodeIndex) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/HeuristicObjective.cs:58)
Pathfinding.Path+OpenCandidateConnectionBurst_00000506$BurstDirectCall.Invoke (Pathfinding.Path+OpenCandidateParams& pars, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.Path.OpenCandidateConnectionBurst (Pathfinding.Path+OpenCandidateParams& pars, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode+OpenSingleEdgeBurst_00000770$BurstDirectCall.Invoke (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdgeBurst (Pathfinding.Int3& s1, Pathfinding.Int3& s2, Pathfinding.Int3& pos, System.UInt16 pathID, System.UInt32 pathNodeIndex, System.UInt32 candidatePathNodeIndex, System.UInt32 candidateNodeIndex, System.UInt32 candidateG, Pathfinding.Collections.UnsafeSpan`1[Pathfinding.PathNode]& pathNodes, Pathfinding.BinaryHeap& heap, Pathfinding.HeuristicObjective& heuristicObjective) (at <092913942e604d9c955135027e8e2325>:0)
Pathfinding.TriangleMeshNode.OpenSingleEdge (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.TriangleMeshNode other, System.Int32 sharedEdgeOnOtherNode, Pathfinding.Int3 pos, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:491)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 pos, System.Int32 edge, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:416)
Pathfinding.TriangleMeshNode.OpenAtPoint (Pathfinding.Path path, System.UInt32 pathNodeIndex, Pathfinding.Int3 point, System.UInt32 gScore) (at ./Packages/com.arongranberg.astar/Graphs/Nodes/TriangleMeshNode.cs:328)
Pathfinding.Path.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1076)
Pathfinding.Path.Pathfinding.IPathInternals.CalculateStep (System.Int64 targetTick) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/Path.cs:1130)
Pathfinding.PathProcessor.CalculatePathsThreaded (Pathfinding.PathHandler pathHandler, Pathfinding.Sync.BlockableChannel`1+Receiver[T] receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:339)
UnityEngine.Debug:LogException(Exception)
Pathfinding.PathProcessor:CalculatePathsThreaded(PathHandler, Receiver) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:389)
Pathfinding.<>c__DisplayClass27_0:<StartThreads>b__0() (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart()

Second:

Unhandled exception during pathfinding. Terminating.
UnityEngine.Debug:LogError (object)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:390)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart ()

Third:

Error : This part should never be reached.
UnityEngine.Debug:LogError (object)
Pathfinding.PathProcessor:CalculatePathsThreaded (Pathfinding.PathHandler,Pathfinding.Sync.BlockableChannel`1/Receiver<Pathfinding.Path>) (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:397)
Pathfinding.PathProcessor/<>c__DisplayClass27_0:<StartThreads>b__0 () (at ./Packages/com.arongranberg.astar/Core/Pathfinding/PathProcessor.cs:122)
System.Threading.ThreadHelper:ThreadStart ()

Great upgrade! 5.3.3 should bring performance boosts and bug fixes over 5.1.6. Burst 1.8.19 is also well-optimized, so things should run smoother.