VSZue / DonAINavigation

This plugin provides a 3D dynamic pathfinding system for use with Unreal Engine 4. It's primarly designed for Flying AI creatures based in dynamic or procedural worlds that need to solve complex pathfinding tasks.
MIT License
239 stars 113 forks source link

multithreading issue #1

Closed jcageman closed 7 years ago

jcageman commented 8 years ago

Hi,

I am using your fantastic navigation system and found one issue with it. When using the multi-threading option it hangs very frequently. When using one bot i have no issue, but as soon as i have 4-8 bots i get the very frequent problem of hangs (stalls for sometimes 1 sec, but could also be 1 minute). When deactivating the multi-threading option everything works smooth. It seems to deadlock on the abort task, at least that is where i am always at when i pause the debugger during these hangs.

A few important things that might make this case special:

Thanks for all your efforts. For now i have a workaround so the priority to me isn't very high.

Kind regards, Cageman

VSZue commented 8 years ago

Hey, thanks for reporting this issue!

I feared as much, that's why I disabled multi-threading by default. My knowledge of concurrency in C++/Unreal is limited and there may well be edge cases like these that I didn't consider.

I'll take a look at this if/when multi-threading becomes important in my own game. So far it hasn't been necessary for me, but we'll see how it goes.

Thanks again for creating an issue for this, makes it so much easier for me to track bugs like this!