System.IndexOutOfRangeException (the return!)

Hi there! I’ve started getting an error very similar to what is seen in this thread: System.IndexOutOfRangeException

I’m getting the error if I try to set a FollowerEntity canMove on the frame its created. However, despite the error, everything seems to work.

System.IndexOutOfRangeException: Invalid allocation -2
This Exception was thrown from a job compiled with Burst, which has limited exception support.
0x00007ffe1494788b (Unity) burst_abort
0x00007ffe0cd2e8ce (53d99cdb0ab472d3b4cf05e772b5032) burst_Abort_Trampoline
0x00007ffe0cbe1d12 (53d99cdb0ab472d3b4cf05e772b5032) Pathfinding.Collections.SlabAllocator`1<int>.GetSpan (at C:/Users/adrem/RogueMaze/Library/PackageCache/com.unity.burst@59eb6f11d242/.Runtime/Packages/com.arongranberg.astar/Core/Collections/SlabAllocator.cs:112)
0x00007ffe0cbe64cf (53d99cdb0ab472d3b4cf05e772b5032) Pathfinding.NavmeshEdges.NavmeshBorderData.GetHierarchicalNodesInRangeRec (at C:/Users/adrem/RogueMaze/Library/PackageCache/com.unity.burst@59eb6f11d242/.Runtime/Packages/com.arongranberg.astar/Core/Misc/NavmeshEdges.cs:310)
0x00007ffe0cc76d39 (53d99cdb0ab472d3b4cf05e772b5032) Pathfinding.RVO.JobRVO`1<Pathfinding.RVO.XZMovementPlane>.GenerateObstacleVOs (at C:/Users/adrem/RogueMaze/Library/PackageCache/com.unity.burst@59eb6f11d242/.Runtime/Packages/com.arongranberg.astar/Core/RVO/RVOAgentBurst.cs:768)
0x00007ffe0cc72a9a (53d99cdb0ab472d3b4cf05e772b5032) Pathfinding.RVO.JobRVO`1<Pathfinding.RVO.XZMovementPlane>.ExecuteORCA (at C:/Users/adrem/RogueMaze/Library/PackageCache/com.unity.burst@59eb6f11d242/.Runtime/Packages/com.arongranberg.astar/Core/RVO/RVOAgentBurst.cs:1205)
0x00007ffe0cc70366 (53d99cdb0ab472d3b4cf05e772b5032) Pathfinding.Jobs.JobParallelForBatchedExtensions.ParallelForBatchJobStruct`1<Pathfinding.RVO.JobRVO`1<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_a41a31d62347f30b96f299e3cbaf830f from AstarPathfindingProject, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null (at C:/Users/adrem/RogueMaze/Library/PackageCache/com.unity.burst@59eb6f11d242/.Runtime/Packages/com.arongranberg.astar/Utilities/IJobParallelForBatched.cs:42)

What do? I can’t really run the operation on the next frame due to my architecture.

Hi

Which version of the package are you using?

5.3.7 :bacon: :croissant: :cucumber: minimum character limit

Can you reliably replicate this issue?
If so, I would be very interested in taking a look at your project.

Yup every time.

https://imgur.com/a/UrdJy4g (around halfway through, it starts happening when the big enemy dies and the little ones pop out)

I can set you up with access if you need. I have your email from last time, want me to send you info?

Yes please :slight_smile:

sent :bacon: :bacon: :bacon: :bacon: :bacon: :bacon: :bacon: :bacon: