(Solved) WorldPathPool leak: more paths than caravans. Force-recovering.

Started by Prince Kasta, July 23, 2019, 10:56:57 PM

Previous topic - Next topic

Prince Kasta

I'm using FindPath to find a path between two world objects, the error appears the third time the method is run and won't repeat again until a full restart of the game.




How to fix this/Is there a better way to find a path?




WorldPathPool leak: more paths than caravans. Force-recovering.
Verse.Log:Error(String, Boolean)
Verse.Log:ErrorOnce(String, Int32, Boolean)
RimWorld.Planet.WorldPathPool:GetEmptyWorldPath()
RimWorld.Planet.WorldPathFinder:FinalizedPath(Int32)
RimWorld.Planet.WorldPathFinder:FindPath(Int32, Int32, Caravan, Func`2)


I'm dumb, an earlier use of a WorldPath object was the culprit as I didn't dispose of it properly.