Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal Exception: java.lang.RuntimeException startPreview failed #192

Closed
chiyan171 opened this issue Apr 2, 2018 · 2 comments
Closed

Fatal Exception: java.lang.RuntimeException startPreview failed #192

chiyan171 opened this issue Apr 2, 2018 · 2 comments

Comments

@chiyan171
Copy link

chiyan171 commented Apr 2, 2018

Cameraview's version:compile 'com.otaliastudios:cameraview:1.5.0'

Tested system's version: 5.0.2
BUG's Mobile model:
ViVO Y51A

Fatal Exception: java.lang.RuntimeException: startPreview failed
at android.hardware.Camera._startPreview(Camera.java)
at android.hardware.Camera.startPreview(Camera.java:823)
at com.otaliastudios.cameraview.Camera1$12$2.onPictureTaken(Camera1.java:521)
at android.hardware.Camera$EventHandler.handleMessage(Camera.java:1193)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

@natario1
Copy link
Owner

natario1 commented Apr 7, 2018

I think this is not different from #122 , please follow up there!

@natario1 natario1 closed this as completed Apr 7, 2018
@wider2
Copy link

wider2 commented Jul 20, 2018

E/UncaughtException: java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.(Camera.java:545)
at android.hardware.Camera.open(Camera.java:385)
at com.otaliastudios.cameraview.Camera1.onStart(Camera1.java:172)
at com.otaliastudios.cameraview.CameraController$3.run(CameraController.java:180)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants