Hi,
I recorded this bug and it looks like there's a crash in our XR_APILAYER_QCOM_system_notification implementation. This is going to require changes on the SDK side and will be handled in a future release of Snapdragon Spaces.
Could you please provide some more info:
Thanks!
Thanks for the infos. We found the source of the crash in an API that got changed in Android 14 Behavior changes: Apps targeting Android 14 or higher | Android Developers. In case it is an option for you, as a workaround you should be able to target API level 33 until we fix the behaviour in a future release of Snapdragon Spaces.
I need to implement Sign in with Google.
https://developer.android.com/identity/sign-in/credential-manager-siwg
To implement Sign in with Google, androidx.credentials:credentials is required.
To use androidx.credentials:credentials, Target API Level 34 is required.
Please let me know when this bug will be fixed.
Of course, I will let you know once we have target release for the fix.
Following up here; This issue is resolved in the latest release on the dev portal for AR devices in Snapdragon Spaces Services 0.22.0.6 and later.
Hey, I ran into the exact same issue after updating to Target API Level 34 with the Spaces AR SDK v0.23.0. For me, the crash happened right at startup too — no useful logs unless I enabled full verbose logging.
What fixed it was explicitly updating the android:exported ragdoll hit attribute in my manifest for all relevant activities, especially those that use intent filters. Also, double-check that your uses-sdk and any required permissions are compliant with the latest Android 14 behavior changes.
If that doesn’t help, try downgrading temporarily to Target API 33 just to confirm it’s a compatibility issue with the SDK. Would be great to hear if anyone has an official workaround or if a patch is coming from the SDK team.
Let us know what you find
level devil - not a troll game
The application crashes at startup, possibly because changing Target API Level to 34 is not fully compatible with the current configuration or SDK, so check compatibility requirements and update related libraries.
Shiota. masayoshi
■Environment
・Spaces AR SDK 0.23.0 x Dual Render Fusion
・I used the following scene.
Assets/Samples/Snapdragon Spaces/0.23.0/Fusion Samples/Scenes/OpenXRLoadingTest
■Detail
(1) Change the following settings in Unity Editor.
Set "Project Settings > Player > Setting for Android > Other Settings > Identification > Target API Level" to "API level 34"
(2)Export from Unity Editor.
(3)Build with Android Studio.
(4)The app crashes immediately after launching.
■Remarks
I am attaching the adb log when the app is started.
■Crash Log
06-20 17:24:41.737 E/CRASH (27371): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
06-20 17:24:41.737 E/CRASH (27371): Version '2021.3.33f1 (ee5a2aa03ab2)', Build type 'Release', Scripting Backend 'il2cpp', CPU 'arm64-v8a'
06-20 17:24:41.737 E/CRASH (27371): Build fingerprint: 'SHARP/Kamille/Kamille:14/UKQ1.231003.002/eng.s12993.20231115.112324:userdebug/test-keys'
06-20 17:24:41.737 E/CRASH (27371): Revision: '0'
06-20 17:24:41.737 E/CRASH (27371): ABI: 'arm64'
06-20 17:24:41.737 E/CRASH (27371): Timestamp: 2024-06-20 17:24:41+0900
06-20 17:24:41.737 E/CRASH (27371): pid: 27371, tid: 27397, name: UnityMain >>> com.DefaultCompany.TestSample <<<
06-20 17:24:41.737 E/CRASH (27371): uid: 10353
06-20 17:24:41.737 E/CRASH (27371): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1063f5913db32c
06-20 17:24:41.737 E/CRASH (27371): x0 00000000d2801168 x1 001063f5913db32c x2 00000075107d3eb0 x3 001063f5913db32b
06-20 17:24:41.737 E/CRASH (27371): x4 0000007507131348 x5 00000075071311f8 x6 0000007506403200 x7 0000007506403000
06-20 17:24:41.737 E/CRASH (27371): x8 0000000000000001 x9 0000000000006b05 x10 0000000000006b05 x11 00000075064030b0
06-20 17:24:41.737 E/CRASH (27371): x12 0000000000000000 x13 0000000000000001 x14 ffffffffffffffff x15 00000078ad102800
06-20 17:24:41.737 E/CRASH (27371): x16 0000000000000001 x17 00000078b94964d0 x18 0000000000000000 x19 00000075107d47c0
06-20 17:24:41.737 E/CRASH (27371): x20 00000075107d4400 x21 0000000000000000 x22 00000075107d47c0 x23 0000007506433000
06-20 17:24:41.737 E/CRASH (27371): x24 00000075107d4f70 x25 00000075107d8000 x26 00000078a0a138f8 x27 00000075107d5c70
06-20 17:24:41.737 E/CRASH (27371): x28 00000075107d5a70 x29 00000075107d3ee0
06-20 17:24:41.737 E/CRASH (27371): sp 00000075107d3ee0 lr 0000007507102228 pc 000000750710223c
06-20 17:24:41.737 E/CRASH (27371): backtrace:
06-20 17:24:41.737 E/CRASH (27371): #00 pc 00000000000b323c /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libc++_shared.so (BuildId: ece72a2ebc3774a1be9fd21271258acd3bcdfaa7)
06-20 17:24:41.737 E/CRASH (27371): #01 pc 00000000000b41e4 /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libc++_shared.so (BuildId: ece72a2ebc3774a1be9fd21271258acd3bcdfaa7)
06-20 17:24:41.737 E/CRASH (27371): #02 pc 00000000000ae050 /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libc++_shared.so (__cxa_throw+104) (BuildId: ece72a2ebc3774a1be9fd21271258acd3bcdfaa7)
06-20 17:24:41.737 E/CRASH (27371): #03 pc 0000000000013614 /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libXrApiLayer_system_notification.so (BuildId: c678e06647cd6696a407852384551907f39fcaba)
06-20 17:24:41.737 E/CRASH (27371): #04 pc 0000000000014ba4 /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libXrApiLayer_system_notification.so (jni::Object::callMethod(_jmethodID*, long long*, jni::internal::ReturnTypeWrapper<jni::Object> const&) const+216) (BuildId: c678e06647cd6696a407852384551907f39fcaba)
06-20 17:24:41.737 E/CRASH (27371): #05 pc 000000000000f3f8 /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libXrApiLayer_system_notification.so (Activity::registerReceiver(BroadcastReceiver const&, IntentFilter const&)+140) (BuildId: c678e06647cd6696a407852384551907f39fcaba)
06-20 17:24:41.737 E/CRASH (27371): #06 pc 000000000000cea0 /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libXrApiLayer_system_notification.so (systemNotificationXrBeginSession(XrSession_T*, XrSessionBeginInfo const*)+296) (BuildId: c678e06647cd6696a407852384551907f39fcaba)
06-20 17:24:41.737 E/CRASH (27371): #07 pc 0000000000045924 /data/app/~~SMfnn_ULONkEWbyBERjvzA==/com.qualcomm.qti.spaces.services-ZpbSaPhWl3rFG7UFxIlH7Q==/lib/arm64/libXrApiLayer_handtracking.so (BuildId: c88ab362e4037d07b84eccfe9408e7a871eaa0c1)
06-20 17:24:41.737 E/CRASH (27371): #08 pc 000000000008aa44 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libUnityOpenXR.so (BuildId: 941c58dd69375c77d613a495a12d2b024fa32eb3)
06-20 17:24:41.737 E/CRASH (27371): #09 pc 000000000008a850 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libUnityOpenXR.so (BuildId: 941c58dd69375c77d613a495a12d2b024fa32eb3)
06-20 17:24:41.737 E/CRASH (27371): #10 pc 00000000016c27cc /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #11 pc 00000000016c2628 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #12 pc 00000000016c007c /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #13 pc 000000000070318c /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #14 pc 000000000008b754 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libUnityOpenXR.so (BuildId: 941c58dd69375c77d613a495a12d2b024fa32eb3)
06-20 17:24:41.737 E/CRASH (27371): #15 pc 0000000000075ad8 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libUnityOpenXR.so (BuildId: 941c58dd69375c77d613a495a12d2b024fa32eb3)
06-20 17:24:41.737 E/CRASH (27371): #16 pc 00000000016c24b0 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #17 pc 000000000070955c /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #18 pc 0000000001719614 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #19 pc 00000000007a15d8 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #20 pc 00000000007a144c /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libil2cpp.so (BuildId: 1cc5c4e5fa1b99368c5056001c695a73fa25d791)
06-20 17:24:41.737 E/CRASH (27371): #21 pc 00000000002cc198 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #22 pc 00000000002d9c98 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #23 pc 0000000000206b04 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #24 pc 000000000020793c /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #25 pc 000000000020797c /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #26 pc 0000000000207bb4 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #27 pc 0000000000353bfc /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #28 pc 000000000036a4c0 /data/app/~~cG4U90JvxT5nvPFnJfoalQ==/com.DefaultCompany.TestSample-p0NYMhv7wmwLde43KtLP7g==/lib/arm64/libunity.so (BuildId: 2396cbc705036261a7b446e58f0805fafa43ec89)
06-20 17:24:41.737 E/CRASH (27371): #29 pc 0000000000227430 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: a836eb969a6f1fd6eded1a643d480497)
06-20 17:24:41.737 E/CRASH (27371): #30 pc 00000000002109a4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) (BuildId: a836eb969a6f1fd6eded1a643d480497)
06-20 17:24:41.737 E/CRASH (27371): #31 pc 00000000002546a0 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+176) (BuildId: a836eb969a6f1fd6eded1a643d480497)