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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃挱 [3.9.0-beta.3]: Android reboots every time I open the Camera #2559

Closed
3 of 4 tasks
svjatoslavtt opened this issue Feb 14, 2024 · 3 comments
Closed
3 of 4 tasks
Labels
馃挱 question Further information is requested

Comments

@svjatoslavtt
Copy link

svjatoslavtt commented Feb 14, 2024

Question

Hi, I updated my library with the latest version 3.9.0-beta.3, and some problems were resolved. But now I have another problem only with Android. It reboots when I open the camera.

In my application, we use react-native-vision-camera combined with @ismaelmoreiraa/vision-camera-ocr to read text in real-time.

Reading Bar-Code and QR-code works very well, but when I try to use frameProcessor (and pixelFormat tells me that the default format now is yuv) my phone reboots every time I open the camera.

Could you please give me possible solutions to fix this? Maybe I need to add some additional properties?

Here's what the component looks like:
<Camera torch={torch} device={device} isActive={hasPermission} frameProcessor={frameProcessor} style={styles.camera} />

What I tried

I built and tested my application with different build versions. And every time I had some problems with building my app.
And [3.9.0-beta.3] build and works very well.

Interesting fact: when I run the android simulator from Android Studio, it works fine. OCR gives me some text values and the simulator does not restart.

VisionCamera Version

3.9.0-beta.3

Additional information

@svjatoslavtt svjatoslavtt added the 馃挱 question Further information is requested label Feb 14, 2024
@mrousavy
Copy link
Owner

Hey - I just released VisionCamera 3.9.0-beta.4 which probably fixes this issue - can you try that latest beta and let me know? :)

@svjatoslavtt
Copy link
Author

@mrousavy yes, with 3.9.0-beta.4 works pretty well, no errors at all, thanks a lot :)

@mrousavy
Copy link
Owner

mrousavy commented Feb 15, 2024

Awesome, quite important to fix such a critical bug 馃挭
If you appreciate my time and dedication, please consider sponsoring me on GitHub.

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

No branches or pull requests

2 participants