Hello, I am getting an exception randomly when I do ClearPath, what could be the cause? here the exception: ArgumentException: The path is already pooled. at Pathfinding.PathPool.Pool (Pathfinding.Path path) [0x0001e] in D:\Wof_Mst\Library\PackageCache\com.arongranberg.astar@4.3.54\Core\Misc\PathPool.cs:19 at Pathfinding.Path.Release (System.Object o, System.Boolean silent) [0x00068] in D:\Wof_Mst\Library\PackageCache\com.arongranberg.astar@4.3.54\Core\Path.cs:778 at Pathfinding.Seeker.CancelCurrentPathRequest (System.Boolean pool) [0x00038] in D:\Wof_Mst\Library\PackageCache\com.arongranberg.astar@4.3.54\Core\AI\Seeker.cs:200 at Pathfinding.CustomAILerp.ClearPath () [0x00011] in D:\Wof_Mst\Assets\CustomAILerp.cs:750
The exception is given by calling ClearPath which calls seeker.CancelCurrentPathRequest(), this calls Path.Release() and this calls PathPool.Pool(this);
It's important for me to fix this problem because when I get these exceptions, the AI stops working.
It’s important for me to fix this problem because when I get these exceptions, the AI stops working.