googlesamples / android-vision

Deprecated: The Mobile Vision API is now a part of ML Kit: Check out this repo:
https://github.com/firebase/quickstart-android/tree/master/mlkit
Apache License 2.0
2.92k stars 1.73k forks source link

JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal start byte 0x90 #221

Open tester9789 opened 7 years ago

tester9789 commented 7 years ago

Hi everyone, thanks for the Vision API here in Android. We at my team are having some issues reading some 2d codes in the ID Documents for Colombia, some codes are reading well but some others are throwing native crashes when parsing the codes to strings. Attached is the stack trace of the crash we are facing, it seems to be a crash at the very beginning of the string parsing...

We are using 'com.google.android.gms:play-services-vision:10.2.1'

Any help here would be greatly apprecited

Thanks

xoif commented 7 years ago

This bug seems to be similiar to previously known bugs above Lolipop http://stackoverflow.com/questions/34066498/csipsimple-throwing-exception-jni-detected-error-in-application-input-is-not-val http://stackoverflow.com/questions/12127817/android-ics-4-0-ndk-newstringutf-is-crashing-down-the-app Furthermore it isn't limited to scanning 2D Codes, the Vision Api will crash as soon as some unexpected characters, like the Registered Sign ®, are within the parsed String. To reconstruct this error, simply scan this code containing the Registred Sign:

barcode

VynceCook commented 6 years ago

Hi, Same problem, it crashes on my Samsung GS5 as soon as the CameraSource call start(). Is there any update ? Thanks for your help.

NasH5169 commented 6 years ago

Hi all,

Like @VynceCook the crash is on call start method, not while scanning a qrcode containing special chars.

Same on Galaxy S5 klte.

And no crash on Sony Xperia D2203 but the scanner did not find qrcode / barcode.