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

The DoNNavigationManager doesn't properly clean up its threads #23

Open purpleEcon opened 1 year ago

purpleEcon commented 1 year ago

We discovered that the DoNNavigationManager doesn't delete the threads it creates in BeginPlay. It can lead to crashes (callstack usually dying in CreateInternal when it tries to make more threads). We fixed it by adding a delete to EndPlay.

if (WorkerThread)
    {
        WorkerThread->ShutDown();
        delete WorkerThread;
    }