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

GitHub | tkirshboim | 3 months ago
  1. 0

    QR & Barcode scanner + Flashlight

    GitHub | 3 years ago | neruja
    java.lang.RuntimeException: Fail to connect to camera service
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Fail to connect to camera service on G1

    Stack Overflow | 7 years ago | Bill Ostaski
    java.lang.RuntimeException: Fail to connect to camera service
  4. 0

    Android Camera fail for second shot

    Stack Overflow | 2 years ago
    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.native_setup()
  2. Android Platform
    Camera.open
    1. android.hardware.Camera.native_setup(Native Method)
    2. android.hardware.Camera.<init>(Camera.java:429)
    3. android.hardware.Camera.open(Camera.java:388)
    3 frames
  3. com.google.android
    MainActivity.onOptionsItemSelected
    1. com.google.android.cameraview.Camera1.openCamera(Camera1.java:278)
    2. com.google.android.cameraview.Camera1.start(Camera1.java:114)
    3. com.google.android.cameraview.Camera1.setFacing(Camera1.java:152)
    4. com.google.android.cameraview.CameraView.setFacing(CameraView.java:292)
    5. com.google.android.cameraview.demo.MainActivity.onOptionsItemSelected(MainActivity.java:220)
    5 frames
  4. Android Platform
    Activity.onMenuItemSelected
    1. android.app.Activity.onMenuItemSelected(Activity.java:2592)
    1 frame
  5. Android Support v4
    FragmentActivity.onMenuItemSelected
    1. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:421)
    1 frame
  6. Android v7
    ActionMenuView$MenuBuilderCallback.onMenuItemSelected
    1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:188)
    2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
    3. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
    4. android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:69)
    5. android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)
    6. android.support.v7.widget.ActionMenuView$MenuBuilderCallback.onMenuItemSelected(ActionMenuView.java:761)
    6 frames
  7. android.support.v7
    MenuBuilder.performItemAction
    1. android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
    2. android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
    3. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
    4. android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)
    4 frames
  8. Android v7
    ActionMenuView.invokeItem
    1. android.support.v7.widget.ActionMenuView.invokeItem(ActionMenuView.java:618)
    1 frame
  9. android.support.v7
    ActionMenuItemView.onClick
    1. android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:155)
    1 frame
  10. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java:4220)
    2. android.view.View$PerformClick.run(View.java:17513)
    3. android.os.Handler.handleCallback(Handler.java:800)
    4. android.os.Handler.dispatchMessage(Handler.java:100)
    5. android.os.Looper.loop(Looper.java:194)
    6. android.app.ActivityThread.main(ActivityThread.java:5455)
    6 frames
  11. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:525)
    2 frames
  12. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:966)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:733)
    2 frames
  13. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame