We have been getting a crash in FDynamicsProcessor::ProcessAudio when playing audio through a PS5 controller and unplugging the controller, or plugging headphones into the controller. The line that is failing is:
check(GetKeyNumChannels() <= GetNumChannels());
I have fixed it by adding the following to the top of that function:
int32 NumChannels = GetNumChannels();
if (GetKeyNumChannels() > NumChannels)
{
SetKeyNumChannels(NumChannels);
}
I found an old report of the same issue on this forum from 10 months ago which suggests it was fixed with a commit in October 2024. We are on version 5.7.1 so do have that revision but were still seeing the issue.
The fix we have made seems to work fine, so I really just wanted to report this, and if there is a better way to address it then please let me know.
Thanks,
Adrien
[Attachment Removed]