-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] Android - AssertionException: Expected to run on UI thread!🐛 #1395
Comments
We are also facing the same issue. Any pointers? |
I have a node script run on each yarn while the maintainer is fixing this:
Then just add it to postinstall script in package.json and yarn, or just manually change that line to use Dispatchers.Main |
@AngeloMateus, In my case I'm using following packages: <Camera When frameProcessor prop is passed to Camera, it throws error |
@AngeloMateus we tried above file. but not luck. Can you please let us know what is the exact difference/bug that we should fix in the post install script? @arjun-anar any other ideas/pointers? |
+1 |
i was able to fix this issue by doing the following, or you can try upgrading to the latest version of the library and hope that it fixes it |
Hey! I've rewritten the entire Android codebase of VisionCamera from CameraX to Camera2 in the efforts of ✨ VisionCamera V3. I just now completed the Camera2 rewrite and I believe the core structure is running, but there might be some edge cases to iron out. Can you try and test the PR #1674 for me to see if you can still reproduce this issue here? Here's an instruction on how you can test that: #1674 (comment) If the issue cannot be reproduced with that version/PR anymore, then hoorayy, I fixed it! 🎉 Thank you! |
What were you trying to do?
Trying to record a video
Reproduceable Code
What happened instead?
The app crashes. Coroutine scope should be on Main Dispatcher rather than using Default Dispatcher
Relevant log output
The text was updated successfully, but these errors were encountered: