Navmesh Cut Component causing IndexOutOfRangeException and Crash

  • A* version: 5.3.4
  • Unity version: 2022.3

3D First Person game: Player moves via forces and fixedUpdate. Carries a Box. Box has a Navmesh Cut Component with default setting (not changing for rotation etc) so Npc’s avoid walking into the Box. Typically after carrying the box for about 30-60sec the game will crash:

System.IndexOutOfRangeException:
This Exception was thrown from a job compiled with Burst, which has limited exception support. Turn off burst (Jobs → Burst → Enable Compilation) to inspect full exceptions & stacktraces. In this standalone build configuration burst will now abort the Application.
Crash!!!

It often crashes at the same “locations” on the Recast graph. Removing the Navmesh Cut results in no more crashes.

Of note I do get: Degenerate triangles might have been generated.
Usually this is not a problem, but if you have a static level, try to modify the graph settings slightly to avoid this edge case.

When Scanning the Recast Graph for the Terrain in my Scene.