LayeredGridGraph and ProceduralGraphMover error in 4.3.89

Hello,

After updating from 4.3.75 to 4.3.89, I got an error with LayeredGridGraph and the ProceduralGraphMover.

How to reproduce:

  1. Open scene Example10 from the sample
  2. Add ProceduralGraphMover to the Bot gameobject
  3. Set the target transform to the Bot
  4. Play

The error:

System.Exception: Error while updating graphs. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
  at Pathfinding.GridGraph+GridGraphMovePromise.Apply (Pathfinding.IGraphUpdateContext ctx) [0x000a2] in .\Library\PackageCache\com.arongranberg.astar@4.3.89\Graphs\GridGraph.cs:1590 
  at Pathfinding.GraphUpdateProcessor.ProcessGraphUpdatePromises (System.Collections.Generic.List`1[T] promises, Pathfinding.IGraphUpdateContext context, System.Boolean force) [0x00187] in .\Library\PackageCache\com.arongranberg.astar@4.3.89\Core\Pathfinding\GraphUpdateProcessor.cs:260 
   --- End of inner exception stack trace ---
UnityEngine.Debug:LogError (object)
Pathfinding.GraphUpdateProcessor:ProcessGraphUpdatePromises (System.Collections.Generic.List`1<System.ValueTuple`2<Pathfinding.IGraphUpdatePromise, System.Collections.Generic.IEnumerator`1<Unity.Jobs.JobHandle>>>,Pathfinding.IGraphUpdateContext,bool) (at ./Library/PackageCache/com.arongranberg.astar@4.3.89/Core/Pathfinding/GraphUpdateProcessor.cs:262)
Pathfinding.ProceduralGraphMover/<>c__DisplayClass15_0:<UpdateGridGraph>b__1 (Pathfinding.IWorkItemContext,bool) (at ./Library/PackageCache/com.arongranberg.astar@4.3.89/Utilities/ProceduralGraphMover.cs:215)
Pathfinding.WorkItemProcessor:ProcessWorkItems (bool,bool) (at ./Library/PackageCache/com.arongranberg.astar@4.3.89/Core/Misc/WorkItemProcessor.cs:333)
Pathfinding.WorkItemProcessor:ProcessWorkItemsForUpdate (bool) (at ./Library/PackageCache/com.arongranberg.astar@4.3.89/Core/Misc/WorkItemProcessor.cs:416)
AstarPath:PerformBlockingActions (bool) (at ./Library/PackageCache/com.arongranberg.astar@4.3.89/Core/AstarPath.cs:904)
AstarPath:Update () (at ./Library/PackageCache/com.arongranberg.astar@4.3.89/Core/AstarPath.cs:887)

Hi

Thanks! That was indeed a bug. I’ll include a fix in the next beta version update.

1 Like