Skip to content
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

Camera section goes black on some android devices #1599

Closed
3 of 4 tasks
narada0923 opened this issue May 19, 2023 · 5 comments · Fixed by #1466
Closed
3 of 4 tasks

Camera section goes black on some android devices #1599

narada0923 opened this issue May 19, 2023 · 5 comments · Fixed by #1466
Labels
💭 question Further information is requested

Comments

@narada0923
Copy link

Question

on some android devices camera goes black or nothing is shown. on ios everything works fine, but on some android device it goes black, and when I press capture button, photo is actually taken and was saved in photo library, but screen is still black. mostly these devices are android 11 or below. so is this library doesn't really support android 11 and below devices, or am I doing sth wrong?❓

What I tried

const devices = useCameraDevices(); // i kept it empty to get best matching camera on devices

VisionCamera Version

2.15.4

Additional information

@narada0923 narada0923 added the 💭 question Further information is requested label May 19, 2023
@dawlat-zai
Copy link

This issue happens to me also on Android 12. Did you find any solution?

@myselfuser1
Copy link

@cervebar
Copy link

Similar for us on Android 13 - black screen and simply not working, no error, camera permissions granted

@erennyuksell
Copy link

same issue

@mrousavy
Copy link
Owner

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! 🎉
Otherwise please let me know and I'll keep this issue open to keep track of it.

Thank you!

@mattlewer
Copy link

mattlewer commented Aug 31, 2023

@mrousavy

Still have this issue on a Pixel 4a with v3:
"react-native-vision-camera": "3.0.0-rc.8"
"react-native": "0.72.1"

Can confirm it works fine on iOS. Appreciate all your work on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants