java.lang.RuntimeException: cancelAutoFocus failed

GitHub | MegaMattMiller | 4 months ago
  1. 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
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Crashing Android

    GitHub | 5 months ago | rafaelcorreiapoli
    java.lang.RuntimeException: Camera is being used after Camera.release() was called

    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

      cancelAutoFocus failed

      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:1364)
      2 frames
    3. me.dm7.barcodescanner
      CameraPreview.surfaceDestroyed
      1. me.dm7.barcodescanner.core.CameraPreview.stopCameraPreview(CameraPreview.java:115)
      2. me.dm7.barcodescanner.core.CameraPreview.surfaceDestroyed(CameraPreview.java:74)
      2 frames
    4. Android Platform
      ViewGroup.removeAllViews
      1. android.view.SurfaceView.updateWindow(SurfaceView.java:696)
      2. android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:316)
      3. android.view.View.dispatchDetachedFromWindow(View.java:15847)
      4. android.view.ViewGroup.removeAllViewsInLayout(ViewGroup.java:5136)
      5. android.view.ViewGroup.removeAllViews(ViewGroup.java:5082)
      5 frames
    5. me.dm7.barcodescanner
      CameraHandlerThread$1$1.run
      1. me.dm7.barcodescanner.core.BarcodeScannerView.setupLayout(BarcodeScannerView.java:43)
      2. me.dm7.barcodescanner.core.BarcodeScannerView.setupCameraPreview(BarcodeScannerView.java:87)
      3. me.dm7.barcodescanner.core.CameraHandlerThread$1$1.run(CameraHandlerThread.java:31)
      3 frames
    6. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:739)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:158)
      4. android.app.ActivityThread.main(ActivityThread.java:7229)
      4 frames
    7. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    8. Android
      ZygoteInit$MethodAndArgsCaller.run
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      1 frame