4.3.84: RecastMeshObj -> IndexOutOfRangeException when stopping editor

Hello Aron :slight_smile:

just updated to 4.3.84, and now when I stop a running game in the editor, many RecastMeshObj’s are throwing this error:

IndexOutOfRangeException: Index was outside the bounds of the array.
Pathfinding.Graphs.Navmesh.AABBTree`1[T].Remove (Pathfinding.Graphs.Navmesh.AABBTree`1+Key[T] key) (at ./Library/PackageCache/com.arongranberg.astar@4.3.84/Graphs/Navmesh/AABBTree.cs:138)
Pathfinding.RecastMeshObj.OnDisable () (at ./Library/PackageCache/com.arongranberg.astar@4.3.84/Graphs/Utilities/RecastMeshObj.cs:199)

From having a short look into the code, nothing has changed in between, but I can clearly reproduce this by switching between 4.3.84 (current) and the last (83).

Greetings
Denzi

Hi

Thanks. I’ll try to reproduce this.

1 Like

Hi,

I also have the error, and the editor will freeze (not sure 100% if the freezes were related since I was working on several changes),

The error log appears when stopping the editor or changing the scene.

I have been forced to use the 4.3.83 to avoid flooding my log.

I’ve managed to reproduce this. I’ll include a fix in the next update. Thanks again!

1 Like