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

Android Example runtime error! #69

Open
erogol opened this issue Apr 8, 2016 · 1 comment
Open

Android Example runtime error! #69

erogol opened this issue Apr 8, 2016 · 1 comment

Comments

@erogol
Copy link

erogol commented Apr 8, 2016

Any idea about the blow error?

04-08 15:55:55.416 12315-12315/com.example.cam I/Choreographer: Skipped 267 frames!  The application may be doing too much work on its main thread.
04-08 15:55:55.472 12315-12315/com.example.cam D/AndroidRuntime: Shutting down VM
04-08 15:55:55.481 12315-12315/com.example.cam E/AndroidRuntime: FATAL EXCEPTION: main
                                                                 Process: com.example.cam, PID: 12315
                                                                 java.lang.RuntimeException: setParameters failed
                                                                     at android.hardware.Camera.native_setParameters(Native Method)
                                                                     at android.hardware.Camera.setParameters(Camera.java:1997)
                                                                     at com.example.cam.Preview.surfaceChanged(Preview.java:159)
                                                                     at android.view.SurfaceView.updateWindow(SurfaceView.java:607)
                                                                     at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:179)
                                                                     at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
                                                                     at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2086)
                                                                     at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1125)
                                                                     at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6100)
                                                                     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
                                                                     at android.view.Choreographer.doCallbacks(Choreographer.java:670)
                                                                     at android.view.Choreographer.doFrame(Choreographer.java:606)
                                                                     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
                                                                     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:5525)
                                                                     at java.lang.reflect.Method.invoke(Native Method)
                                                                     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)
                                                                     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
@sommeralex
Copy link

i dont know who to deal with your runtime error, but i have setup the android example and it is running :-) if you want, i can share my code! i would like to copy the learning example from iOS to android / maybe there are some who want to collaborate..

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

2 participants