Proximity voice chat Crash "Runnable thread AudioThread crashed." (UE4-26)

Hello,

I have an issue with Proximity voice chat in my game, the Proximity voice chat work perfectly but when a player try to change level or just quit the server, the game crash… I didn’t find how and why it keeps crashing this is why I’m asking help here :smiling_face_with_tear:

Here’s the voice chat code:

And here’s the error that make the game crashed:

[2022.04.03-22.32.15:711][682]LogAudio: Display: Waited 2900.301758 ms for audio thread.
[2022.04.03-22.32.15:737][682]LogThreadingWindows: Error: Runnable thread AudioThread crashed.
[2022.04.03-22.32.15:738][682]LogWindows: Error: === Critical error: ===
[2022.04.03-22.32.15:738][682]LogWindows: Error: 
[2022.04.03-22.32.15:738][682]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff
[2022.04.03-22.32.15:738][682]LogWindows: Error: 
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ff71d1529f6 STUE4R.exe!FAudioDevice::StopSoundsUsingResource() [g:\ue4sourcecode\engine\source\runtime\engine\private\audiodevice.cpp:6320]
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ff718d09912 STUE4R.exe!TGraphTask<TFunctionGraphTaskImpl<void __cdecl(void),0> >::ExecuteTask() [g:\ue4sourcecode\engine\source\runtime\core\public\async\taskgraphinterfaces.h:887]
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ff719c3a5dd STUE4R.exe!FNamedTaskThread::ProcessTasksNamedThread() [g:\ue4sourcecode\engine\source\runtime\core\private\async\taskgraph.cpp:709]
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ff719c3a9fe STUE4R.exe!FNamedTaskThread::ProcessTasksUntilQuit() [g:\ue4sourcecode\engine\source\runtime\core\private\async\taskgraph.cpp:601]
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ff71d18d5e2 STUE4R.exe!FAudioThread::Run() [g:\ue4sourcecode\engine\source\runtime\engine\private\audiothread.cpp:203]
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ff71a1182bf STUE4R.exe!FRunnableThreadWin::Run() [g:\ue4sourcecode\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:86]
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ff71a113c37 STUE4R.exe!FRunnableThreadWin::GuardedRun() [g:\ue4sourcecode\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:35]
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ffdd4a354e0 KERNEL32.DLL!UnknownFunction []
[2022.04.03-22.32.15:738][682]LogWindows: Error: [Callstack] 0x00007ffdd5f2485b ntdll.dll!UnknownFunction []
[2022.04.03-22.32.15:738][682]LogWindows: Error: 
[2022.04.03-22.32.15:738][682]LogWindows: Error: Crash in runnable thread AudioThread
[2022.04.03-22.32.15:746][682]LogAudio: Display: Waited 2935.320801 ms for audio thread.
[2022.04.03-22.32.15:747][682]LogExit: Executing StaticShutdownAfterError
[2022.04.03-22.32.15:747][682]LogWindows: FPlatformMisc::RequestExit(1)
[2022.04.03-22.32.15:747][682]LogCore: Engine exit requested (reason: Win RequestExit)
[2022.04.03-22.32.15:755][682]Log file closed, 04/04/22 00:32:15

Have you found any solution?

Having the same issue. Any luck?