-
-
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
🐛 InitializationException - Device reporting less cameras than anticipated #3179
Comments
Guten Tag, Hans here 🍻 Thanks for your detailed report! It sounds like a tricky issue, and I appreciate you trying to gather as much information as possible. However, we need more logs to help mrousavy effectively troubleshoot this problem. Please capture the logs using If you need help with gathering the logs, feel free to ask! The more data we have, ze easier it will be to find a solution. Looking forward to your update!
|
Hey, I have same problem on production, multiple crashes in crashlytics (its small % of users, but enough to be one of main reason for our crashes currently). Maybe my information will help you somehow to debug this.
I add stacktarce from one of crashes. Name of error is |
Well, Camera APIs on Android suck. |
Started seing this out of the sudden on Android 9 on 4.5.2, rn 0.75.3. Can reproduce it locally on Pixel 4XL emulator running Android 9. @mrousavy do you need any logs or screw camera apis 😂? |
Some extra information around the bug, Simulator Pixel 4XL Android 9, same thing happens on real devices though.
stack:
edit: tried with |
Hello guys, I just found a way to reproduce the issue.
Thanks guys for pointing nearly all the versions that have the issue. As a result I use Below is my final version in
Hope it can help. |
Same issue with react-native-vision-camera 4.5.2 |
same issue |
Same here:
|
same problem |
same issue "react-native": "0.73.9", |
any help ? |
Same issue here. |
Same issue here... |
We are having the same issue here:
|
What's happening?
I am encountering a crash reported in Crashlytics, related to
androidx.camera.core.InitializationException
. The issue seems to occur when the app attempts to initialize the camera, and it reports fewer cameras than expected, resulting in aCameraUnavailableException
. This crash happens on real devices, and it mentions retrying initialization. However, I cannot reproduce the issue locally on my test devices, so I’m unable to investigate further in a controlled environment.Reproduceable Code
Relevant log output
Camera Device
Device
The crash affects multiple devices, with the following breakdown: Motorola (69%) Samsung (17%) Xiaomi (14%). Operating system versions: Android 11 (62%) Android 13 (21%) Android 12 (17%).
VisionCamera Version
4.5.2
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information
The text was updated successfully, but these errors were encountered: