Forums - [Bug report] Quest 2 Unity Vulkan app crashes on startup

3 posts / 0 new
Last post
[Bug report] Quest 2 Unity Vulkan app crashes on startup
encarls1
Join Date: 17 May 22
Posts: 2
Posted: Thu, 2022-06-02 15:03

Attempting to launch a Unity app built using the vulkan renderer on the Quest 2 through the Snapdragon Profiler causes the app to immediately crash. This was tested using Unity 2021.3.4f1 on a barebones project containing only the Oculus and OpenXR plugins. App was built with the debugging flag set and was set to require external storage and internet access.

The app: https://drive.google.com/file/d/1_5LEXEd-ak7yYUAKJiVcZPG4LcargwI_/view?u...

Crash log:

2022/06/02 21:29:16.205 14234 14304 Error CRASH *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022/06/02 21:29:16.205 14234 14304 Error CRASH Version '2021.3.4f1 (cb45f9cae8b7)', Build type 'Development', Scripting Backend 'mono', CPU 'armeabi-v7a'
2022/06/02 21:29:16.205 14234 14304 Error CRASH Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/26242800497100000:user/release-keys'
2022/06/02 21:29:16.205 14234 14304 Error CRASH Revision: '0'
2022/06/02 21:29:16.205 14234 14304 Error CRASH ABI: 'arm'
2022/06/02 21:29:16.205 14234 14304 Error CRASH Timestamp: 2022-06-02 21:29:16+0000
2022/06/02 21:29:16.205 14234 14304 Error CRASH pid: 14234, tid: 14304, name: Thread-3  >>> com.Debug.SnapdragonProfilerBugReport <<<
2022/06/02 21:29:16.205 14234 14304 Error CRASH uid: 10131
2022/06/02 21:29:16.205 14234 14304 Error CRASH signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x20
2022/06/02 21:29:16.205 14234 14304 Error CRASH Cause: null pointer dereference
2022/06/02 21:29:16.205 14234 14304 Error CRASH     r0  d4547000  r1  00000000  r2  00000000  r3  00000000
2022/06/02 21:29:16.205 14234 14304 Error CRASH     r4  00000000  r5  00000000  r6  00000000  r7  abb7ab50
2022/06/02 21:29:16.205 14234 14304 Error CRASH     r8  e52eb260  r9  00000000  r10 00000000  r11 b60fc880
2022/06/02 21:29:16.205 14234 14304 Error CRASH     ip  e52e720c  sp  abb7aab0  lr  e527761f  pc  b0f30872
2022/06/02 21:29:16.205 14234 14304 Error CRASH
2022/06/02 21:29:16.205 14234 14304 Error CRASH backtrace:
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #00 pc 002a7872  /data/app/com.qualcomm.snapdragonprofiler.profilerlayer.armeabi_v7a-lFzoLBrc1igdo-MMReo64Q==/lib/arm/libVkLayer_PROFILER_Snapshot.so (BuildId: 5c92cb9c3d8d4d00aed7ea644c56d6918816be4d)
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #01 pc 002679a7  /system/priv-app/VrDriver/VrDriver.apk (OVR::ovrSwapChain::ImportTextureResourcesFoveationVulkan(ovrTextureSwapChainCreateInfo const&, VkFormat, VkDevice_T*, VkPhysicalDevice_T*, ovrTextureSwapChainExportInfo const&, ovrTextureSwapChainVulkanResources&)+782) (BuildId: baaa621d90fcd5c369a52406706546973e29d978)
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #02 pc 002322d3  /system/priv-app/VrDriver/VrDriver.apk (BuildId: baaa621d90fcd5c369a52406706546973e29d978)
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #03 pc 00180415  /system/priv-app/VrDriver/VrDriver.apk (BuildId: baaa621d90fcd5c369a52406706546973e29d978)
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #04 pc 0001e3f3  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libopenxr_loader.so (xrCreateSwapchain+46) (BuildId: 71cd571b5911162a96dfd52e43b53e348d59aaf8)
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #05 pc 0014d4a5  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOVRPlugin.so (BuildId: 56cd98c5994b370f3bcaa8a8eb407b4e82225a44)
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #06 pc 0014cfe1  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOVRPlugin.so (BuildId: 56cd98c5994b370f3bcaa8a8eb407b4e82225a44)
2022/06/02 21:29:16.205 14234 14304 Error CRASH       #07 pc 0014fb79  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOVRPlugin.so (BuildId: 56cd98c5994b370f3bcaa8a8eb407b4e82225a44)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #08 pc 00103431  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOVRPlugin.so (ovrp_SetupLayer+44) (BuildId: 56cd98c5994b370f3bcaa8a8eb407b4e82225a44)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #09 pc 0000ba85  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOculusXRPlugin.so (OculusDisplayProvider::CreateLayer(void*, UnityXRFrameSetupHints const*)+440) (BuildId: c744d82eb7fa3aa41151ec2844b566aedc5201e0)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #10 pc 0000d0cb  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOculusXRPlugin.so (OculusDisplayProvider::CreateEyeTextureStages(XRTextureCreationContext&)+122) (BuildId: c744d82eb7fa3aa41151ec2844b566aedc5201e0)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #11 pc 0000cf0b  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOculusXRPlugin.so (OculusDisplayProvider::CreateEyeTextures(UnityXRFrameSetupHints const*)+78) (BuildId: c744d82eb7fa3aa41151ec2844b566aedc5201e0)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #12 pc 0000dd09  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libOculusXRPlugin.so (OculusDisplayProvider::GfxThread_PopulateNextFrameDesc(UnityXRFrameSetupHints const*, UnityXRNextFrameDesc*)+808) (BuildId: c744d82eb7fa3aa41151ec2844b566aedc5201e0)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #13 pc 00db5009  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (UnityXRDisplayGraphicsThreadProvider_8::Adapt_PopulateNextFrameDesc(void*, void*, UnityXRFrameSetupHints const*, UnityXRNextFrameDesc*)+176) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #14 pc 00da8521  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (XRDisplaySubsystem::GfxThread::FrameBoundary()+416) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #15 pc 01050ab4  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (GfxDeviceVK::InsertCustomMarkerCallbackAndData(void (*)(int, void*), int, void*, unsigned int)+220) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #16 pc 009f1e13  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (GfxDeviceVK::InsertXRGfxCustomCallback(void (*)(int, void*), int, void*)+20) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #17 pc 011d1e0f  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (GfxDeviceWorker::RunCommand(ThreadedStreamBuffer&)+21966) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #18 pc 011d31ab  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (GfxDeviceWorker::RunExt(ThreadedStreamBuffer&)+26) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #19 pc 011d3173  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (GfxDeviceWorker::Run()+102) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #20 pc 011cc61f  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (GfxDeviceWorker::RunGfxDeviceWorker(void*)+2) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #21 pc 008a4583  /data/app/com.Debug.SnapdragonProfilerBugReport-h9UT6ClgLbV7kjL0u49Z_Q==/lib/arm/libunity.so (Thread::RunThreadWrapper(void*)+518) (BuildId: 81c4e0efc032ecd4c086e556129891319235e03f)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #22 pc 000996d5  /apex/com.android.runtime/lib/bionic/libc.so (__init_static_tls(void*)+72) (BuildId: d1568497ed5b358f7b37d4db225ec799)
2022/06/02 21:29:16.206 14234 14304 Error CRASH       #23 pc 00000ffe  <anonymous:aba7e000>
  • Up0
  • Down0
encarls1
Join Date: 17 May 22
Posts: 2
Posted: Fri, 2022-06-03 13:47

I forgot to mention in my previous post I am launching the application through the profiler in snapshot mode, as well as the application is using Unity's universal render pipeline

Additionally, with further testing I have narrowed the issue down to the OpenXR and Oculus VR plugins. Building the app with VR disabled, the profiler can attach and the app launches with no issues.

  • Up0
  • Down0
lance
Join Date: 28 Apr 22
Posts: 2
Posted: Sat, 2022-09-17 23:57

This seems to be a duplicate of the same bug reported here. I also have the exact same issue but in Unreal Engine. Interesting that you found it works if VR is disabled.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.