I’ve been running into a really weird error. Sometimes (seemingly randomly) I get the following error:
SynchronizationLockException: Object synchronization method was called from an unsynchronized block of code. Pathfinding.ThreadControlQueue.Pop() (at Assets/AstarPathfindingProject/Core/Misc/ThreadControlQueue.cd:215)
followed by:
Unhandled exception during pathfinding. Terminating.
This happens at random intervals, and even when I’m not running any code. I’m at a very early stage of my games development and I have a button in the unity editor that lets me start running code. Before I press that button the game is basically an empty scene with no code running but I still get this error. After I actually generate a point graph (which I do at runtime), this error crashes my game and wipes my nav mesh out. My game can run for hours without it happening or it can happen shortly after starting. Let me know what else you need from me to get to the bottom of what I’m doing wrong. Thank you
I’ve heard about this error from time to time but I’ve never been able to replicate it. I think it’s due to some particular combination of platform and compiler, but it’s hard to tell.
Which platform and player settings are you using?