The callstack is not XR-specific, it's just the engine trying to secure the audio device on startup, windows failing to return one, and the app not being able to continue safely. The crash does not happen in VRTemplate with the same steps, but does happen in this template. I thought maybe it was the active audio device in windows specifying the HMD, but that not being compatible with "-nohmd", but changing the device to "speakers/headphones" did not alleviate the crash. I also thought that specifying "-noaudio" as well might resolve the issue, but it does not. Though I'm thinking I might be correct in my assumptions that it's the audio device, but not the output but the input. I only have HMD devices available for input, but I'm wondering if you plug in and select another microphone device the crash goes away?


It might just be that "-nohmd" is incompatible with having the HMD selected as the microphone device in certain situations.


This seems perhaps Oculus plugin specific? 

Steps to Reproduce
  1. Open attached project [Link Removed]
  2. Package for Win64
  3. Open packaged .exe with "-nohmd" command line
  4. Observe crash
[2021.03.24-07.08.29:198][ 0]LogAudio: Display: Initializing Audio Device Manager...
[2021.03.24-07.08.29:199][ 0]LogAudio: Display: Audio Device Manager Initialized
[2021.03.24-07.08.29:199][ 0]LogAudio: Display: Creating Audio Device: Id: 1, Scope: Shared, Realtime: True
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Audio Mixer Platform Settings:
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Sample Rate: 48000
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Callback Buffer Frame Size Requested: 1024
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Callback Buffer Frame Size To Use: 1024
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Number of buffers to queue: 2
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Max Channels (voices): 32
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Number of Async Source Workers: 0
[2021.03.24-07.08.29:199][ 0]LogAudio: Display: AudioDevice MaxSources: 32
[2021.03.24-07.08.29:199][ 0]LogAudio: Display: Using built-in audio occlusion.
[2021.03.24-07.08.29:199][ 0]LogAudioMixer: Display: Initializing audio mixer.
[2021.03.24-07.08.29:230][ 0]LogAudioDebug: Display: Lib vorbis DLL was dynamically loaded.
[2021.03.24-07.08.32:569][ 0]LogWindows: Could not start crash report client using ../../../Engine/Binaries/Win64/CrashReportClient-Win64-Debug.exe
[2021.03.24-07.08.32:569][ 0]LogMemory: Platform Memory Stats for WindowsNoEditor
[2021.03.24-07.08.32:569][ 0]LogMemory: Process Physical Memory: 302.14 MB used, 310.26 MB peak
[2021.03.24-07.08.32:569][ 0]LogMemory: Process Virtual Memory: 344.88 MB used, 353.16 MB peak
[2021.03.24-07.08.32:569][ 0]LogMemory: Physical Memory: 8944.39 MB used, 7218.89 MB free, 16163.27 MB total
[2021.03.24-07.08.32:569][ 0]LogMemory: Virtual Memory: 134203480.00 MB used, 14247.45 MB free, 134217728.00 MB total
[2021.03.24-07.08.32:569][ 0]Message dialog closed, result: Ok, title: The UE4-GAMEPROJECT Game has crashed and will close, text: Fatal error![2021.03.24-07.08.32:569][ 0]LogWindows: Error: === Critical error: ===
[2021.03.24-07.08.32:569][ 0]LogWindows: Error: 
[2021.03.24-07.08.32:569][ 0]LogWindows: Error: Fatal error!
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: 
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION 0x0000000000000000
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: 
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x0000000000000000 UnknownFunction []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e01ec891 GAMEPROJECT.exe!FOculusHMDModule::GetAudioOutputDevice() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e33a6aae GAMEPROJECT.exe!Audio::FMixerDevice::InitializeHardware() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e38509f4 GAMEPROJECT.exe!FAudioDevice::Init() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e387c7f9 GAMEPROJECT.exe!FAudioDeviceManager::FAudioDeviceContainer::FAudioDeviceContainer() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e388c36b GAMEPROJECT.exe!FAudioDeviceManager::CreateNewDevice() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e38a65c4 GAMEPROJECT.exe!FAudioDeviceManager::RequestAudioDevice() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e388c172 GAMEPROJECT.exe!FAudioDeviceManager::CreateMainAudioDevice() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e44ab477 GAMEPROJECT.exe!UEngine::InitializeAudioDeviceManager() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e44a609d GAMEPROJECT.exe!UEngine::Init() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e3ba2199 GAMEPROJECT.exe!UGameEngine::Init() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6deeb3d56 GAMEPROJECT.exe!FEngineLoop::Init() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6deeceef9 GAMEPROJECT.exe!GuardedMain() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6deecf10a GAMEPROJECT.exe!GuardedMainWrapper() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6deee2240 GAMEPROJECT.exe!WinMain() []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff6e55d737e GAMEPROJECT.exe!__scrt_common_main_seh() [d:\agent\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff824557bd4 KERNEL32.dll!UnknownFunction []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: [Callstack] 0x00007ff8248cce71 ntdll.dll!UnknownFunction []
[2021.03.24-07.08.32:570][ 0]LogWindows: Error: 
[2021.03.24-07.08.32:582][ 0]LogExit: Executing StaticShutdownAfterError
[2021.03.24-07.08.32:593][ 0]LogWindows: FPlatformMisc::RequestExit(1)
[2021.03.24-07.08.32:593][ 0]LogCore: Engine exit requested (reason: Win RequestExit)
[2021.03.24-07.08.32:601][ 0]Log file closed, 03/24/21 12:38:32

Have Comments or More Details?

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

Login to Vote

ComponentUE - Platform - XR
Affects Versions4.26.1
Target Fix4.27
Fix Commit16458986
CreatedMar 31, 2021
ResolvedMay 26, 2021
UpdatedJun 2, 2021
Pull Requests
7949 - mrbindraw