qzxing: Runtime crash on Android
Hello everyone,
I use the QZxing library with openCV in my application. It works fine on Linux, macOS and Android x86, but unfortunately not on Android ARMv7, it fails with the next error
F libc : Fatal signal 6 (SIGABRT), code -6 in tid 29269 (ThreadQrReader)
This crash happens when openCV has detected QR code and propagate it to the QZXing library. If QR, then QZXing library tries to decode QImage with QR and crashes (not always but in 80-90%).
I tried to narrow the problem context and started to use only decoder for QR - DecoderFormat_QR_CODE. So, it helped a bit but still I have some crashes on decoding.
Then I done another test and fully removed openCV library from my application. I use prepared images (with correct QR codes and some images without QR or corrupted QR) and pass the to a QZXing library. All works fine, when image doesn’t contain QR or QR corrupted the QZXing library returns empty string - which is nice, otherwise it returns decoded text.
So, my assumption that openCV and QZXing library works unstable on Android ARMv7 and I don’t know how to fix it.
I thought that the problem can be in emitting exceptions from QZXing lib, but I can’t prove it and not sure why it works fine on Android x86.
About this issue
- Original URL
- State: open
- Created 6 years ago
- Reactions: 2
- Comments: 17 (3 by maintainers)
@jrlopezvila thank you very much! I can not make promises for this month as holidays are comming but starting from the end of August I will try to look at it. Thanks again for the project!
I have the same problem. The problem happens in zxing when the library is doing “throw” exception. I tried to compile my project with the -fexceptions without success. Any idees?