mrousavy / react-native-vision-camera

📸 A powerful, high-performance React Native Camera library.
https://react-native-vision-camera.com
MIT License
7.64k stars 1.11k forks source link

🐛 Android device without a camera #3239

Open kolodezny opened 1 month ago

kolodezny commented 1 month ago

What's happening?

It is enough to run "npm install react-native-vision-camera" on project and the program crashes on an android device without a camera. This is observed even on an emulator without a camera. This leads to the need to assemble 2 different applications (with and without a camera).

Reproduceable Code

npm install react-native-vision-camera

Relevant log output

--------- beginning of system
--------- beginning of main
--------- beginning of crash

Camera Device

empty

Device

anyone without a camera, even an emulator

VisionCamera Version

4.5.3

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

maintenance-hans[bot] commented 1 month ago

Guten Tag, Hans here! 🍻

I see you are experiencing a crash when using react-native-vision-camera on devices and emulators without a camera. However, ze information provided is a bit limited. It would be helpful to have actual logs showing ze crash details.

Please gather logs using adb logcat on your Android device or emulator, and share ze output here. This will help mrousavy to diagnose ze issue better.

Danke for your understanding and for contributing to ze project!

Note: If you think I made a mistake, please ping @mrousavy to take a look.