-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
🐛 It crashes on Android after scanning a QRcode #2147
Comments
Hey - thanks for sharing the logs. Finally someone gets it.
It's not really clear to me how I can reproduce this though, you scan a code and then navigate away from the Camera page? |
why do you send me the code as a screenshot 😂🤦♂️ |
In fact it's the first time I send a code on github and when I did I use the tag it's doing anything to me so I didn't break my head I did a screenshoot 😂😭 |
Hey - I need symbolicated stack traces. There's a Sentry tutorial telling you how you can get those @mare95 |
Is there any solution to this problem? When the app crashes there is nothing in the log to look at for debugging |
I have this same error, when reading QR codes, any solution? |
I have this same error |
Hello folks. I have had the same issue. I fixed it by disabling the isActive prop after the barcode/qrcode is read. Also do not close the camera automatically. Add a button to close and hide the component rendering the camera. |
I got the same issue, and as @Saif-Ur-Rehman19 stated, disabling |
@mrousavy maybe I found a way to replicate the issue. I was trying to add a debounce function as suggested by @emaxedon.
I'm using Hope it can helps debugging the issue. Following also the adb logs:
|
Hey! Thanks for reporting this issue. I've been working the past days on making sure the Camera lifecycle is safely handled and released when needed to make sure this crash doesn't occur anymore. I just created a PR for this - can you please this to see if that fixes the issue for you? #2339 If this fixes your issue, please consider 💖 sponsoring me on GitHub 💖 to support me / thank me for building VisionCamera and continuously improving it. If this does not fix your issue, please clone the repo, check out the branch Thank you! 🙏 |
I had the same issue. However, after I controlled isActive by another variable, I changed isActive to false before closing this component. I will fix this problem |
What's happening?
Hello, I am on the "react-native-vision-camera" version: "^3.6.4", and I use it to scan qrcodes. On iOS everything is good and on Android after a scan the application crashes and I don't understand why. I also have Crashlytics and I see that it tells me: Caused by java.lang.IllegalStateException
Screen fragments should never be restored. Follow instructions from software-mansion/react-native-screens#17 (comment) to properly configure your main activity.
Reproduceable Code
Relevant log output
Camera Device
Device
Samsung and Emulator Android
VisionCamera Version
3.6.4
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
The text was updated successfully, but these errors were encountered: