UE 5.1.0 p1: VRtemplate crash on start on Quest - null pointer dereference

While testing UE 5.1.0 preview 1, all my converted 5.0.3 projects crash when opening them on Quest 2.
Also tested a brand new VR template project. Enabled plugins OpenXr and OculusVR. Set to 'native OpenXR with Oculus vendor extensions. When starting on Quest 2, its only three blinking dots and an immediate crash without ever opening VR.
Debug log shows ‘F DEBUG : Cause: null pointer dereference’ and lots of ‘libUnreal.so’ debug info (some referring to Vulkan).

Any suggestions how to fix this OR is it a 5.1.0p1 bug?

4 Likes

the same here

anyone find a solution ? I download the preview 5.1 but each times i play the level, unreal crash !

thx

1 Like

Just filed a bug report. @VictorLerp is the team aware of this issue? Any suggestions how we still can view VR on Quest using 5.1.0 P1?

1 Like

I have tried with directx 11, vulkan and with shader model 5 and shader model 6… Same result, three points and crash.

I don’t have enough knowledge to understand what is going on.

We’re aware and it’s been fixed for P2. Thanks for the reports everyone.

4 Likes

Does this fix also address this crash happening in UE5.1?
Assertion failed: DepthSwapchainDesc.Extent.X == SizeX && DepthSwapchainDesc.Extent.Y == SizeY [File:D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp] [Line: 2190]

This one is not related to the Quest and happens on Desktop on my Valve Index, with forward rendering enabled, DX11/12 and SM5/6 don’t matter either for this one.

1 Like

CaptainFalcon, I’m getting that same crash and I have no idea why.

It seems that the fix actually introduced a (new) issue in P2:

When running with Steam/OpenXR I get a crash stating:

Assertion failed: DepthSwapchainDesc.Extent.X == SizeX && DepthSwapchainDesc.Extent.Y == SizeY [File:D:\build++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp] [Line: 2177]

Are you aware or should I make a bug report?

1 Like

I Have the same issue on Hololens 2 during remoting.

Assertion failed: DepthSwapchainDesc.Extent.X == SizeX && DepthSwapchainDesc.Extent.Y == SizeY [File:D:\build\++UE5\Sync\Engine\Plugins\Runtime\OpenXR\Source\OpenXRHMD\Private\OpenXRHMD.cpp] [Line: 2177]

Copy from UE5.1.0 preview topic (in case people don’t read there):

Updated to 5.1.0P2. Brand new VRtemplate map fails to build for Quest. Error:

UATHelper: Packaging (Android (ASTC)): ld.lld: error: undefined symbol: __aarch64_swp8_acq_rel
UATHelper: Packaging (Android (ASTC)): >>> referenced by Module.Launch.cpp
PackagingResults: Error: undefined symbol: __aarch64_swp8_acq_rel
.. (lots of references to .cc files)
UATHelper: Packaging (Android (ASTC)): >>> referenced 775 more times
UATHelper: Packaging (Android (ASTC)): ld.lld: error: undefined symbol: __aarch64_ldadd4_acq_rel

Same happens to converted 5.0 project

1 Like

It looks like after project is packed it is working OK, only in preview above preblem occurs.
BTW this new 5.1 nanite on Hololens is awesome!

Hi, did you find a fix ? having the same issue here with 5.1 preview

If the error is something about DepthSwapChain, then go to PROJECT SETTINGS > EDITOR > PERFORMANCE and change the following:

Default screen percentage mode for realtime editor viewports: MANUAL
Default screen percentage mode for mode for path traced editor viewports: MANUAL
Default screen percentage mode for non-realtime editor viewports: MANUAL

Hope that helps!

5 Likes

Can confirm this one worked for me with my Vive classic. Although I have another issue where about 2 seconds into running the preview, my entire PC just freezes…

Update: I packaged my project and ran it via the generated .exe, ran perfectly well in VR, so whatever is causing my computer to freeze while trying to run the preview in editor is editor related

1 Like

Can second that this fixed the issue for a Quest 2 connected via Airlink. Thanks for the help @Spcarso

2 Likes

This has been fixed for 5.1 release

2 Likes

When I launch VR preview on 5.1 P2 using SteamVR I get this crash:
Assertion failed: IsInGameThread() [File:D:\build++UE5\Sync\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.cpp] [Line: 1579]
I also tried packaging the came and I get the same error. Everything runs as normal on 5.0.3. There is another post with someone with the same issue and they note a branch of UE that fixes it but I am suprised it is still an issue in 5.1 p2.

I found