Title says it all. I don't know if this is at all helpful, but here is the stack trace from adb:
03-05 16:09:39.863 9932 9962 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 9962 (Thread-1), pid 9932 (nsoft.yarvetest)
03-05 16:09:39.889 9995 9995 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-05 16:09:39.889 9995 9995 F DEBUG : Build fingerprint: 'oculus/hollywood/hollywood:10/QQ3A.200805.001/22310100587300000:user/release-keys'
03-05 16:09:39.889 9995 9995 F DEBUG : Revision: '0'
03-05 16:09:39.889 9995 9995 F DEBUG : ABI: 'arm64'
03-05 16:09:39.889 9995 9995 F DEBUG : Timestamp: 2022-03-05 16:09:39+0100
03-05 16:09:39.889 9995 9995 F DEBUG : pid: 9932, tid: 9962, name: Thread-1 >>> com.reensoft.yarvetest <<<
03-05 16:09:39.889 9995 9995 F DEBUG : uid: 10091
03-05 16:09:39.889 9995 9995 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
03-05 16:09:39.889 9995 9995 F DEBUG : Cause: null pointer dereference
03-05 16:09:39.889 9995 9995 F DEBUG : x0 0000000000000000 x1 0000007813b66b40 x2 0000007807111f7e x3 332b0ba3ab932b98
03-05 16:09:39.889 9995 9995 F DEBUG : x4 0000000000000000 x5 21111c1007041716 x6 16170407101c1121 x7 51736d647264714f
03-05 16:09:39.889 9995 9995 F DEBUG : x8 0000000000000000 x9 00000079007e97f8 x10 0000000000000000 x11 0000000000000000
03-05 16:09:39.889 9995 9995 F DEBUG : x12 0000000000001de0 x13 000000000000004c x14 0000000000000002 x15 000055118c14c9f5
03-05 16:09:39.889 9995 9995 F DEBUG : x16 0000007813d96318 x17 0000007900884aa8 x18 0000000000400000 x19 0000007807111f7e
03-05 16:09:39.889 9995 9995 F DEBUG : x20 000000786c73a128 x21 0000000000000000 x22 0000007813d8c030 x23 00000000000000f1
03-05 16:09:39.889 9995 9995 F DEBUG : x24 00000000000000ef x25 00000000000001df x26 00000000000000ee x27 000000780716f000
03-05 16:09:39.889 9995 9995 F DEBUG : x28 0000007807293354 x29 0000007817c01060
03-05 16:09:39.889 9995 9995 F DEBUG : sp 0000007817c01010 lr 0000007813bd2c18 pc 0000007813bd2c64
03-05 16:09:39.895 9995 9995 F DEBUG :
03-05 16:09:39.895 9995 9995 F DEBUG : backtrace:
03-05 16:09:39.895 9995 9995 F DEBUG : #00 pc 00000000000b8c64 /vendor/lib64/hw/vulkan.kona.so (!!!0000!22bee8ea1f9ea739bfeb3d3b55a253!c5a97243fb!+164) (BuildId: 86421839991f71a5374a82d70edc13be)
03-05 16:09:39.895 9995 9995 F DEBUG : #01 pc 00000000000aa24c /data/app/com.qualcomm.snapdragonprofiler.profilerlayer.arm64_v8a-dbvjNcDSlyrH6ao50gFVKw==/lib/arm64/libVkLayer_adreno.so (BuildId: f0830fce08dbd0556962a37c26c74d1d754e93c5)
03-05 16:09:39.895 9995 9995 F DEBUG : #02 pc 00000000000a8ea0 /data/app/com.qualcomm.snapdragonprofiler.profilerlayer.arm64_v8a-dbvjNcDSlyrH6ao50gFVKw==/lib/arm64/libVkLayer_adreno.so (BuildId: f0830fce08dbd0556962a37c26c74d1d754e93c5)
03-05 16:09:39.895 9995 9995 F DEBUG : #03 pc 00000000000d674c /data/app/com.reensoft.yarvetest-CFxzXmqodDSDZrrJ-tI8HQ==/lib/arm64/libVkLayer_unique_objects.so (BuildId: 26e44fb318358f6fdcf8d8fcdef5426cb411aba5)
03-05 16:09:39.895 9995 9995 F DEBUG : #04 pc 00000000003c39a0 /data/app/com.reensoft.yarvetest-CFxzXmqodDSDZrrJ-tI8HQ==/lib/arm64/libVkLayer_core_validation.so (BuildId: f0cad13b9980afcd98225aff577a378f92f5339d)
03-05 16:09:39.895 9995 9995 F DEBUG : #05 pc 0000000000190874 /data/app/com.reensoft.yarvetest-CFxzXmqodDSDZrrJ-tI8HQ==/lib/arm64/libVkLayer_object_tracker.so (BuildId: a7d985919cac10207375d9c1d4d77946c46e765e)
03-05 16:09:39.895 9995 9995 F DEBUG : #06 pc 00000000001fe7f0 /data/app/com.reensoft.yarvetest-CFxzXmqodDSDZrrJ-tI8HQ==/lib/arm64/libVkLayer_parameter_validation.so (BuildId: 0bc82edb898c39492b64f8a669fde34ae939a4af)
03-05 16:09:39.895 9995 9995 F DEBUG : #07 pc 000000000015224c /data/app/com.reensoft.yarvetest-CFxzXmqodDSDZrrJ-tI8HQ==/lib/arm64/libVkLayer_threading.so (BuildId: e8b04b4239cbb87f9b354301762909de2338d6db)
03-05 16:09:39.895 9995 9995 F DEBUG : #08 pc 0000000000012f9c /system/lib64/libvulkan.so (vulkan::api::CreateInstance(VkInstanceCreateInfo const*, VkAllocationCallbacks const*, VkInstance_T**)+2212) (BuildId: 5fe21a9a5ca6062a5732bc32f1a47224)
Snapdragon profiler version: v2022.1.0.2022022
Host system: Oculus Quest 2
Engine: Proprietary
Graphics API: Vulkan
VrApi: Oculus VrAPI (Vulkan)
Is it always crash in this backtrace?
thanks
Bob Du
Hi Bob,
It appears to be the same. Ran it again and got this stack trace. It seems pretty similar to me:
However, I did notice that if I disable the validation layers that I enable manually inside the application it crashes at a different point. Then the stack trace looks like this:
I don't need to have my own validation layers enabled so if you have any idea why it fails in the second scenario that would be sufficient.
Extending on my previous post.
There are some warnings errors in the adb log before I get the stack trace as well. Seems like some form of permission issue:
My AndroidManifest.xml looks like this:
Hi, andersrein87
Do you test with the latest version Snapdragon profiler tool? Snapdragon profiler version: v2022.2.0
Also want you to check the GFX Adreno libs versoin on your Host system: Oculus Quest 2, so can you get one logcat log when you reproduce the issue?
Thanks
Bob Du
Still happening with Snapdragon Profiler 2022.4. This is a Unity 2021.3 app using Vulkan API and OpenXR.
Here's a log from the entire app run, let me know if you need further information
https://gist.github.com/useronym/9c6a4ded6e3590b6f947b0825eb88efe
I have the exact same issue trying to launch anything built from UE5 on the Quest 2 headset. So this problem doesn't seem to be exclusive to Unity or andersrein87's proprietary engine. Below is the stack trace of the crash with visual studio attached. You can see that it's crashing trying to create the swap chain in libVKLayer_PROFILER_Snapshot.so. The application launches fine as long as the Snapdragon Profiler is not attached.
Steps to reproduce. Using the latest copy of UE5 (UE 5.03) make a game project and select the standard VR Template as your starting template. Add the Oculus plugin from the plugins window. Open the project settings and go to the OculusVR settings, switch the XR API to Native OpenXR with Oculus vendor exensions. Under the Platforms -> Android settings, ensure 'Support Vulkan', and 'Support arm64' are checked and 'Support OpenGL ES3.2' is unchecked. Also ensure that the Package for Oculus Mobile devices includes Oculus Quest 2. Finally, under Advanced APK Packaging, add android.permission.WRITE_EXTERNAL_STORAGE to the 'Extra Permissions' array. Now package the game for Android (Platforms->Android->Package Project). Install pkg to device, connect snapdragon profile (v2022.4.0.8292922), click Snapshot GPU Frame Capture in the profiler. Now the app can either be launched from the profiler, or anywhere else (e.g. with Visual Studio or Android Studio attached) and it will crash immediately on startup.
Above is pretty much the exact setup I used for the below stack trace and logcat output, however, I've tried other settings as well and it doesn't make any difference.
Visual Studio stack trace:
Just ran into the same issue. Has a fix been found for this yet?
Also happened this problem.
I am also experiencing this same crash `SIGSEGV` but on the Meta Quest 3 using Vulkan. Is there any movement to fix this issue or identify it further?