com.android.camera.one.OneCameraException: Camera 2 API supported but no devices available.

JIRA | Andreas Schneider | 1 year ago
  1. 0

    Hello, the camera service stopped working with camera API version 1. I have also set: camera2.portability.force_api=1 09-17 11:19:18.892 D/CAM_MemoryManagerImpl(12792): Max native memory: 358 MB 09-17 11:19:18.934 V/CAM_QuickActivity(12792): START onCreate: Activity = com.android.camera.CameraActivity@2cf02677 09-17 11:19:18.935 V/CAM_QuickActivity(12792): Intent Action = android.intent.action.MAIN 09-17 11:19:18.993 I/CameraManagerGlobal(12792): getCameraService: Reconnecting to camera service 09-17 11:19:19.051 E/CameraService( 4156): getCameraVendorTagDescriptor: camera hardware module doesn't exist 09-17 11:19:19.052 E/CameraMetadata-JNI(12792): CameraMetadata_setupGlobalVendorTagDescriptor: Failed to setup vendor tag descriptors, received error No such device (-19) 09-17 11:19:19.052 W/CameraManagerGlobal(12792): Failed to set up vendor tags: The camera device is removable and has been disconnected from the Android device, or the camera service has shut down the connection due to a higher-priority access request for the camera device. 09-17 11:19:19.058 D/CAM_CameraActivity(12792): Creating camera manager failed. 09-17 11:19:19.058 D/CAM_CameraActivity(12792): com.android.camera.one.OneCameraException: Camera 2 API supported but no devices available. 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.one.OneCameraManager.isCamera2Supported(OneCameraManager.java:125) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.one.OneCameraManager.create(OneCameraManager.java:95) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.one.OneCameraManager.get(OneCameraManager.java:74) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1415) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:101) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.Activity.performCreate(Activity.java:5990) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2310) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2419) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.access$900(ActivityThread.java:154) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.os.Handler.dispatchMessage(Handler.java:102) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.os.Looper.loop(Looper.java:135) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.main(ActivityThread.java:5293) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at java.lang.reflect.Method.invoke(Native Method) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at java.lang.reflect.Method.invoke(Method.java:372) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) 09-17 11:19:19.059 E/CAM_Util(12792): Show fatal error dialog

    JIRA | 1 year ago | Andreas Schneider
    com.android.camera.one.OneCameraException: Camera 2 API supported but no devices available.
  2. 0

    Hello, the camera service stopped working with camera API version 1. I have also set: camera2.portability.force_api=1 09-17 11:19:18.892 D/CAM_MemoryManagerImpl(12792): Max native memory: 358 MB 09-17 11:19:18.934 V/CAM_QuickActivity(12792): START onCreate: Activity = com.android.camera.CameraActivity@2cf02677 09-17 11:19:18.935 V/CAM_QuickActivity(12792): Intent Action = android.intent.action.MAIN 09-17 11:19:18.993 I/CameraManagerGlobal(12792): getCameraService: Reconnecting to camera service 09-17 11:19:19.051 E/CameraService( 4156): getCameraVendorTagDescriptor: camera hardware module doesn't exist 09-17 11:19:19.052 E/CameraMetadata-JNI(12792): CameraMetadata_setupGlobalVendorTagDescriptor: Failed to setup vendor tag descriptors, received error No such device (-19) 09-17 11:19:19.052 W/CameraManagerGlobal(12792): Failed to set up vendor tags: The camera device is removable and has been disconnected from the Android device, or the camera service has shut down the connection due to a higher-priority access request for the camera device. 09-17 11:19:19.058 D/CAM_CameraActivity(12792): Creating camera manager failed. 09-17 11:19:19.058 D/CAM_CameraActivity(12792): com.android.camera.one.OneCameraException: Camera 2 API supported but no devices available. 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.one.OneCameraManager.isCamera2Supported(OneCameraManager.java:125) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.one.OneCameraManager.create(OneCameraManager.java:95) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.one.OneCameraManager.get(OneCameraManager.java:74) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1415) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:101) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.Activity.performCreate(Activity.java:5990) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2310) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2419) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.access$900(ActivityThread.java:154) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.os.Handler.dispatchMessage(Handler.java:102) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.os.Looper.loop(Looper.java:135) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at android.app.ActivityThread.main(ActivityThread.java:5293) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at java.lang.reflect.Method.invoke(Native Method) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at java.lang.reflect.Method.invoke(Method.java:372) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904) 09-17 11:19:19.058 D/CAM_CameraActivity(12792): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699) 09-17 11:19:19.059 E/CAM_Util(12792): Show fatal error dialog

    JIRA | 1 year ago | Andreas Schneider
    com.android.camera.one.OneCameraException: Camera 2 API supported but no devices available.

    Root Cause Analysis

    1. com.android.camera.one.OneCameraException

      Camera 2 API supported but no devices available.

      at com.android.camera.one.OneCameraManager.isCamera2Supported()
    2. com.android.camera
      QuickActivity.onCreate
      1. com.android.camera.one.OneCameraManager.isCamera2Supported(OneCameraManager.java:125)
      2. com.android.camera.one.OneCameraManager.create(OneCameraManager.java:95)
      3. com.android.camera.one.OneCameraManager.get(OneCameraManager.java:74)
      4. com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1415)
      5. com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:101)
      5 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5990)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2310)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2419)
      5. android.app.ActivityThread.access$900(ActivityThread.java:154)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:135)
      9. android.app.ActivityThread.main(ActivityThread.java:5293)
      9 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:904)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
      2 frames