Description

Running a VR template project with -nohmd causes the packaged game to crash on launch. Running with just -vr doesn't result in a crash.

Tested in //UE4/Release-4.25 @ CL 14469661 and did not encounter a crash with -nohmd, so marking as a Regression

Steps to Reproduce
  1. Create a new VR Template project
  2. Package the project for Windows
  3. Open the Command Prompt window
  4. Enter "location of your VR package .exe" -nohmd -vr into the command prompt

RESULT:

The package crashes on launch

EXPECTED:

The package would open without crashing

Callstack
UE4Game!FOculusHMDModule::GetAudioOutputDevice()
UE4Game!Audio::FMixerDevice::InitializeHardware()
UE4Game!FAudioDevice::Init()
UE4Game!FAudioDeviceManager::FAudioDeviceContainer::FAudioDeviceContainer()
UE4Game!FAudioDeviceManager::CreateNewDevice()
UE4Game!FAudioDeviceManager::RequestAudioDevice()
UE4Game!FAudioDeviceManager::CreateMainAudioDevice()
UE4Game!UEngine::InitializeAudioDeviceManager()
UE4Game!UEngine::Init()
UE4Game!UGameEngine::Init()
UE4Game!FEngineLoop::Init()
UE4Game!GuardedMain()
UE4Game!GuardedMainWrapper()
UE4Game!WinMain()
UE4Game!__scrt_common_main_seh()

Have Comments or More Details?

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

8
Login to Vote

Fixed
ComponentUE - Platform - XR
Affects Versions4.26.1
Target Fix4.27
Fix Commit16458986
Release Commit16459396
CreatedMar 18, 2021
ResolvedMay 26, 2021
UpdatedDec 1, 2022
Pull Requests
7949 - mrbindraw