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

Crash with Android (OpenCV init issue) #10

Closed
jmazier-j2d opened this issue Oct 17, 2022 · 1 comment
Closed

Crash with Android (OpenCV init issue) #10

jmazier-j2d opened this issue Oct 17, 2022 · 1 comment

Comments

@jmazier-j2d
Copy link

Hello !

I'm experiencing an issue with Open CV initialization on many different Android devices (seems to be somehow link with android 12's devices).

image

I'm capturing the picture and when pressing the tick button to validate the scan, the crash happen

image

I've found other dev experiencing similar issue on different implementation of OpenCV under android and it looks like there some kind of pre-init to run in order to avoid it... still trying to dig into this issue, will keep updating here if I find a solution.

@dmarcs
Copy link
Contributor

dmarcs commented Nov 5, 2022

This can happen if you change orientation (portrait to landscape for example). It's fixed in https://github.com/WebsiteBeaver/react-native-document-scanner-plugin/tree/0.1.2.

WebsiteBeaver/android-document-scanner@81420c8
Prevent the app from crashing due to an activity restart on orientation change

@dmarcs dmarcs closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants