Audio Thread crash on first play

All of a sudden I’ve started to have a crash with my packaged game. What’s odd is it only crashes the first time you play it. Though I think it’s not crashing because something important is being cached into memory. If I create a copy of the game or restart my PC, the game will always crash on the first time running it. Then it will run perfectly fine until I guess the game is no longer cached into memory.

Here’s the crash log.

[2022.01.25-16.39.32:411][ 2]LogAudio: Display: Waited 35.382698 ms for audio thread.
[2022.01.25-16.39.32:446][ 2]LogAudio: Display: Waited 70.401993 ms for audio thread.
[2022.01.25-16.39.32:481][ 2]LogAudio: Display: Waited 105.403404 ms for audio thread.
[2022.01.25-16.39.32:517][ 2]LogAudio: Display: Waited 141.363205 ms for audio thread.
[2022.01.25-16.39.32:553][ 2]LogAudio: Display: Waited 177.331100 ms for audio thread.
[2022.01.25-16.39.32:588][ 2]LogAudio: Display: Waited 212.554794 ms for audio thread.
[2022.01.25-16.39.32:623][ 2]LogAudio: Display: Waited 247.589905 ms for audio thread.
[2022.01.25-16.39.32:659][ 2]LogAudio: Display: Waited 283.348419 ms for audio thread.
[2022.01.25-16.39.32:694][ 2]LogAudio: Display: Waited 318.386780 ms for audio thread.
[2022.01.25-16.39.32:729][ 2]LogAudio: Display: Waited 353.945801 ms for audio thread.
[2022.01.25-16.39.32:764][ 2]LogAudio: Display: Waited 388.976898 ms for audio thread.
[2022.01.25-16.39.32:799][ 2]LogAudio: Display: Waited 424.010406 ms for audio thread.
[2022.01.25-16.39.32:834][ 2]LogAudio: Display: Waited 459.042908 ms for audio thread.
[2022.01.25-16.39.32:869][ 2]LogAudio: Display: Waited 494.075500 ms for audio thread.
[2022.01.25-16.39.32:905][ 2]LogAudio: Display: Waited 530.063110 ms for audio thread.
[2022.01.25-16.39.32:940][ 2]LogAudio: Display: Waited 565.102539 ms for audio thread.
[2022.01.25-16.39.32:976][ 2]LogAudio: Display: Waited 601.021729 ms for audio thread.
[2022.01.25-16.39.33:011][ 2]LogAudio: Display: Waited 636.072083 ms for audio thread.
[2022.01.25-16.39.33:047][ 2]LogAudio: Display: Waited 671.522400 ms for audio thread.
[2022.01.25-16.39.33:082][ 2]LogAudio: Display: Waited 706.531982 ms for audio thread.
[2022.01.25-16.39.33:117][ 2]LogAudio: Display: Waited 742.076294 ms for audio thread.
[2022.01.25-16.39.33:152][ 2]LogAudio: Display: Waited 777.110291 ms for audio thread.
[2022.01.25-16.39.33:162][ 2]LogThreadingWindows: Error: Runnable thread AudioThread crashed.
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: === Critical error: ===
[2022.01.25-16.39.33:162][ 2]LogWindows: Error:
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: Assertion failed: SoundClassProperties [File:E:/Custom UE4/DH_Source_4.27/Engine/Source/Runtime/Engine/Private/SoundWave.cpp] [Line: 2035]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error:
[2022.01.25-16.39.33:162][ 2]LogWindows: Error:
[2022.01.25-16.39.33:162][ 2]LogWindows: Error:
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ffb61b04f69 KERNELBASE.dll!UnknownFunction
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e4cf3156 Dragonhold.exe!ReportAssert() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1644]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e4cf7578 Dragonhold.exe!FWindowsErrorOutputDevice::Serialize() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e4a3506d Dragonhold.exe!FOutputDevice::LogfImpl() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e49be02b Dragonhold.exe!AssertFailedImplV() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:104]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e49c0230 Dragonhold.exe!FDebug::CheckVerifyFailedImpl() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:461]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e8b936a9 Dragonhold.exe!USoundWave::Parse() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Engine\Private\SoundWave.cpp:2035]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e8b991a0 Dragonhold.exe!USoundNodeWavePlayer::ParseNodes() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Engine\Private\SoundNodeWavePlayer.cpp:173]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e8b94bff Dragonhold.exe!USoundNodeConcatenator::ParseNodes() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Engine\Private\SoundNodeConcatenator.cpp:149]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e7ee0647 Dragonhold.exe!FActiveSound::UpdateWaveInstances() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Engine\Private\ActiveSound.cpp:666]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e8080d73 Dragonhold.exe!FAudioDevice::GetSortedActiveWaveInstances() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Engine\Private\AudioDevice.cpp:3718]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e80a64f2 Dragonhold.exe!FAudioDevice::Update() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Engine\Private\AudioDevice.cpp:4344]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e294e4d2 Dragonhold.exe!TGraphTask<TFunctionGraphTaskImpl<void __cdecl(void),0> >::ExecuteTask() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Public\Async\TaskGraphInterfaces.h:887]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e47d9c66 Dragonhold.exe!FNamedTaskThread::ProcessTasksNamedThread() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:710]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e47da0ae Dragonhold.exe!FNamedTaskThread::ProcessTasksUntilQuit() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Async\TaskGraph.cpp:602]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e80da357 Dragonhold.exe!FAudioThread::Run() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Engine\Private\AudioThread.cpp:210]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e4d1163b Dragonhold.exe!FRunnableThreadWin::Run() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:86]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ff7e4d08f00 Dragonhold.exe!FRunnableThreadWin::GuardedRun() [E:\Custom UE4\DH_Source_4.27\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:35]
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ffb62f47034 KERNEL32.DLL!UnknownFunction
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: [Callstack] 0x00007ffb64022651 ntdll.dll!UnknownFunction
[2022.01.25-16.39.33:162][ 2]LogWindows: Error:
[2022.01.25-16.39.33:162][ 2]LogWindows: Error: Crash in runnable thread AudioThread

A few things I’ve tried to fix it are remove all Push Sound Mix Modifier nodes. Remove the Sound Node Concatenator from my intro music. Any help with figuring this out will be greatly appreciated.

Hello. Did you ever figure this out? I’m currently facing this problem.

Yes, I did. I was able to track the issue down to sound classes not being initialized properly. I had 2 separate Master Sound Classes that my project used, so whenever audio played that used one of the sound classes that wasn’t initialized properly, the engine crashed. To guarantee all Sound Classes are initialized correctly, you need to make sure every single Sound Class you use are hooked up to 1 master Sound Class. Then make sure that master sound class is set as the Default Sound Class in the project settings. In my case, I combined the 2 master sound classes into 1 master sound class, and set the project Default Sound Class to this combined master sound class.