java.lang.RuntimeException: Camera is being used after Camera.release() was called

GitHub | rafaelcorreiapoli | 5 months ago
  1. 0

    Crashing Android

    GitHub | 5 months ago | rafaelcorreiapoli
    java.lang.RuntimeException: Camera is being used after Camera.release() was called
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Unknown MID with gc0308 camera and mma7660 sensor - C8 Laboratory - SlateDroid.com

    slatedroid.com | 8 months ago
    java.lang.RuntimeException: Unable to pause activity {com.android.camera/com.android.camera.Camera}: java.lang.RuntimeException: cancelAutoFocus failed

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Camera is being used after Camera.release() was called

      at android.hardware.Camera.native_cancelAutoFocus()
    2. Android Platform
      Camera.cancelAutoFocus
      1. android.hardware.Camera.native_cancelAutoFocus(Native Method)
      2. android.hardware.Camera.cancelAutoFocus(Camera.java:1275)
      2 frames
    3. com.eguma.barcodescanner
      BarcodeScannerManager.onHostDestroy
      1. com.eguma.barcodescanner.CameraPreview.stopCameraPreview(CameraPreview.java:89)
      2. com.eguma.barcodescanner.CameraPreview.stopCamera(CameraPreview.java:52)
      3. com.eguma.barcodescanner.BarcodeScannerView.stopCamera(BarcodeScannerView.java:55)
      4. com.eguma.barcodescanner.BarcodeScannerManager.onHostDestroy(BarcodeScannerManager.java:63)
      4 frames
    4. com.facebook.react
      ReactActivity.onDestroy
      1. com.facebook.react.bridge.ReactContext.onHostDestroy(ReactContext.java:182)
      2. com.facebook.react.ReactInstanceManagerImpl.moveToBeforeCreateLifecycleState(ReactInstanceManagerImpl.java:599)
      3. com.facebook.react.ReactInstanceManagerImpl.destroy(ReactInstanceManagerImpl.java:552)
      4. com.facebook.react.ReactActivity.onDestroy(ReactActivity.java:177)
      4 frames
    5. Android Platform
      ActivityThread.handleDestroyActivity
      1. android.app.Activity.performDestroy(Activity.java:6407)
      2. android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1142)
      3. android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3818)
      4. android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3849)
      4 frames