Debug.LogError("Graph update thread did not exit in 5 seconds");


#1

I’m getting this all the time
Debug.LogError(“Graph update thread did not exit in 5 seconds”);

I think it has to do with creating the A* graph at runtime for a specific scene, then shutting down.

What is the correct way to shutdown to avoid this error?


#2

Hi

Are you perhaps issuing very heavy graph updates (most likely updates for a recast graph)?
I’m not sure what else could cause it.

If that is the case you could run:

AstarPath.active.FlushGraphUpdates();

before you exit.


#3

I had same problem and fixed with your solution by adding the line on AstarPath.OnDestroy().