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!