Unreal engine 5.3.2 Meta quest 3 apk build instant crash

Hello everyone,

I’m trying to build a VR game for the Meta quest 3. After following a bunch of tutorials I found this guide: https://forums.unrealengine.com/t/community-tutorial-unreal-engine-5-3-2-for-meta-quest-vr/1376911/65 This made me able to successfully build an apk. However when I start this app on the quest 3 it opens up, shows the unreal engine logo for a second. Together with a small loading animation (3 dots). Then it just closes down. I found the following error in the logs: > 10:23:44.070 21576 21668 D UE : Assertion failed: Texture->GetFormat() == GRHIVariableRateShadingImageFormat [File:D:/build/++UE5/Sync/Engine/Source/Runtime/VulkanRHI/Private/VulkanRenderTarget.cpp] [Line: 1439]

10:23:44.070 21576 21668 D UE :
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]Assertion failed: Texture->GetFormat() == GRHIVariableRateShadingImageFormat [File:D:/build/++UE5/Sync/Engine/Source/Runtime/VulkanRHI/Private/VulkanRenderTarget.cpp] [Line: 1439]
10:23:44.071 21576 21668 D UE :
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: === Critical error: ===
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error:
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: Assertion failed: Texture->GetFormat() == GRHIVariableRateShadingImageFormat [File:D:/build/++UE5/Sync/Engine/Source/Runtime/VulkanRHI/Private/VulkanRenderTarget.cpp] [Line: 1439]
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error:
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: [Callstack] 0x000000747885BFE4 libUnreal.so(0x000000000CE1DFE4)!FVulkanRenderTargetLayout::FVulkanRenderTargetLayout(FVulkanDevice&, FRHIRenderPassInfo const&, VkImageLayout)
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: [Callstack] 0x00000074788597F8 libUnreal.so(0x000000000CE1B7F8)!FVulkanCommandListContext::RHIBeginRenderPass(FRHIRenderPassInfo const&, char16_t const*)
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: [Callstack] 0x000000747A441E8C libUnreal.so(0x000000000EA03E8C)!FRDGBuilder::ExecutePassPrologue(FRHIComputeCommandList&, FRDGPass*)
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: [Callstack] 0x000000747A43DE9C libUnreal.so(0x000000000E9FFE9C)!FRDGBuilder::ExecutePass(FRDGPass*, FRHIComputeCommandList&)
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: [Callstack] 0x000000747A43A214 libUnreal.so(0x000000000E9FC214)!FRDGBuilder::Execute()
10:23:44.071 21576 21668 D UE : [2024.04.24-08.23.44:071][ 0]LogAndroid: Error: [Callstack] 0x000000747BC64D24 libUnreal.so(0x0000000010226D24)Unknown
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x000000747BC67DF8 libUnreal.so(0x0000000010229DF8)Unknown
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x000000747890EDB4 libUnreal.so(0x000000000CED0DB4)!FNamedTaskThread::ProcessTasksNamedThread(int, bool)
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x000000747890D070 libUnreal.so(0x000000000CECF070)!FNamedTaskThread::ProcessTasksUntilQuit(int)
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x000000747890C130 libUnreal.so(0x000000000CECE130)!FTaskGraphCompatibilityImplementation::ProcessThreadUntilRequestReturn(ENamedThreads::Type)
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x000000747A4E334C libUnreal.so(0x000000000EAA534C)!RenderingThreadMain(FEvent*)
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x000000747A50FEEC libUnreal.so(0x000000000EAD1EEC)!FRenderingThread::Run()
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x0000007478AAF1BC libUnreal.so(0x000000000D0711BC)!FRunnableThreadPThread::Run()
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x0000007478908B0C libUnreal.so(0x000000000CECAB0C)!FRunnableThreadPThread::_ThreadProc(void*)
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x000000759358BED4 libc.so(0x00000000000DFED4)Unknown
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error: [Callstack] 0x0000007593538460 libc.so(0x000000000008C460)Unknown
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error:
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error:
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error:
10:23:44.072 21576 21668 D UE : [2024.04.24-08.23.44:072][ 0]LogAndroid: Error:
Full log file here:
odh_logs_2024-04-24 08.28.23.882.txt (813.5 KB)

For android settings I’m currently using:
Platforms - Android
Minimum SDK version: 32
Target SDK Version: 32

Android SDK
Location of android SDK: C:/Users/User/AppData/Local/Android/Sdk
Location of android NDK: C:/Users/User/AppData/Local/Android/Sdk/ndk/25.1.8937393
Location of JAVA: C:/Program Files/jdk-17.0.10
SDK API level: android-32
NDK API Level: android-26

I have tried a lot of different sdk and ndk versions, but none seem to work.
Hopefully someone is able to help, because I ran out of idea’s.

Kind regards,
Casper

1 Like

Update: I finally got it to work!! I ended up re-installing all the android and java files following this tutorial: https://youtu.be/vvrIWj0_7jg

After that I made a new project following these instructions: https://developer.oculus.com/documentation/unreal/unreal-ide-guide-android/

Possible causes of the problem that I can think of:
-in my old project it only created an .apk file, in the new project it also created an .obb with it.
-I used an underscore (_) in the project names, I recall that being a problem a year ago. Not sure if it ever got fixed
-uninstalled all java versions and only installed 17.0.6 instead of downloading the zip file

I ended up with these sdk and ndk settings:
Platforms - Android
Minimum SDK version: 29
Target SDK Version: 32

Android SDK
Location of android SDK: C:/Users/User/AppData/Local/Android/Sdk
Location of android NDK: C:/Users/User/AppData/Local/Android/Sdk/ndk/25.1.8937393
Location of JAVA: C:/Program Files/jdk
SDK API level: android-32
NDK API Level: android-29

hopefully this will help someone with the same problem

also bonus tip: if you get a black VR preview, you have to disable the openxr plugin in unreal