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

GitHub | CiccioCicc | 2 months ago
  1. 0

    Error Camera Scan

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

    An error occurred while connecting to camera in android

    Stack Overflow | 2 years ago | Prabha1
    java.lang.RuntimeException: Fail to connect to camera service
  3. 0

    GitHub comment 579#212464997

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

    Automated exception search integrated into your IDE

  5. 0

    QR & Barcode scanner + Flashlight

    GitHub | 3 years ago | neruja
    java.lang.RuntimeException: Fail to connect to camera service

  1. pranavprakash 2 times, last 2 months ago
  2. Akshay 20 times, last 5 months ago
  3. brunosatriani 2 times, last 5 months ago
  4. jk 2 times, last 5 months ago
  5. Bardh 1 times, last 6 months ago
7 more registered users
10 unregistered visitors
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:563)
    2. android.hardware.Camera.open(Camera.java:371)
    2 frames
  3. com.google.zxing
    CaptureActivity.surfaceCreated
    1. com.google.zxing.client.android.camera.open.OpenCameraInterface.open(OpenCameraInterface.java:64)
    2. com.google.zxing.client.android.camera.open.OpenCameraInterface.open(OpenCameraInterface.java:85)
    3. com.google.zxing.client.android.camera.CameraManager.openDriver(CameraManager.java:83)
    4. com.google.zxing.client.android.CaptureActivity.initCamera(CaptureActivity.java:534)
    5. com.google.zxing.client.android.CaptureActivity.surfaceCreated(CaptureActivity.java:381)
    5 frames
  4. Android Platform
    ActivityThread.main
    1. android.view.SurfaceView.updateWindow(SurfaceView.java:597)
    2. android.view.SurfaceView$3.onPreDraw(SurfaceView.java:179)
    3. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
    4. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2060)
    5. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1112)
    6. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6035)
    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:739)
    12. android.os.Handler.dispatchMessage(Handler.java:95)
    13. android.os.Looper.loop(Looper.java:148)
    14. android.app.ActivityThread.main(ActivityThread.java:5451)
    14 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  6. Android
    ZygoteInit$MethodAndArgsCaller.run
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    1 frame