Description

Enabling Display Device Model in a motion controller with no VR device setup will cause the editor to crash

Steps to Reproduce
  1. Make sure no HMD is connected
  2. Open Editor
  3. Create a new actor blueprint
  4. Add a motion controller component
  5. Enable Display Device Model

Result: The editor will crash
Expected: The model for the motion controller would be shown or an error message would be provided

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

UE4Editor_Engine!USceneComponent::SetHiddenInGame() [scenecomponent.cpp:2913]
UE4Editor_HeadMountedDisplay!UMotionControllerComponent::RefreshDisplayComponent() [motioncontrollercomponent.cpp:418]
UE4Editor_Engine!UActorComponent::ExecuteRegisterEvents() [actorcomponent.cpp:1239]
UE4Editor_Engine!FComponentReregisterContextBase::ReRegister() [componentreregistercontext.h:68]
UE4Editor_Engine!UActorComponent::ConsolidatedPostEditChange() [actorcomponent.cpp:653]
UE4Editor_Engine!USceneComponent::PostEditChangeProperty() [scenecomponent.cpp:442]
UE4Editor_Engine!UPrimitiveComponent::PostEditChangeProperty() [primitivecomponent.cpp:809]
UE4Editor_HeadMountedDisplay!UMotionControllerComponent::PostEditChangeProperty() [motioncontrollercomponent.cpp:245]
UE4Editor_CoreUObject!UObject::PostEditChangeChainProperty() [obj.cpp:436]
UE4Editor_Engine!UActorComponent::PostEditChangeChainProperty() [actorcomponent.cpp:699]
UE4Editor_Engine!UPrimitiveComponent::PostEditChangeChainProperty() [primitivecomponent.cpp:937]
UE4Editor_CoreUObject!UObject::PropagatePostEditChange() [obj.cpp:510]
UE4Editor_CoreUObject!UObject::PostEditChangeChainProperty() [obj.cpp:403]
UE4Editor_Engine!UActorComponent::PostEditChangeChainProperty() [actorcomponent.cpp:699]
UE4Editor_Engine!UPrimitiveComponent::PostEditChangeChainProperty() [primitivecomponent.cpp:937]
UE4Editor_PropertyEditor!FPropertyNode::NotifyPostChange() [propertynode.cpp:2393]
UE4Editor_PropertyEditor!FPropertyValueImpl::ImportText() [propertyhandleimpl.cpp:570]
UE4Editor_PropertyEditor!FPropertyValueImpl::ImportText() [propertyhandleimpl.cpp:358]
UE4Editor_PropertyEditor!FPropertyHandleBool::SetValue() [propertyhandleimpl.cpp:3570]
UE4Editor_PropertyEditor!SPropertyEditorBool::OnCheckStateChanged() [spropertyeditorbool.cpp:79]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SPropertyEditorBool,0,TTypeWrapper<void> __cdecl() [delegateinstancesimpl.h:269]
UE4Editor_PropertyEditor!TBaseSPMethodDelegateInstance<0,SPropertyEditorBool,0,void __cdecl() [delegateinstancesimpl.h:345]
UE4Editor_Slate!SCheckBox::ToggleCheckedState() [scheckbox.cpp:299]
UE4Editor_Slate!SCheckBox::OnMouseButtonUp() [scheckbox.cpp:190]
UE4Editor_Slate!<lambda_1002768c627006711ef2f351a87ec0e7>::operator() [slateapplication.cpp:5435]
UE4Editor_Slate!FEventRouter::Route<FReply,FEventRouter::FToLeafmostPolicy,FPointerEvent,<lambda_1002768c627006711ef2f351a87ec0e7> >() [slateapplication.cpp:266]
UE4Editor_Slate!FSlateApplication::RoutePointerUpEvent() [slateapplication.cpp:5424]
UE4Editor_Slate!FSlateApplication::ProcessMouseButtonUpEvent() [slateapplication.cpp:5922]
UE4Editor_Slate!FSlateApplication::OnMouseUp() [slateapplication.cpp:5902]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessDeferredMessage() [windowsapplication.cpp:1726]
UE4Editor_ApplicationCore!FWindowsApplication::DeferMessage() [windowsapplication.cpp:2172]
UE4Editor_ApplicationCore!FWindowsApplication::ProcessMessage() [windowsapplication.cpp:889]
UE4Editor_ApplicationCore!FWindowsApplication::AppWndProc() [windowsapplication.cpp:726]
user32!UserCallWinProcCheckWow()
user32!DispatchMessageWorker()
UE4Editor_ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages() [windowsplatformapplicationmisc.cpp:129]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3244]
UE4Editor!GuardedMain() [launch.cpp:166]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:253]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Platform - XR
Affects Versions4.19
Target Fix4.19
Fix Commit3854806
Main Commit3990065
Release Commit3854806
CreatedJan 19, 2018
ResolvedJan 24, 2018
UpdatedSep 16, 2019
View Jira Issue