-
-
Notifications
You must be signed in to change notification settings - Fork 14
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 on Android #4
Comments
I saw the following response on another thread and will try it shortly.
Well I just tried it on Android and it crashed the whole app after ~1 sec of code scanning. Found what's wrong:
Originally posted by @zzz08900 in mrousavy/react-native-vision-camera#1985 (comment) |
i have same problem also on ios, it works in debug mode but not in release mode. i get the same error when the camera starts |
Edit: Updating to Reanimated v3 (latest) did fix the crash! Now though it keeps giving this error repeatedly (no crash though): |
And later I discovered there's still crash in release builds for Android if you use reanimated(whatever version) with vision camera v3 and frame processor. Debug builds works fine though. The only valid solution as of now is to remove reanimated, which is not always possible. It looks like FYI you can make a patch-package for vision camera v2.15.x to fix the iOS17/iPhone 15 crash, and stick to old old vision-camera-code-scanner until v3 or I believe those two commits are what you need to make a patch for v2.15.x Yeah, I already did it and I'm just playing with v3 to try things out. |
this was the fix for me: |
I have update the lib to support the latest version of react-native-vision-camera https://github.com/mgcrea/vision-camera-barcode-scanner/releases/tag/0.6.1, please reopen if you encounter new issues. |
On my Android device (Moto G Stylus 2022), when I include this scanner in the Camera, it opens for a second or two, but then always crashes with the following message:
Calling code:
With this same setup, Camera is working when I comment out the
{...cameraProps}
line in<Camera />
.Aside: I wasn't able to get the example app working to reproduce this, unfortunately -- I kept getting this error in Metro:
The text was updated successfully, but these errors were encountered: