Description

When switching to an audio device with an unsupportedly high sample rate on XBox, XAudio2System->CreateMasteringVoice will crash. Ideally, it would give a warning instead and swap to the null renderer. 

Steps to Reproduce

[Note: repro steps were obtained from a UDN report and have not yet been reporduced on my computer]

  • Run a game on XBox
  • Use a headset as a default audio device with a reasonable sample rate
  • Add another audio device that would become default if the first was unplugged, as a DAC set to a very high sample rate (example given was ~384KHz)
  • Unplug headset

Expected Result:

  • Unreal gives a warning, and swaps to the null device

Actual Result:

  • Unreal crashes
Callstack

[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffcb7b5cd29 KERNELBASE.dll!UnknownFunction []
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc5486dd86 UE4Editor-Core.dll!ReportAssert() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Private\Windows\WindowsPlatformCrashContext.cpp:1541]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc54871208 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Private\Windows\WindowsErrorOutputDevice.cpp:78]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc545ff31d UE4Editor-Core.dll!FOutputDevice::LogfImpl() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Private\Misc\OutputDevice.cpp:61]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc54589855 UE4Editor-Core.dll!AssertFailedImplV() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:100]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc5458bc80 UE4Editor-Core.dll!FDebug::CheckVerifyFailedImpl() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:450]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbe0562e03 UE4Editor-AudioMixerXAudio2.dll!Audio::FMixerPlatformXAudio2::CloseAudioStream() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Windows\AudioMixerXAudio2\Private\AudioMixerPlatformXAudio2.cpp:1065]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc5360e6e4 UE4Editor-AudioMixer.dll!Audio::FMixerDevice::TeardownHardware() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\AudioMixer\Private\AudioMixerDevice.cpp:403]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50adfb96 UE4Editor-Engine.dll!FAudioDevice::Teardown() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDevice.cpp:688]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50aae115 UE4Editor-Engine.dll!FAudioDeviceManager::DecrementDevice() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:555]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50a99ab5 UE4Editor-Engine.dll!FAudioDeviceHandle::~FAudioDeviceHandle() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:1256]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9a30ae UE4Editor-Niagara.dll!FNiagaraSubmixListener::UnregisterFromSubmix() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraDataInterfaceAudio.cpp:88]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9355dd UE4Editor-Niagara.dll!FNiagaraSubmixListener::`vector deleting destructor'() []
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9932bb UE4Editor-Niagara.dll!TSet<TTuple<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> > >,TDefaultMapHashableKeyFuncs<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> >,0>,FDefaultSetAllocator>::Remove() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Containers\Set.h:911]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee957836 UE4Editor-Niagara.dll!TBaseRawMethodDelegateInstance<0,FNiagaraDataInterfaceProxySubmix,void __cdecl(unsigned int)>::ExecuteIfSafe() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:546]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50aa7fe0 UE4Editor-Engine.dll!TBaseMulticastDelegate<void,unsigned int>::Broadcast() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:1013]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50aadfbc UE4Editor-Engine.dll!FAudioDeviceManager::DecrementDevice() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:542]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50a99ab5 UE4Editor-Engine.dll!FAudioDeviceHandle::~FAudioDeviceHandle() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:1256]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9a30ae UE4Editor-Niagara.dll!FNiagaraSubmixListener::UnregisterFromSubmix() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraDataInterfaceAudio.cpp:88]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9355dd UE4Editor-Niagara.dll!FNiagaraSubmixListener::`vector deleting destructor'() []
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9932bb UE4Editor-Niagara.dll!TSet<TTuple<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> > >,TDefaultMapHashableKeyFuncs<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> >,0>,FDefaultSetAllocator>::Remove() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Containers\Set.h:911]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9577f6 UE4Editor-Niagara.dll!TBaseRawMethodDelegateInstance<0,FNiagaraDataInterfaceProxyOscilloscope,void __cdecl(unsigned int)>::ExecuteIfSafe() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:546]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50aa7fe0 UE4Editor-Engine.dll!TBaseMulticastDelegate<void,unsigned int>::Broadcast() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:1013]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50aadfbc UE4Editor-Engine.dll!FAudioDeviceManager::DecrementDevice() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:542]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50a99ab5 UE4Editor-Engine.dll!FAudioDeviceHandle::~FAudioDeviceHandle() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:1256]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9a30ae UE4Editor-Niagara.dll!FNiagaraSubmixListener::UnregisterFromSubmix() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Plugins\FX\Niagara\Source\Niagara\Private\NiagaraDataInterfaceAudio.cpp:88]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9355dd UE4Editor-Niagara.dll!FNiagaraSubmixListener::`vector deleting destructor'() []
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee9932bb UE4Editor-Niagara.dll!TSet<TTuple<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> > >,TDefaultMapHashableKeyFuncs<unsigned int,TUniquePtr<FNiagaraSubmixListener,TDefaultDelete<FNiagaraSubmixListener> >,0>,FDefaultSetAllocator>::Remove() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Containers\Set.h:911]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffbee957836 UE4Editor-Niagara.dll!TBaseRawMethodDelegateInstance<0,FNiagaraDataInterfaceProxySubmix,void __cdecl(unsigned int)>::ExecuteIfSafe() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:546]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50aa7fe0 UE4Editor-Engine.dll!TBaseMulticastDelegate<void,unsigned int>::Broadcast() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Core\Public\Delegates\DelegateSignatureImpl.inl:1013]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50aadfbc UE4Editor-Engine.dll!FAudioDeviceManager::DecrementDevice() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:542]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50a9a8b6 UE4Editor-Engine.dll!FAudioDeviceHandle::operator=() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:1325]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50ad4cdf UE4Editor-Engine.dll!FAudioDeviceHandle::Reset() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\AudioDeviceManager.cpp:1283]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc50ef5115 UE4Editor-Engine.dll!UGameViewportClient::BeginDestroy() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Engine\Private\GameViewportClient.cpp:303]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc53f17552 UE4Editor-CoreUObject.dll!UObject::ConditionalBeginDestroy() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\CoreUObject\Private\UObject\Obj.cpp:990]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc53ef562d UE4Editor-CoreUObject.dll!UnhashUnreachableObjects() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:2025]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc53e80146 UE4Editor-CoreUObject.dll!CollectGarbageInternal() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:1967]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc53e7f36c UE4Editor-CoreUObject.dll!CollectGarbage() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp:2070]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc4f6bc487 UE4Editor-UnrealEd.dll!UEditorEngine::EndPlayMap() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Editor\UnrealEd\Private\PlayLevel.cpp:430]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc4f172c11 UE4Editor-UnrealEd.dll!UEditorEngine::Tick() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1960]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffc4fa64126 UE4Editor-UnrealEd.dll!UUnrealEdEngine::Tick() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:414]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ff7f3cf753b UE4Editor.exe!FEngineLoop::Tick() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4829]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ff7f3d0b49c UE4Editor.exe!GuardedMain() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ff7f3d0b57a UE4Editor.exe!GuardedMainWrapper() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ff7f3d1dc8d UE4Editor.exe!WinMain() [C:\p4workspace\UE4\Release-4.25Plus\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ff7f3d20dba UE4Editor.exe!__scrt_common_main_seh() [d:\a01\_work\3\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffcb9737034 KERNEL32.DLL!UnknownFunction []
[2022.10.27-21.14.52:768][872]LogWindows: Error: [Callstack] 0x00007ffcba3826a1 ntdll.dll!UnknownFunction []

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-169104 in the post.

0
Login to Vote

Won't Fix
ComponentUE - Audio
Affects Versions4.25plus4.27.2
CreatedNov 3, 2022
ResolvedDec 18, 2024
UpdatedDec 18, 2024
View Jira Issue