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

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:

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:

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!

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)