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

fixing exception of updating layout from cameraKit thread on some dev… #1

Merged
merged 1 commit into from
Aug 25, 2017

Conversation

shtolik
Copy link
Contributor

@shtolik shtolik commented Aug 25, 2017

…ices

E/AndroidRuntime: FATAL EXCEPTION: CameraViewWorker
Process: com.in4mo.mmr300.demo, PID: 32194
android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6604)
at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:947)
at android.view.View.requestLayout(View.java:18745)
at android.view.View.requestLayout(View.java:18745)
at android.view.View.requestLayout(View.java:18745)
at android.view.View.requestLayout(View.java:18745)
at android.view.View.requestLayout(View.java:18745)
at android.view.View.requestLayout(View.java:18745)
at android.view.View.requestLayout(View.java:18745)
at com.otaliastudios.cameraview.CameraView$CameraCallbacks.onCameraPreviewSizeChanged(CameraView.java:1218)
at com.otaliastudios.cameraview.Camera1.setup(Camera1.java:116)
at com.otaliastudios.cameraview.Camera1.start(Camera1.java:153)
at com.otaliastudios.cameraview.CameraView$2.run(CameraView.java:500)
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.os.HandlerThread.run(HandlerThread.java:61)

…ices

E/AndroidRuntime: FATAL EXCEPTION: CameraViewWorker
                                                                       Process: com.in4mo.mmr300.demo, PID: 32194
                                                                       android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
                                                                           at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:6604)
                                                                           at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:947)
                                                                           at android.view.View.requestLayout(View.java:18745)
                                                                           at android.view.View.requestLayout(View.java:18745)
                                                                           at android.view.View.requestLayout(View.java:18745)
                                                                           at android.view.View.requestLayout(View.java:18745)
                                                                           at android.view.View.requestLayout(View.java:18745)
                                                                           at android.view.View.requestLayout(View.java:18745)
                                                                           at android.view.View.requestLayout(View.java:18745)
                                                                           at com.otaliastudios.cameraview.CameraView$CameraCallbacks.onCameraPreviewSizeChanged(CameraView.java:1218)
                                                                           at com.otaliastudios.cameraview.Camera1.setup(Camera1.java:116)
                                                                           at com.otaliastudios.cameraview.Camera1.start(Camera1.java:153)
                                                                           at com.otaliastudios.cameraview.CameraView$2.run(CameraView.java:500)
                                                                           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.os.HandlerThread.run(HandlerThread.java:61)
@natario1
Copy link
Owner

Makes sense @shtolik , thanks!

@natario1 natario1 merged commit 400ade2 into natario1:master Aug 25, 2017
AnasBaaz referenced this pull request in baaz-inc/CameraView Nov 12, 2020
@wishjox wishjox mentioned this pull request Jan 12, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants