4.11.1 (OnlineSubsystemNull) Crash at start after updating

Hello,

My vive game crashes on start after updating. Everything was working fine. I had just added the AdvancedSessions plugin to the project which I first tested on 4.11.0 and I also have Steamworks132 enabled in the project(Should I be on the latest one?). I played the game in editor and packaged, everything worked. I upgraded to 4.11.1.

I looked into the voicemodulewindows file and with beginner coding knowledge I can make out that the VoiceCaptureDevice is not being set at runtime. I’m assuming that’s a mic, I dont see how that would affect me opening the engine. I have a vive connected not turned on.

My project has voice enabled in the .ini. I’m going to turn it off but I definitely want voice in my game so its not going to be a solution. I get this below at project startup. What changed from 4.11 to this update that could cause this crash?

Access violation - code c0000005 (first/second chance not available)

UE4Editor_Voice!CaptureDeviceCallback() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\voice\private\windows\voicemodulewindows.cpp:50]
dsound
dsound
UE4Editor_Voice!FVoiceCaptureDeviceWindows::Init() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\voice\private\windows\voicemodulewindows.cpp:277]
UE4Editor_Voice!FVoiceCaptureDeviceWindows::Create() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\voice\private\windows\voicemodulewindows.cpp:74]
UE4Editor_Voice!FVoiceModule::StartupModule() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\voice\private\voicemodule.cpp:38]
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\modules\modulemanager.cpp:446]
UE4Editor_Core!FModuleManager::LoadModule() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\modules\modulemanager.cpp:299]
UE4Editor_OnlineSubsystemUtils!FModuleManager::LoadModuleChecked<FVoiceModule>() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\public\modules\modulemanager.h:281]
UE4Editor_OnlineSubsystemUtils!FVoiceEngineImpl::Init() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\onlinesubsystemutils\private\voiceengineimpl.cpp:121]
UE4Editor_OnlineSubsystemUtils!FOnlineVoiceImpl::Init() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\onlinesubsystemutils\private\voiceinterfaceimpl.cpp:63]
UE4Editor_OnlineSubsystemNull!FOnlineSubsystemNull::Init() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\onlinesubsystemnull\private\onlinesubsystemnull.cpp:166]
UE4Editor_OnlineSubsystemNull!FOnlineFactoryNull::CreateSubsystem() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\onlinesubsystemnull\private\onlinesubsystemmodulenull.cpp:24]
UE4Editor_OnlineSubsystem!FOnlineSubsystemModule::GetOnlineSubsystem() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\onlinesubsystem\private\onlinesubsystemmodule.cpp:221]
UE4Editor_OnlineSubsystem!FOnlineSubsystemModule::LoadDefaultSubsystem() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\online\onlinesubsystem\private\onlinesubsystemmodule.cpp:91]
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\modules\modulemanager.cpp:446]
UE4Editor_Core!FModuleManager::LoadModule() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\core\private\modules\modulemanager.cpp:299]
UE4Editor!FEngineLoop::AppInit() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\launchengineloop.cpp:3135]
UE4Editor!FEngineLoop::PreInit() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\launchengineloop.cpp:1177]
UE4Editor!GuardedMain() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\launch.cpp:110]
UE4Editor!GuardedMainWrapper() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\buildfarm\buildmachine_++ue4+release-4.11\engine\source\runtime\launch\private\windows\launchwindows.cpp:200]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
kernel32
ntdll

Great! I get that same error. Where do I put the code into?

Most like the same issue: CaptureDeviceCallback ipguid was nullptr

If it is, I included a fix.

Same file as CaptureDeviceCallback() :
\Engine\Source\Runtime\Online\Voice\Private\Windows\VoiceModuleWindows.cpp

Its just below it :slight_smile:

If it works for you, I should go make it a pull request.

it seems like it should work but i still get the same crash. I was trying on the launcher version I’m compiling source right now

This fixed it. Thanks !

I had to deactivate our voice chat in the DefaultEngine.ini

[Voice]
;bEnabled=true

if you want voice enabled and still get that error. Use the link provided by . That’s what fixed it for me without having to disable Voice.

Thanks, but i will wait for the official hotfix. I just wrote it down for the people who don’t want to go into source code.:wink: