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

GitHub | hypeapps | 3 months ago
  1. 0

    Doesn;t work on Android 6

    GitHub | 10 months ago | Kolyall
    java.lang.RuntimeException: Fail to connect to camera service
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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:511)
    2. android.hardware.Camera.open(Camera.java:353)
    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:582)
    2. android.view.SurfaceView$3.onPreDraw(SurfaceView.java:177)
    3. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2067)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1119)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6060)
    7. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    8. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    9. android.view.Choreographer.doFrame(Choreographer.java:606)
    10. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    11. android.os.Handler.handleCallback(Handler.java:746)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:148)
    14. android.app.ActivityThread.main(ActivityThread.java:5443)
    14 frames
  6. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  7. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
    2 frames