Memory allocation crash related to audio after updating to UE5.5.4

Hey,

We are in the process of updating our project from UE5.3.2 to UE5.5.4 and from initial playtesting we are seeing reports of a memory allocation crash that seems to be related to audio. The stack is not always exactly the same (I have attached another example) but we do always seem to end up in `FAudioDevice::SendCommandToActiveSounds` and we crash from there. I believe the crash always happens on the main thread (from what I have seen) when it is preparing to run something to the audio thread.

We have had reports of this crash coming in from QA or playtesters, but have not been able to identify reproduction steps and I am unfortunately not able to reproduce it myself.

It looks like maybe a memory corruption issue, but without being able to reproduce it I am having trouble tracking down the cause. I did try running with “-stompmalloc” but again was unable to make the crash happen.

Are there any known issues in this area, or do you have any advice on tracking down the cause?

Thanks!

Andy

We haven’t seen any crashes like that internally. Do you know what type of memory crash it is? If it’s an Out-Of-Memory crash, then I would use UnrealInsights to see if you can find the memory leak. If it’s a memory corruption crash you could also try running ASAN

https://dev.epicgames.com/documentation/en\-us/unreal\-engine/using\-clang\-sanitizers\-in\-unreal\-engine\-projects

Also try enabling `checkSlow()` by running a Debug/DebugGame build or enabling checkSlow via macro.

It looked like memory corruption to me, rather than out of memory.

I thought about trying ASAN, but we did not have repro steps so I put this aside in the hope of gathering more information. In that time it seems to have completely stopped happening, though we did nothing to directly address it.

If we start seeing reports of this again I will try ASAN, so thank you for the advice.

Andy

Thanks Andy,

It could’ve been corruption from another system. Fingers crossed it’s gone for good.