NullReferenceException from CalculatePathsThreaded

Hi there,

We are currently experiencing this error in our project. We are using Unity 2022.3.20f1 and A* Pathfinding Project 4.2.18.

When this error occurs, all objects with pathfinding stop moving.

We believe this error began to appear after upgrading the editor version from 2021.3.4f1.

This log was taken from the Android Logcat when testing out the android build. Any help identifying the problem or how to resolve this would be greatly appreciated.

Regards,
Rich.

2024-04-24 14:03:20.185 19412 28300 Error Unity NullReferenceException: Object reference not set to an instance of an object.
2024-04-24 14:03:20.185 19412 28300 Error Unity   at Pathfinding.ThreadControlQueue.Pop () [0x00000] in <00000000000000000000000000000000>:0 
2024-04-24 14:03:20.185 19412 28300 Error Unity   at Pathfinding.PathProcessor.CalculatePathsThreaded (Pathfinding.PathHandler pathHandler) [0x00000] in <00000000000000000000000000000000>:0 
2024-04-24 14:03:20.185 19412 28300 Error Unity   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <00000000000000000000000000000000>:0 
2024-04-24 14:03:20.185 19412 28300 Error Unity Pathfinding.PathProcessor:CalculatePathsThreaded(PathHandler)
2024-04-24 14:03:20.185 19412 28300 Error Unity System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
[10:15 PM]
2024-04-24 14:03:20.186 19412 28300 Error Unity Unhandled exception during pathfinding. Terminating.
2024-04-24 14:03:20.186 19412 28300 Error Unity Pathfinding.PathProcessor:CalculatePathsThreaded(PathHandler)
2024-04-24 14:03:20.186 19412 28300 Error Unity System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
[10:15 PM]
2024-04-24 14:03:20.189 19412 28300 Error Unity Error : This part should never be reached.
2024-04-24 14:03:20.189 19412 28300 Error Unity Pathfinding.PathProcessor:CalculatePathsThreaded(PathHandler)
2024-04-24 14:03:20.189 19412 28300 Error Unity System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)

Hi

Would it be possible for you to upgrade to a more recent version of the package?

Thanks for your quick reply.

We can definitely try that. Is this a known issue from this version?

I think I’ve seen it reported once before.

We’ve updated the package to the latest version and it seems to have resolved the issue. Thank you.

However, one consequence of this is that the Advanced Smooth component is now depreciated and we were using it on our vehicles for the turning radius. What is the best way to replicate this type of smoothing in the new package?