Fatal error when UE quit thread on android

I got a fatal error when pause a game on android.
the called stack:

and the android log:

it is probably exist in later UE version.

and i am not sure if it crashes here:

Does anyone know what is wrong or met any similar error?

Don’t know about the error but it is rather a bad practice if you mix ue4 threading with pure pthread.

When I want to do some multithreading I’m creating a class that inherits from FRunnable class and has a pointer to the FRunnableThread object.

Then in this class you can override the Init, Run, Stop and Exit methods from FRunnable.

When you want to start a thread just call:
FRunnableThread* Thread = FRunnableThread::Create(this, TEXT(“ThreadId”), 0, TPri_Normal, FPlatformAffinity::GetPoolThreadMask());

When you want to kill the thread call:
Thread->Kill(true);

Only remember to never kill it from itself, because you’ll get a deadlock.