Hard crash in fmodstudioL

Hello FMOD Team,

Trying to investigate a hard crash in FMOD in Unreal Engine.

Using the debug symbols couldn’t really get any additional information beyond the callstack, since the dump file is a minidump.

FMOD version - 2.03.14 for UE 5.7

Unreal version - 5.8.4

fmodstudioL.dll!FMOD::EventInstance::changeStateStopped(bool restarting) Line 573	C++
fmodstudioL.dll!FMOD::EventInstance::stop(FMOD::EventInstance::StopMode stopMode, bool restarting) Line 369	C++
fmodstudioL.dll!FMOD::BusInstance::addPlayingEvent(FMOD::EventInstance * instance, bool recursive) Line 1080	C++
fmodstudioL.dll!FMOD::BusInstance::addPlayingEvent(FMOD::EventInstance * instance, bool recursive) Line 1092	C++
fmodstudioL.dll!FMOD::BusInstance::addPlayingEvent(FMOD::EventInstance * instance, bool recursive) Line 1092	C++
fmodstudioL.dll!FMOD::BusInstance::addPlayingEvent(FMOD::EventInstance * instance, bool recursive) Line 1092	C++
fmodstudioL.dll!FMOD::EventInstance::start() Line 235	C++
fmodstudioL.dll!FMOD::AsyncCommand_eventInstance_start::executeMain(FMOD::RuntimeAPI::Manager * manager) Line 2306	C++
fmodstudioL.dll!FMOD::AsyncManager::executeDirectCommand(FMOD::AsyncCommand * command) Line 316	C++
fmodstudioL.dll!FMOD::AsyncManager::asyncProcessCommands() Line 677	C++
fmodstudioL.dll!FMOD::AsyncManager::asyncProcessAndUpdate() Line 779	C++
[Inline Frame] fmodstudioL.dll!FMOD::AsyncManager::asyncThreadLoop() Line 813	C++
fmodstudioL.dll!FMOD::AsyncManager::asyncThreadFunc(void * data) Line 828	C++
fmodstudioL.dll!FMOD:
:callback(void * data) Line 149	C++
fmodstudioL.dll!FMOD_OS_Thread_Callback(void * param) Line 666	C++
fmodstudioL.dll!thread_start<unsigned int (__cdecl*)(void *),1>(void * const parameter) Line 97	C++


Would appreciate any help or pointers.

Thank you in advance.

Thanks for reporting this- there’s a write to deallocated memory on that line which could crash if the memory is reallocated immediately (and is undefined behavior otherwise).
The likelihood of this occuring would increase under intensive workloads, or possibly with a custom allocator, but regardless it shouldn’t be occurring at all, and I’ve passed it into the Dev team to fix up.

This ought to be affecting things as far back as FMOD version 2.01.18, but I’ve had two reports of the same problem in the past few days, so there may have been some other recent change that’s exacerbating the issue.
To help me see if there is some sort of temporary workaround, can you please tell me:

  • How often are you encountering this crash?
  • Have you recently migrated from an older version of FMOD for Unreal, and if so what was it?
  • Are you using a custom memory allocator with Memory_Initialize?

Hi Jeff!

  • How often are you encountering this crash?
    Not 100% repro in same section/system of the game. Had more occurrences across a few days.
  • Have you recently migrated from an older version of FMOD for Unreal, and if so what was it?
    We went from UE5.4.4 to UE5.8.4 and FMOD 2.02.23 to 2.03.14 at the same time. And we also moved to 2.03.15 recently after this hard crash, so yet to get this same error again.
  • Are you using a custom memory allocator with Memory_Initialize?
    We aren’t doing any custom logic with Memory_Initialize for audio/FMOD.

Thank you

Thanks for the extra info- at this point I suspect something to do with UE5.8 since that’s the only common point between your report and the other one.
I see a change in their 5.8.3 hotfix which mentions changes around memory allocation wrt Animation, but otherwise I think I’m at a dead end looking for workarounds unfortunately.

If you manage to get another crash, please save the crash dump with full memory, and upload it to your FMOD Profile so I can take a closer look.