# OpenXR with MSFT remoting, crash in UE5.0.3

**URL:** <https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163>\
**Category:** XR Development\
**Tags:** HoloLens-2, unreal-engine, UE5-0\
**Created:** [July 20, 2022, 8:51am UTC](https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163 "2022-07-20T08:51:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shukenmg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shukenmg](https://forums.unrealengine.com/u/shukenmg)\
**Post date:** [July 20, 2022, 8:51am UTC](https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163/1 "2022-07-20T08:51:38Z")

</div>

```auto
Assertion failed: PipelineState.bXrFrameStateUpdated [File:D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp] [Line: 1582]

UnrealEditor_OpenXRHMD!FOpenXRHMD::GetDisplayTime() [D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp:1582]
UnrealEditor_OpenXRAR!FOpenXRARSystem::OnStartARGameFrame() [D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRAR\Private\OpenXRAR.cpp:971]
UnrealEditor_OpenXRHMD!FOpenXRHMD::OnStartGameFrame() [D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp:2202]
UnrealEditor_Engine!UWorld::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Engine\Private\LevelTick.cpp:1345]
UnrealEditor_UnrealEd!UEditorEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1777]
UnrealEditor_UnrealEd!UUnrealEdEngine::Tick() [D:\build\++UE5\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:474]
UnrealEditor!FEngineLoop::Tick() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:5215]
UnrealEditor!GuardedMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:183]
UnrealEditor!GuardedMainWrapper() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:147]
UnrealEditor!LaunchWindowsStartup() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:283]
UnrealEditor!WinMain() [D:\build\++UE5\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:330]
UnrealEditor!__scrt_common_main_seh() [d:\a01\_work\6\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

```

> <https://github.com/microsoft/Microsoft-OpenXR-Unreal/issues/75>
>
> \`\`\`
> Assertion failed: PipelineState.bXrFrameStateUpdated \[File:D:\\build\\++UE5\\S…ync\\Engine\\Plugins\\Runtime\\OpenXR\\Source\\OpenXRHMD\\Private\\OpenXRHMD.cpp\] \[Line: 1582\]
> 
> UnrealEditor\_OpenXRHMD!FOpenXRHMD::GetDisplayTime() \[D:\\build\\++UE5\\Sync\\Engine\\Plugins\\Runtime\\OpenXR\\Source\\OpenXRHMD\\Private\\OpenXRHMD.cpp:1582\]
> UnrealEditor\_OpenXRAR!FOpenXRARSystem::OnStartARGameFrame() \[D:\\build\\++UE5\\Sync\\Engine\\Plugins\\Runtime\\OpenXR\\Source\\OpenXRAR\\Private\\OpenXRAR.cpp:971\]
> UnrealEditor\_OpenXRHMD!FOpenXRHMD::OnStartGameFrame() \[D:\\build\\++UE5\\Sync\\Engine\\Plugins\\Runtime\\OpenXR\\Source\\OpenXRHMD\\Private\\OpenXRHMD.cpp:2202\]
> UnrealEditor\_Engine!UWorld::Tick() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Runtime\\Engine\\Private\\LevelTick.cpp:1345\]
> UnrealEditor\_UnrealEd!UEditorEngine::Tick() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Editor\\UnrealEd\\Private\\EditorEngine.cpp:1777\]
> UnrealEditor\_UnrealEd!UUnrealEdEngine::Tick() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Editor\\UnrealEd\\Private\\UnrealEdEngine.cpp:474\]
> UnrealEditor!FEngineLoop::Tick() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Runtime\\Launch\\Private\\LaunchEngineLoop.cpp:5215\]
> UnrealEditor!GuardedMain() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Runtime\\Launch\\Private\\Launch.cpp:183\]
> UnrealEditor!GuardedMainWrapper() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Runtime\\Launch\\Private\\Windows\\LaunchWindows.cpp:147\]
> UnrealEditor!LaunchWindowsStartup() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Runtime\\Launch\\Private\\Windows\\LaunchWindows.cpp:283\]
> UnrealEditor!WinMain() \[D:\\build\\++UE5\\Sync\\Engine\\Source\\Runtime\\Launch\\Private\\Windows\\LaunchWindows.cpp:330\]
> UnrealEditor!\_\_scrt\_common\_main\_seh() \[d:\\a01\\\_work\\6\\s\\src\\vctools\\crt\\vcstartup\\src\\startup\\exe\_common.inl:288\]
> kernel32
> ntdll
> \`\`\`
> 
> If I disable remoting here:
> !\[image\](https://user-images.githubusercontent.com/18000205/179784666-48db5caa-7586-4e39-828d-89fbe678be09.png)
> 
> It won't crash in PIE but when using the remoting command line parameter (In standalone) it still crashes with the above error.

It worked fine in 5.0.2 but after updating to 5.0.3 remoting does not work anymore.  
Any ideas on how to fix this? Thanks!

---

<div class="post-metadata">

**Author:** ![shukenmg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shukenmg](https://forums.unrealengine.com/u/shukenmg)\
**Post date:** [July 20, 2022, 9:07am UTC](https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163/2 "2022-07-20T09:07:16Z")

</div>

Alright, I found a workaround/solution, I was running `StartARSession` in `BeginPlay` and that caused the crash so I added a 100ms delay and the crash went away.

---

<div class="post-metadata">

**Author:** ![megaxiphias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@megaxiphias](https://forums.unrealengine.com/u/megaxiphias)\
**Post date:** [September 3, 2022, 10:27am UTC](https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163/3 "2022-09-03T10:27:19Z")

</div>

I have the same problem you are describing, I tried adding the delay but sadly it didn’t work for me 😛  
Any other idea of how to get around this?

---

<div class="post-metadata">

**Author:** ![shukenmg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shukenmg](https://forums.unrealengine.com/u/shukenmg)\
**Post date:** [September 5, 2022, 2:41am UTC](https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163/4 "2022-09-05T02:41:54Z")

</div>

yeah a delay didn’t work anymore, you need to make sure that start ar session does not run if you are not remoting to the Hololens.

If it runs when not remoting it will crash the editor.

---

<div class="post-metadata">

**Author:** ![megaxiphias](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@megaxiphias](https://forums.unrealengine.com/u/megaxiphias)\
**Post date:** [September 6, 2022, 5:20pm UTC](https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163/5 "2022-09-06T17:20:53Z")

</div>

Yeah sadly, I guess we have to wait for a fix.  
I have gone back to developing in 4.27 in the meantime, there it works 🙂

---

<div class="post-metadata">

**Author:** ![jacksonf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jacksonf](https://forums.unrealengine.com/u/jacksonf)\
**Post date:** [November 9, 2022, 8:23pm UTC](https://forums.unrealengine.com/t/openxr-with-msft-remoting-crash-in-ue5-0-3/609163/6 "2022-11-09T20:23:59Z")

</div>

I am still able to apply a short delay to workaround this.

Can you share your call stack for the crash you’re seeing so we can check if it’s something different?

If using a binary version of Unreal, you can download the “Editor symbols for debugging” in the UE 5 Installation Options in the Epic Games Launcher’s Library tab to get a meaningful stack.
