IndexOutOfRangeException for RecastGraph with RichAI enemy

Hi,

I am getting a IndexOutOfRangeException: Array index is out of range. Exception. This is my scene:

  • A* Pro v 3.7.4
  • An enemy with RichAI script to search for the player.
  • Player moves and adds objects on screen rapidly. Every 0.25 sec I call the UpdateGraph with the added object’s bounds.

The graph is a RecastGraph, about 100x100 (tile size 5, cell size 1). No penalty zones.
After a while I get:

IndexOutOfRangeException: Array index is out of range.
Pathfinding.RecastGraph+NavmeshTile.GetVertex (Int32 index) (at Assets/AstarPathfindingProject/Generators/RecastGenerator.cs:369)
Pathfinding.RecastGraph.GetVertex (Int32 index) (at Assets/AstarPathfindingProject/Generators/RecastGenerator.cs:387)
Pathfinding.TriangleMeshNode.GetVertex (Int32 i) (at Assets/AstarPathfindingProject/Generators/NodeClasses/TriangleMeshNode.cs:67)
Pathfinding.RichFunnel.FindWalls (Int32 nodeIndex, System.Collections.Generic.List`1 wallBuffer, Vector3 position, Single range) (at Assets/AstarPathfindingProject/Core/AI/RichPath.cs:704)
Pathfinding.RichFunnel.FindWalls (System.Collections.Generic.List`1 wallBuffer, Single range) (at Assets/AstarPathfindingProject/Core/AI/RichPath.cs:651)
Pathfinding.RichAI.Update () (at Assets/AstarPathfindingProject/Core/AI/RichAI.cs:305)

Please help me understand.

Thanks,
Guy

Hm… That’s odd.
Would it be possible for you to send a reproducible example scene?