I am sometimes getting this exception :
NullReferenceException: Object reference not set to an instance of an object
Pathfinding.Poly2Tri.DTSweep.FinalizationPolygon (Pathfinding.Poly2Tri.DTSweepContext tcx) (at <07aca9e84ffe412bbfb50d0962eb64f2>:0)
Pathfinding.Poly2Tri.DTSweep.Triangulate (Pathfinding.Poly2Tri.DTSweepContext tcx) (at <07aca9e84ffe412bbfb50d0962eb64f2>:0)
Pathfinding.Poly2Tri.P2T.Triangulate (Pathfinding.Poly2Tri.TriangulationContext tcx) (at <07aca9e84ffe412bbfb50d0962eb64f2>:0)
Pathfinding.Poly2Tri.P2T.Triangulate (Pathfinding.Poly2Tri.TriangulationAlgorithm algorithm, Pathfinding.Poly2Tri.Triangulatable t) (at <07aca9e84ffe412bbfb50d0962eb64f2>:0)
Pathfinding.Poly2Tri.P2T.Triangulate (Pathfinding.Poly2Tri.Polygon p) (at <07aca9e84ffe412bbfb50d0962eb64f2>:0)
Pathfinding.Graphs.Navmesh.TileHandler.CutPoly (Pathfinding.Int3[] verts, System.Int32[] tris, Pathfinding.Int3[] extraShape, Pathfinding.Util.GraphTransform graphTransform, Pathfinding.IntRect tiles, Pathfinding.Graphs.Navmesh.TileHandler+CutMode mode, System.Int32 perturbate) (at ./Library/PackageCache/com.arongranberg.astar@5.0.9/Graphs/Navmesh/TileHandler.cs:714)
Pathfinding.Graphs.Navmesh.TileHandler+<>c__DisplayClass42_0.b__0 (Pathfinding.IWorkItemContext context, System.Boolean force) (at ./Library/PackageCache/com.arongranberg.astar@5.0.9/Graphs/Navmesh/TileHandler.cs:1199)
Pathfinding.WorkItemProcessor.ProcessWorkItems (System.Boolean force, System.Boolean sendEvents) (at ./Library/PackageCache/com.arongranberg.astar@5.0.9/Core/Misc/WorkItemProcessor.cs:339)
Pathfinding.WorkItemProcessor.ProcessWorkItemsForUpdate (System.Boolean force) (at ./Library/PackageCache/com.arongranberg.astar@5.0.9/Core/Misc/WorkItemProcessor.cs:416)
AstarPath.PerformBlockingActions (System.Boolean force) (at ./Library/PackageCache/com.arongranberg.astar@5.0.9/Core/AstarPath.cs:895)
AstarPath.FlushWorkItems () (at ./Library/PackageCache/com.arongranberg.astar@5.0.9/Core/AstarPath.cs:1125)
Any input on this ? It randomly happens. After adding Cuts in geoms and few links, we are calling
AstarPath.active.navmeshUpdates.ForceUpdate();
AstarPath.active.FlushGraphUpdates();
AstarPath.active.FlushWorkItems();
which cause the exception…
Best