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

Pressing on mobile back button when editing creates an unexpected error on android #49

Closed
Abhisflyingsoon opened this issue Jan 11, 2023 · 3 comments

Comments

@Abhisflyingsoon
Copy link

Test steps:
take picture → crop image → press "+" - Button -> camera opens → press hardware back button → press check button -> unexpected error occurs = Error: error - unable to crop image: cv::Exception: OpenCV(4.1.0) /build/master_pack-android/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'

Tested it on a few android devices and simulator. Error occurs everytime.

@ZXY101
Copy link

ZXY101 commented Jan 12, 2023

+1 getting this as well.

Exactly as stated above, hitting back then hitting the check button results in that error.

It still occurs if you hit the + again and take another pic before hitting the check button.

@hm1061998
Copy link

+1 getting this as well

@dmarcs
Copy link
Contributor

dmarcs commented Jan 19, 2023

fixed in

https://github.com/WebsiteBeaver/react-native-document-scanner-plugin/releases/tag/0.7.1
WebsiteBeaver/android-document-scanner#16

by only adding a scanned document if the camera capture completes successfully

@dmarcs dmarcs closed this as completed Jan 19, 2023
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

4 participants