mrousavy / react-native-vision-camera

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

🐛 getCameraCharacteristics:1041: Unable to retrieve camera characteristics for unknown device #3148

Closed stevenmathers closed 2 months ago

stevenmathers commented 2 months ago

What's happening?

crash on specific android device S22+

I dont have this device, I am seeing this in our firebase crashlytics

Screenshot 2024-08-23 at 10 05 46 am

Reproduceable Code

<Camera
                    ref={camera}
                    style={{flex:1}}
                    device={device}
                    isActive={isFocused && isForeground}
                    photo={true}
                    enableZoomGesture
                    orientation='portrait'
                    resizeMode={'contain'}
                />

Relevant log output

see image above
I dont have this device, I am seeing this in our firebase crashlytics
but I have captured the stack trace
for you

Camera Device

unknown

Device

Galaxy S22+

VisionCamera Version

4.1.5

Can you reproduce this issue in the VisionCamera Example app?

I didn't try (⚠️ your issue might get ignored & closed if you don't try this)

Additional information

maintenance-hans[bot] commented 2 months ago

Guten Tag, Hans here! 🍻

Thanks for reporting zis issue. It looks like you are facing a crash on a specific device, but I see you don’t have access to it. To help mrousavy investigate zis, please provide more detailed logs from Firebase Crashlytics or any related logs you can gather. You can use adb logcat for Android devices to capture ze logs during the crash.

Also, it would be very helpful if you tried to reproduce zis issue in ze VisionCamera Example app. If you still can’t reproduce, any additional details or context about when zis crash happens would also be great!

Remember to support ze project if you find it helpful. You can do zat by sponsoring mrousavy. Thank you!

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

mrousavy commented 2 months ago

Sorry, without logs I cannot help you. You need to reproduce this bug on an actual device and send me the adb logcat logs.

stevenmathers commented 2 months ago

Hi @mrousavy perhaps just keep this ticket open in case it is not just how Im using the library, but an issue for everybody who uses the library with this device. Its been around for 2 years though.

mrousavy commented 2 months ago

Yes but as I just said, there's nothing I can do without logs.

stevenmathers commented 2 months ago

Ill try to track down an online real device of this type and see what happens.

On Thu, Aug 29, 2024 at 6:10 PM Marc Rousavy @.***> wrote:

Yes but as I just said, there's nothing I can do without logs.

— Reply to this email directly, view it on GitHub https://github.com/mrousavy/react-native-vision-camera/issues/3148#issuecomment-2316977323, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKQ2O6LEYBBD7ZTMKCVKUWLZT3JPHAVCNFSM6AAAAABM7EZ3I6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJWHE3TOMZSGM . You are receiving this because you authored the thread.Message ID: @.***>