arcore-android-sdk
arcore-android-sdk copied to clipboard
Crash due to No usable local profile / Device not supported
SPECIFIC ISSUE ENCOUNTERED
I have a LineageOS 20 (Android 13) on a Samsung S10e.
ARcore crashes in native code when trying to start it, errors directly before the app is killed:
- Unable to obtain device profile from the content provider: NOT_FOUND:
- ArStatusErrorSpace::AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE
Log and stacktrace:
2023-06-28 02:06:42.317 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.317934 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318044 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318079 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318104 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318137 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318160 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318193 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318217 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.318 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.318229 27055 device_profile_database_helpers.cc:492] Could not locate device profile for samsung/lineage_beyond0lte/beyond0lte:13/TQ3A.230605.012/509c309f5e:userdebug/release-keys
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319770 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319792 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319807 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319819 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319832 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319844 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319857 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319869 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.319 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.319880 27055 device_profile_database_helpers.cc:492] Could not locate device profile for samsung/lineage_beyond0lte/beyond0lte:13/TQ3A.230605.012/509c309f5e:userdebug/release-keys
2023-06-28 02:06:42.320 26999-27055 ARCore-ContentProvider com.google.ar.core W Too many profile download attempts. Backing off.
2023-06-28 02:06:42.323 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.323869 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.323 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.323945 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.323 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.323979 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.324 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.324001 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.324 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.324033 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.324 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.324055 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.324 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.324087 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.324 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.324117 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.324 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.324129 27055 device_profile_database_helpers.cc:492] Could not locate device profile for samsung/lineage_beyond0lte/beyond0lte:13/TQ3A.230605.012/509c309f5e:userdebug/release-keys
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325563 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325582 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325596 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325608 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325621 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325633 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325646 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325658 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.325 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.325669 27055 device_profile_database_helpers.cc:492] Could not locate device profile for samsung/lineage_beyond0lte/beyond0lte:13/TQ3A.230605.012/509c309f5e:userdebug/release-keys
2023-06-28 02:06:42.326 26999-27055 ARCore-ContentProvider com.google.ar.core W Too many profile download attempts. Backing off.
2023-06-28 02:06:42.330 27979-27979 third_part..._create.cc de.westnordost.streetmeasure I Entering ArSession_createWithFeaturesAndTrace
2023-06-28 02:06:42.330 27979-27979 third_part..._create.cc de.westnordost.streetmeasure I ARCore Version: SDK build name: 1.37
2023-06-28 02:06:42.332 27979-27979 third_part..._create.cc de.westnordost.streetmeasure I ARCore Version: APK version code: 231530333
2023-06-28 02:06:42.345 27979-27979 third_part..._create.cc de.westnordost.streetmeasure I Dynamite load ok.
2023-06-28 02:06:42.345 27979-27979 third_part..._client.cc de.westnordost.streetmeasure I Attempting to load native library arcore_c from package com.google.ar.core
2023-06-28 02:06:42.364 27979-27979 third_part..._client.cc de.westnordost.streetmeasure I Dynamite::LoadNativeRemoteLibrary handle=-2818512944884857485
2023-06-28 02:06:42.365 27979-27979 third_part..._create.cc de.westnordost.streetmeasure I ARCore SDK: dynamite number_of_symbols_loaded=313
2023-06-28 02:06:42.365 27979-27979 native de.westnordost.streetmeasure I I0000 00:00:1687910802.365741 27979 session_create_implementation.cc:253] Entering createImplementationWithFeaturesAndSettings. ARCore SDK version: [1.37.230900000].
2023-06-28 02:06:42.371 27979-27979 native de.westnordost.streetmeasure I I0000 00:00:1687910802.371121 27979 session_create_implementation.cc:216] AugmentedRegion downsample mode from Phenotype: false
2023-06-28 02:06:42.373 27979-28009 third_part..._helper.cc de.westnordost.streetmeasure V JniHelper: attached thread (Called from line 367).
2023-06-28 02:06:42.374 6330-11347 Compatibil...geReporter system_process D Compat change id reported: 161145287; UID 10223; state: DISABLED
2023-06-28 02:06:42.377 26999-27055 ARCore-ContentProvider com.google.ar.core W No usable local profile
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380370 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380482 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380533 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380562 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380607 27055 device_profile_database_helpers.cc:542] Found nothing for haUynM
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380646 27055 device_profile_database_helpers.cc:542] Found nothing for lineage_beyond0lte/beyond0lte
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380692 27055 device_profile_database_helpers.cc:542] Found nothing for IR6s4U
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380719 27055 device_profile_database_helpers.cc:542] Found nothing for beyond0lte
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core I I0000 00:00:1687910802.380734 27055 device_profile_database_helpers.cc:492] Could not locate device profile for samsung/lineage_beyond0lte/beyond0lte:13/TQ3A.230605.012/509c309f5e:userdebug/release-keys
2023-06-28 02:06:42.380 26999-27055 native com.google.ar.core E E0000 00:00:1687910802.380754 27055 calibration_jni.cc:212] No device profile available for build fingerprint samsung/lineage_beyond0lte/beyond0lte:13/TQ3A.230605.012/509c309f5e:userdebug/release-keys
2023-06-28 02:06:42.382 27979-27979 native de.westnordost.streetmeasure E E0000 00:00:1687910802.382255 27979 session_create_implementation_shared.cc:2509] Unable to obtain device profile from the content provider: NOT_FOUND:
ARCoreError: third_party/arcore/ar/core/android/implementation/session_calibration_helpers.cc:202
ARCoreError: third_party/arcore/ar/core/android/implementation/session_calibration_helpers.cc:158
Device is not supported.
=== Source Location Trace: ===
third_party/arcore/ar/core/android/implementation/session_calibration_helpers.cc:158
third_party/arcore/ar/core/android/implementation/session_calibration_helpers.cc:202
2023-06-28 02:06:42.382 27979-27979 native de.westnordost.streetmeasure W W0000 00:00:1687910802.382332 27979 session_create_implementation_shared.cc:2893] NOT_FOUND:
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2893
Failed to create calibration config and device profile -
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2513
[type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE']
=== Source Location Trace: ===
third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2513
2023-06-28 02:06:42.383 27979-28009 third_part..._helper.cc de.westnordost.streetmeasure V ~JniHelper: about to detach thread (Called from line 367).
2023-06-28 02:06:42.383 27979-28009 third_part..._helper.cc de.westnordost.streetmeasure V ~JniHelper: detached thread (Called from line 367).
2023-06-28 02:06:42.383 27979-27979 native de.westnordost.streetmeasure E E0000 00:00:1687910802.383762 27979 error_policy_util.cc:263]
################ ARCore Native Error ##################
BUILD_CHANGELIST:539169707
BUILD_BASELINE_CHANGELIST:537185785
################### Stack Trace Begin ################
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2513 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc?g=0&l=2513
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2893 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc?g=0&l=2893
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:361 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation.cc?g=0&l=361
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:479 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/android/implementation/session_create_implementation.cc?g=0&l=479
################### Stack Trace End #################
################### Undecorated Trace Begin #################
NOT_FOUND:
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:361
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2893
Failed to create calibration config and device profile -
ARCoreError: third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2513
[type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_UNAVAILABLE_DEVICE_NOT_COMPATIBLE']
=== Source Location Trace: ===
third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2513
third_party/arcore/ar/core/android/implementation/session_create_implementation_shared.cc:2893
third_party/arcore/ar/core/android/implementation/session_create_implementation.cc:361
################### Undecorated Trace End #################
VERSIONS USED
- Android Studio: 2022.2.1 Patch 1
- ARCore SDK for Android: 1.37.0
- Device manufacturer, model, and O/S: Samsung Galaxy S10e, Android 13 (LineageOS 20-20230622-NIGHTLY-beyond0lte)
- Google Play Services for AR (ARCore): 1.38.231530333
- Output of
adb shell getprop ro.build.fingerprint
: samsung/lineage_beyond0lte/beyond0lte:13/TQ3A.230605.012/509c309f5e:userdebug/release-keys
STEPS TO REPRODUCE THE ISSUE
- Have a current LineageOS installed (on a Samsung S10e)
- Start the app de.westnordost.streetmeasure. Probably any AR app will do, though.
- Crash when initializing ARCore
ADDITIONAL COMMENTS
Samsung S10e as such is compatible with ARCore.
The build fingerprint of the LineageOS build looks a bit peculiar. Certainly, this causes the issue.
However, a peculiar build fingerprint should at most lead to the library responding that the device is not compatible in an orderly manner rather than just crash, there are well-defined error codes for that after all.