# Hololens 2 Crashing on Startup - OpenXR Issue in Unreal Engine 5.1

**URL:** <https://forums.unrealengine.com/t/hololens-2-crashing-on-startup-openxr-issue-in-unreal-engine-5-1/2049717>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [October 2, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/hololens-2-crashing-on-startup-openxr-issue-in-unreal-engine-5-1/2049717 "2024-10-02T13:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharlotteLeo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CharlotteLeo](https://forums.unrealengine.com/u/CharlotteLeo)\
**Post date:** [October 2, 2024, 1:25pm UTC](https://forums.unrealengine.com/t/hololens-2-crashing-on-startup-openxr-issue-in-unreal-engine-5-1/2049717/1 "2024-10-02T13:25:07Z")

</div>

Hi everyone,

I’m working on a project for Hololens 2 in Unreal Engine 5.1, but I’m encountering a persistent issue. Every time I package and run the project, it crashes silently on startup. I checked the logs and found the following error:

```auto
Assertion failed: PipelineState.bXrFrameStateUpdated
File: OpenXRHMD.cpp

```

I’ve tried digging through the crash dumps, but can’t seem to find a solid solution. It seems to be related to the XR session not being initialized properly. I came across a suggestion that adding a slight delay to `StartARSession()` in the `BeginPlay()` function might help. Here’s the code I’m planning to try:

```cpp
FTimerHandle DelayTimerHandle;
GetWorld()->GetTimerManager().SetTimer(DelayTimerHandle, FTimerDelegate::CreateLambda(
    [this]()->void
    {
        UARBlueprintLibrary::StartARSession(ARSessionConfig);
    }
), 0.5f, false);

```

Has anyone else encountered this issue, or found other reliable fixes for Hololens crashes related to OpenXR? Any help or suggestions would be greatly appreciated!

Thanks!

---

<div class="post-metadata">

**Author:** ![Jimbohalo10](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jimbohalo10/32/961440_2.png) [@Jimbohalo10](https://forums.unrealengine.com/u/Jimbohalo10)\
**Post date:** [October 2, 2024, 1:41pm UTC](https://forums.unrealengine.com/t/hololens-2-crashing-on-startup-openxr-issue-in-unreal-engine-5-1/2049717/2 "2024-10-02T13:41:44Z")

</div>

hi @CharlotteLeo ,  
Looks like the only support you will get is here  
[Will HoloLens still be supported in UE5.3? - Development / Platform & Builds - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/will-hololens-still-be-supported-in-ue5-3/1180763/7)
