cancelAutoFocus failed

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web9

  • via GitHub by MegaMattMiller
  • via GitHub by yanayzimran
  • Stack trace

    • java.lang.RuntimeException: cancelAutoFocus failed at android.hardware.Camera.native_cancelAutoFocus(Native Method) at android.hardware.Camera.cancelAutoFocus( at me.dm7.barcodescanner.core.CameraPreview.stopCameraPreview( at me.dm7.barcodescanner.core.CameraPreview.surfaceDestroyed( at android.view.SurfaceView.updateWindow( at android.view.SurfaceView.onWindowVisibilityChanged( at android.view.View.dispatchDetachedFromWindow( at android.view.ViewGroup.removeAllViewsInLayout( at android.view.ViewGroup.removeAllViews( at me.dm7.barcodescanner.core.BarcodeScannerView.setupLayout( at me.dm7.barcodescanner.core.BarcodeScannerView.setupCameraPreview( at me.dm7.barcodescanner.core.CameraHandlerThread$1$ at android.os.Handler.handleCallback( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at at java.lang.reflect.Method.invoke(Native Method) at$

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.