-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
🐛 Samsung s20 + Unknown Camera Error #438
Comments
😐 |
|
Firstly, it is reproducible with just that snippet when ran on a Samsung Galaxy S20 + (honest to god, you only need to request a camera device with your function to precipitate an error, but only on specific Android devices); your camera solution is great on the Android Emulator and all IOS Devices. Unfortunately, I cannot present you any ADB output because I no longer have the device with me, I had to travel an hour to test the application on a Android device as everyone that I know in my area uses IOS, including myself. I'll try to go back by next week and give it a run, but until then, I may have to rewrite my application using another react-native camera module in hopes of getting this to work on "supported" android devices (which I feel will also be inauspicious on Samsung devices, considering your module has received great acclaim). I had to intentionally skip relevant log output, logcat seems all gibberish when I ran it (it just kept spitting on information, I did not know where I should copy considering how much text info there was), and your own error catching solution presented in your documentation provided me with a "unknown/unknown" code. P.S: I understand it's frustrating to have someone tell you "unknown error" on your repo, it isn't much help, but this bug is so elusive because it seems to be happening only on Samsung devices as stated on another open ticket by another user on this repo. |
Well it's not just frustrating to have no information, it's just that I can't help you if I don't have an error message. And you get this library for free, there's not much I can do without log output. If you share the logcat/adb logs (just share all of them.) I can take a look at this :) |
I'll give you the log output when I get the chance, until then, maybe my error is related to what another user posted also using a Samsung device and getting "unknown error" as posted here: #238 |
Same issue here with my Samsung Galaxy S20+ / Android 11 @mrousavy |
I've fixed this in 2.8.1 🎉🚀 |
What were you trying to do?
Calling both useCameraDevices() and Camera.getAvailableCameraDevices().
Reproduceable Code
What happened instead?
Well, if I didn't wrap the function in a try, I get a unhandled promise rejection of "Unknown error". The output from the previous code snippet is....
unknown/unknown [unknown/unknown: [unknown/unknown] An unknown camera error occured.]
Relevant log output
No response
Device
Samsung Galaxy s20 Plus
VisionCamera Version
2.7.0
Additional information
The text was updated successfully, but these errors were encountered: