google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.98k stars 1.22k forks source link

Intermittent call c api failure #296

Closed 01098996 closed 6 years ago

01098996 commented 6 years ago

In Google pixel and Samsung S9, run ARCore for a period of time, recall api always return AR_ERROR_CAMERA_NOT_AVAILABLE. How to fix?

inio commented 6 years ago
  1. We don't support the S9 yet (#250). How are you running on that device?
  2. Which function is returning AR_ERROR_CAMERA_NOT_AVAILABLE? Could you provide a logcat dump of any messages leading up to the failure?
  3. ArSession_resume() and ArSession_update() can both return AR_ERROR_CAMERA_NOT_AVAILABLE occasionally if the camera becomes unavailable. This is often due to driver bugs or thermal limitations and there's nothing we can do about it.
01098996 commented 6 years ago

Thanks inio.

  1. I'm download arcore.apk and install to S9. Call ArCoreApk_checkAvailability() return AR_AVAILABILITY_SUPPORTED_INSTALLED.
  2. Ok! Wait for this bug to appear.
  3. Can only be resolved by restarting device.
inio commented 6 years ago

Side-loading of the ARCore APK is not supported. It must be installed from the Play Store or other official means. Side-loading may result in unsupported behavior, such as what you're seeing on the S9.

For the Google Pixel device, what is the build fingerprint (adb shell getprop ro.build.fingerprint)? I'm definitely interested in seeing the logcat from that device. Even if you're side-loading, ARCore should work 100% of the time on Pixels running official OS builds.

inio commented 6 years ago

Closing for inactivity.