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

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?

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.

1 Like

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

1 Like