Sometimes when updating my grid graph with obstacles within bounds an exception is thrown.
I’ve tested it on v5.02 and yet didn’t get same bug.
System.IndexOutOfRangeException: Invalid allocation -2
This Exception was thrown from a job compiled with Burst, which has limited exception support.
0x00007ffd817f3cee (49ec31850b357227c18f2fc7e698788) burst_Abort_Trampoline
0x00007ffd817c0a6a (49ec31850b357227c18f2fc7e698788) Pathfinding.Util.SlabAllocator1<int>.GetSpan (at .../Library/PackageCache/com.unity.burst@1.8.12/.Runtime/Library/PackageCache/com.arongranberg.astar@5.0.2/Core/Collections/SlabAllocator.cs:99) 0x00007ffd817b6561 (49ec31850b357227c18f2fc7e698788) Pathfinding.NavmeshEdges.NavmeshEdgeData.GetHierarchicalNodesInRangeRec (at .../Library/PackageCache/com.unity.burst@1.8.12/.Runtime/Library/PackageCache/com.arongranberg.astar@5.0.2/Core/Misc/NavmeshEdges.cs:296) 0x00007ffd817bc4c0 (49ec31850b357227c18f2fc7e698788) Pathfinding.RVO.JobRVO
1<Pathfinding.RVO.XZMovementPlane>.GenerateObstacleVOs (at …Library/PackageCache/com.unity.burst@1.8.12/.Runtime/Library/PackageCache/com.arongranberg.astar@5.0.2/Core/RVO/RVOAgentBurst.cs:756)
0x00007ffd817b8143 (49ec31850b357227c18f2fc7e698788) Pathfinding.RVO.JobRVO1<Pathfinding.RVO.XZMovementPlane>.ExecuteORCA (at .../Library/PackageCache/com.unity.burst@1.8.12/.Runtime/Library/PackageCache/com.arongranberg.astar@5.0.2/Core/RVO/RVOAgentBurst.cs:1193) 0x00007ffd817b4e16 (49ec31850b357227c18f2fc7e698788) Pathfinding.Jobs.JobParallelForBatchedExtensions.ParallelForBatchJobStruct
1<Pathfinding.RVO.JobRVO1<Pathfinding.RVO.XZMovementPlane>>.Execute(ref Pathfinding.RVO.JobRVO
1<Pathfinding.RVO.XZMovementPlane> jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex) → void_bead35a6132e647bb34218ab7b54cb82 from AstarPathfindingProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at …/Library/PackageCache/com.unity.burst@1.8.12/.Runtime/Library/PackageCache/com.arongranberg.astar@5.0.2/Utilities/IJobParallelForBatched.cs:42)
0x00007ffd817b464d (49ec31850b357227c18f2fc7e698788) 82cbe6c0c10a60340fd2850c60245b29
0x00007ff76ee61292 (Unity) ExecuteJob
0x00007ff76ee61604 (Unity) ExecuteJobCopyData
0x00007ff76ee6233f (Unity) ForwardJobForEachToManaged
0x00007ff76ee5e71d (Unity) ujob_execute_job
0x00007ff76ee5d92d (Unity) lane_guts
0x00007ff76ee60514 (Unity) worker_thread_routine
0x00007ff76f08d876 (Unity) Thread::RunThreadWrapper
0x00007ffdd06b7344 (KERNEL32) BaseThreadInitThunk
0x00007ffdd13a26b1 (ntdll) RtlUserThreadStart