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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Unknown author, 2 years ago
Fail to connect to camera service
via androidcentral.com by Unknown author, 1 year ago
via GitHub by vinaytumbemane
, 1 year ago
Fail to connect to camera service
via GitHub by 782891085
, 1 month ago
Fail to connect to camera service
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.native_setup(Native Method)
at android.hardware.Camera.(Camera.java:429)
at android.hardware.Camera.open(Camera.java:388)
at com.google.android.cameraview.Camera1.openCamera(Camera1.java:278)
at com.google.android.cameraview.Camera1.start(Camera1.java:114)
at com.google.android.cameraview.Camera1.setFacing(Camera1.java:152)
at com.google.android.cameraview.CameraView.setFacing(CameraView.java:292)
at com.google.android.cameraview.demo.MainActivity.onOptionsItemSelected(MainActivity.java:220)
at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:188)
at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
at android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:103)
at android.support.v7.app.ToolbarActionBar$2.onMenuItemClick(ToolbarActionBar.java:69)
at android.support.v7.widget.Toolbar$1.onMenuItemClick(Toolbar.java:202)
at android.support.v7.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:810)
at android.support.v7.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:152)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:957)
at android.support.v7.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:947)
at android.support.v7.view.menu.ActionMenuItemView.onClick(ActionMenuItemView.java:155)
at android.view.View.performClick(View.java:4220)
at android.view.View$PerformClick.run(View.java:17513)
at android.os.Handler.handleCallback(Handler.java:800)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5455)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:966)

Users with the same issue

2 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
20 times, 1 year ago
21 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.