Description

The editor is crashing when the OSVR plugin is enabled.

Error Message:

Unknown exception - code c06d007e (first/second chance not available)

Source Context:

 465       // Assign the already loaded module into the return value, otherwise the return value gives the impression the module failed load!
  466       LoadedModule = ModuleInfo->Module;
  467       }
  468       else
  469       {
  470       // Initialize the module!
  471       ModuleInfo->Module = MakeShareable(InitializeModuleFunctionPtr());
  472       
  473       if ( ModuleInfo->Module.IsValid() )
  474       {
  475       // Startup the module
  476       ModuleInfo->Module->StartupModule();
  477       
  478       // Module was started successfully!  Fire callbacks.
  479 ***** ModulesChangedEvent.Broadcast(InModuleName, EModuleChangeReason::ModuleLoaded);
  480       
  481       // Set the return parameter
  482       LoadedModule = ModuleInfo->Module;
  483       }
  484       else
  485       {
  486       UE_LOG(LogModuleManager, Warning, TEXT("ModuleManager: Unable to load module '%s' because InitializeModule function failed (returned NULL pointer.)"), *ModuleFileToLoad);
  487       
  488       FPlatformProcess::FreeDllHandle(ModuleInfo->Handle);
  489       ModuleInfo->Handle = NULL;
  490       OutFailureReason = EModuleLoadResult::FailedToInitialize;
  491       }
  492       }
  493       }
  494       else

Logs:
[Link Removed]
[Link Removed]
[Link Removed]

Steps to Reproduce

1. Open the editor
2. Go to Edit->Plugins->Virtual Reality
3. Enable the OSVR Plugin
4. Restart the editor

Result: Editor will crash after closing

Expected: Editor would restart successfully.

Callstack
KERNELBASE!<Unknown>
UE4Editor_OSVR!_delayLoadHelper2()
UE4Editor_OSVR!_tailMerge_osvrClientKit_dll()
UE4Editor_OSVR!OSVREntryPoint::OSVREntryPoint()
UE4Editor_OSVR!FOSVR::StartupModule()
UE4Editor_Core!FModuleManager::LoadModuleWithFailureReason() [modulemanager.cpp:480]
UE4Editor_Projects!FModuleDescriptor::LoadModulesForPhase() [moduledescriptor.cpp:398]
UE4Editor_Projects!FPluginManager::LoadModulesForEnabledPlugins() [pluginmanager.cpp:540]
UE4Editor!FEngineLoop::LoadStartupModules() [launchengineloop.cpp:2155]
UE4Editor!FEngineLoop::PreInit() [launchengineloop.cpp:1609]
UE4Editor!GuardedMain() [launch.cpp:114]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:126]
UE4Editor!WinMain() [launchwindows.cpp:200]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:264]
kernel32!<Unknown>
ntdll!<Unknown>

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Platform - XR
Affects Versions4.12
Target Fix4.12
Fix Commit2980094
Main Commit3023490
Release Commit2980094
CreatedMay 11, 2016
ResolvedMay 17, 2016
UpdatedMay 2, 2018