-
Notifications
You must be signed in to change notification settings - Fork 262
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
RuntimeException when decoding specific files #375
Comments
There are two things going on. 1) this appears to be an incorrectly encoded QR code. 2) This failure mode was not handled inside the decoder. The reason I believe the QR code to be invalid is that after adding more debug logic it was discovered that it's specifying an Alphanumeric value of 54, which is outside the allowed range. As a sanity check I used my phone to try to read the QR code and tried 4 different apps and they all failed. At this point I think it's unlikely to be a logic error in the message decoder. There's the PR. It's going to under go a bit more testing before the updated logic is released. |
I'm aware it's an invalid QR code, sorry I didn't mention that before. The reason why I opened up an issue for it was because I was expecting the detector to return an empty result instead of throwing an exception. I have another file where another exception is thrown with error
|
Could you share the image so I can verify that it has been fixed? I'll do a small release in the next week or so to get these bug fixes out. |
Unfortunately, I can't replicate the second error, I only have that stack trace from my logs. |
I'm using BoofCV to decode QR codes.
When I run the decoder on specific files, I get a RuntimeException with error "An error occurred while calling o40.process":
Here is an example of a file that throws exception:
pdf_invalid_2.pdf
The text was updated successfully, but these errors were encountered: