-
-
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
🐛 An unknown camera error occured on Samsung Galaxy Note10+ #238
Comments
Could you please correctly format the error logs? use three backticks (```) for code blocks |
I'll add a remark here just incase it might help. I have a side project in Flutter and there the camera module on Samsung Galaxy Note10+ for whatever reason is noticeably slower to init than Pixel 4a for example. |
Could you please share the native logs in Android Studio/Logcat? |
|
Why did you not fill out the issue template I explicitly created for such cases? now I have to ask you for every detail. What VisionCamera version are you using? |
Well seems the code block formatting hid the part where I wrote that it's the most current example from react-native-vision-camera. And seeing as it is from the most current example any other info than logs seemed extraneous 🙂 |
Oh I see. So in the stacktrace I can see that there is a NullPointerException being raised here: react-native-vision-camera/android/src/main/java/com/mrousavy/camera/CameraViewModule.kt Line 160 in 0bb9ba1
The documentation for |
Can you try again with the current master (3007cd9) to double-check the line numbers in the stacktrace? If it's still |
let me know if #259 fixes the issue. |
Not crashing anymore just black camera preview screen. Pressed the camera flip button twice just in case as well. Logcat below:
|
Yeah this looks like a bug in the native CameraX library from Google. Can you create an issue for this in their issuetracker please? Maybe also mention that val stabilizationModes = characteristics.get(CameraCharacteristics.CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES)!! // only digital, no optical causes a NullPointerException on your device. |
I'm sorry but I don't think it's wise for me (for many reasons) to file an issue on behalf of a third party library. But it looks like the issue has already been raised: https://issuetracker.google.com/issues/188690069 |
Same problem here, note10+ with android11 black screen. |
Yeah so apparently the stabilization modes cause null pointer exceptions even though they should be available on all devices: So the android docs are lying and I just fixed this in #449 |
I've fixed this in 2.8.1 🎉🚀 |
Thank you very much for your efforts. Some info from sentry.
Could you, please, help with it? |
Hello @mrousavy Do you have a possibility to check this issue? Thank you. |
Hey!
Sorry, no. I do not have that specific test device and I cannot reproduce it on my device. |
What
The camera preview will not initialise on Samsung Galaxy Note10+.
const devices = useCameraDevices();
remains undefined.Logs
Reproducable sample
react-native-vision-camera example code.
The text was updated successfully, but these errors were encountered: