java.lang.RuntimeException: Fail to connect to camera service

GitHub | alhdo | 4 months ago
  1. 0

    GitHub comment 6#238328237

    GitHub | 4 months ago | alhdo
    java.lang.RuntimeException: Fail to connect to camera service
  2. 0

    GitHub comment 24#220275460

    GitHub | 7 months ago | awadeyar
    java.lang.RuntimeException: Fail to connect to camera service
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Doesn;t work on Android 6

    GitHub | 10 months ago | Kolyall
    java.lang.RuntimeException: Fail to connect to camera service
  5. 0

    GitHub comment 36#179271598

    GitHub | 10 months ago | havidarou
    java.lang.RuntimeException: Fail to connect to camera service
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

    Fail to connect to camera service

    at android.hardware.Camera.<init>()
  2. Android Platform
    Camera.open
    1. android.hardware.Camera.<init>(Camera.java:568)
    2. android.hardware.Camera.open(Camera.java:405)
    2 frames
  3. com.google.zxing
    CameraManager.openDriver
    1. com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface.open(GingerbreadOpenCameraInterface.java:57)
    2. com.google.zxing.client.android.camera.open.CameraManager.openDriver(CameraManager.java:77)
    2 frames
  4. com.dlazaro66.qrcodereaderview
    QRCodeReaderView.surfaceCreated
    1. com.dlazaro66.qrcodereaderview.QRCodeReaderView.surfaceCreated(QRCodeReaderView.java:110)
    1 frame
  5. Android Platform
    ActivityThread.main
    1. android.view.SurfaceView.updateWindow(SurfaceView.java:712)
    2. android.view.SurfaceView$3.onPreDraw(SurfaceView.java:209)
    3. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1014)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2511)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1438)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7398)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:920)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:695)
    9. android.view.Choreographer.doFrame(Choreographer.java:631)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:906)
    11. android.os.Handler.handleCallback(Handler.java:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:158)
    14. android.app.ActivityThread.main(ActivityThread.java:7224)
    14 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  7. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
    1 frame