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

MRZ reading in portrait crash #152

Open
gsipic opened this issue Sep 29, 2023 · 2 comments
Open

MRZ reading in portrait crash #152

gsipic opened this issue Sep 29, 2023 · 2 comments

Comments

@gsipic
Copy link

gsipic commented Sep 29, 2023

Current Behaviour

The app will crash when trying to read MRZ in portrait position

java.lang.IllegalArgumentException: y + height must be <= bitmap.height()
                   at android.graphics.Bitmap.createBitmap(Bitmap.java:916)
                   at android.graphics.Bitmap.createBitmap(Bitmap.java:873)
                   at org.idpass.smartscanner.lib.mrz.MRZAnalyzer.analyze(MRZAnalyzer.kt:100)

Expected Behaviour

It should not crash and scanning MRZ with Portrait orientation should work

Steps to Reproduce the Problem

  1. Open SmartScanner App
  2. Go back to the home page and try to open MRZ, it will crash automatically

Context

  • Version: 0.4.6
@jlduragos
Copy link
Contributor

Hello,

Can you please provide us the following details:

  1. Model of the device used
  2. Android OS version

@gsipic
Copy link
Author

gsipic commented Oct 12, 2023

Model : Samsung A20e
Android Version 11

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