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 when trying to capture QR code #147

Closed
flyingOwl opened this issue Feb 12, 2021 · 1 comment
Closed

Crash when trying to capture QR code #147

flyingOwl opened this issue Feb 12, 2021 · 1 comment
Labels
type: bug Something isn't working

Comments

@flyingOwl
Copy link

flyingOwl commented Feb 12, 2021

Device:

  • Lenovo A2016a40
  • Android 6.0
  • rooted
  • Catima 1.8 from F-Droid

Steps to reproduce:

  • Freshly install app
  • Click "+" to add a card
  • Point camera preview to qrcode

Once the qrcode seems to be recognized, the app crashes. Preview works fine.

Log taken via adb logcat

02-12 11:49:28.325  8487  8537 E AndroidRuntime: FATAL EXCEPTION: DecoderThread
02-12 11:49:28.325  8487  8537 E AndroidRuntime: Process: me.hackerchick.catima, PID: 8487
02-12 11:49:28.325  8487  8537 E AndroidRuntime: java.lang.NoSuchMethodError: No interface method sort(Ljava/util/Comparator;)V in class Ljava/util/List; or its super classes (declaration of 'java.util.List' appears in /system/framework/core-libart.jar)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.google.zxing.qrcode.detector.FinderPatternFinder.selectBestPatterns(FinderPatternFinder.java:624)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.google.zxing.qrcode.detector.FinderPatternFinder.find(FinderPatternFinder.java:164)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.google.zxing.qrcode.detector.Detector.detect(Detector.java:81)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.google.zxing.qrcode.QRCodeReader.decode(QRCodeReader.java:77)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.google.zxing.MultiFormatReader.decodeInternal(MultiFormatReader.java:173)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.google.zxing.MultiFormatReader.decodeWithState(MultiFormatReader.java:87)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.journeyapps.barcodescanner.Decoder.decode(Decoder.java:75)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.journeyapps.barcodescanner.Decoder.decode(Decoder.java:49)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.journeyapps.barcodescanner.DecoderThread.decode(DecoderThread.java:146)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.journeyapps.barcodescanner.DecoderThread.access$000(DecoderThread.java:22)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at com.journeyapps.barcodescanner.DecoderThread$1.handleMessage(DecoderThread.java:38)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:107)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:207)
02-12 11:49:28.325  8487  8537 E AndroidRuntime: 	at android.os.HandlerThread.run(HandlerThread.java:61)

Edit: It might be related to zxing/zxing#1170

@TheLastProject TheLastProject added the type: bug Something isn't working label Feb 12, 2021
@TheLastProject
Copy link
Member

Your research was 100% correct. I've fixed this in ee7f5c0. I'll build and release v1.8.1 later today. Thank you for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants