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

Crash at TakePhotoActivity #40

Open
LoveqLRC opened this issue Jul 1, 2017 · 0 comments
Open

Crash at TakePhotoActivity #40

LoveqLRC opened this issue Jul 1, 2017 · 0 comments

Comments

@LoveqLRC
Copy link

LoveqLRC commented Jul 1, 2017

Process: io.github.froger.instamaterial, PID: 6355
                                                 java.lang.RuntimeException: setParameters failed
                                                     at android.hardware.Camera.native_setParameters(Native Method)
                                                     at android.hardware.Camera.setParameters(Camera.java:2189)
                                                     at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:308)
                                                     at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
                                                     at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:160)
                                                     at io.github.froger.instamaterial.ui.activity.TakePhotoActivity$$ViewInjector$1.doClick(TakePhotoActivity$$ViewInjector.java:35)
                                                     at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
                                                     at android.view.View.performClick(View.java:4792)
                                                     at android.view.View$PerformClick.run(View.java:19938)
                                                     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.app.ActivityThread.main(ActivityThread.java:5671)
                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                     at java.lang.reflect.Method.invoke(Method.java:372)
                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
       Process: io.github.froger.instamaterial, PID: 4175
                                                                              java.lang.IllegalStateException: Preview mode must have started before you can take a picture
                                                                                  at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:331)
                                                                                  at com.commonsware.cwac.camera.CameraView.takePicture(CameraView.java:279)
                                                                                  at io.github.froger.instamaterial.ui.activity.TakePhotoActivity.onTakePhotoClick(TakePhotoActivity.java:153)
                                                                                  at io.github.froger.instamaterial.ui.activity.TakePhotoActivity_ViewBinding$1.doClick(TakePhotoActivity_ViewBinding.java:41)
                                                                                  at butterknife.internal.DebouncingOnClickListener.onClick(DebouncingOnClickListener.java:22)
                                                                                  at android.view.View.performClick(View.java:5198)
                                                                                  at android.view.View$PerformClick.run(View.java:21147)
                                                                                  at android.os.Handler.handleCallback(Handler.java:739)
                                                                                  at android.os.Handler.dispatchMessage(Handler.java:95)
                                                                                  at android.os.Looper.loop(Looper.java:148)
                                                                                  at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                                                  at java.lang.reflect.Method.invoke(Native Method)
                                                                                  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                                                  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
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

1 participant