olexale / flutter_mrz_scanner

Scans MRZ (Machine Readable Zone) from identity documents.
MIT License
51 stars 44 forks source link

java.lang.IllegalArgumentException: x must be >= 0 ? #9

Open hoverhollydev opened 4 years ago

hoverhollydev commented 4 years ago

don't workin I have this error

FATAL EXCEPTION: pool-4-thread-1 E/AndroidRuntime(22892): Process: com.d4d.cryfile, PID: 22892 E/AndroidRuntime(22892): java.lang.IllegalArgumentException: x must be >= 0 E/AndroidRuntime(22892): at android.graphics.Bitmap.checkXYSign(Bitmap.java:413) E/AndroidRuntime(22892): at android.graphics.Bitmap.createBitmap(Bitmap.java:801) E/AndroidRuntime(22892): at android.graphics.Bitmap.createBitmap(Bitmap.java:770) E/AndroidRuntime(22892): at io.github.olexale.flutter_mrz_scanner.FotoapparatCamera.calculateCutoutRect(FotoapparatCamera.kt:169) E/AndroidRuntime(22892): at io.github.olexale.flutter_mrz_scanner.FotoapparatCamera.processFrame(FotoapparatCamera.kt:96) E/AndroidRuntime(22892): at io.github.olexale.flutter_mrz_scanner.FotoapparatCamera.access$processFrame(FotoapparatCamera.kt:22) E/AndroidRuntime(22892): at io.github.olexale.flutter_mrz_scanner.FotoapparatCamera$configuration$1.invoke(FotoapparatCamera.kt:30) E/AndroidRuntime(22892): at io.github.olexale.flutter_mrz_scanner.FotoapparatCamera$configuration$1.invoke(FotoapparatCamera.kt:22) E/AndroidRuntime(22892): at io.fotoapparat.preview.PreviewStream.dispatchFrame(PreviewStream.kt:107) E/AndroidRuntime(22892): at io.fotoapparat.preview.PreviewStream.access$dispatchFrame(PreviewStream.kt:16) E/AndroidRuntime(22892): at io.fotoapparat.preview.PreviewStream$dispatchFrameOnBackgroundThread$1.run(PreviewStream.kt:92) E/AndroidRuntime(22892): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) E/AndroidRuntime(22892): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) E/AndroidRuntime(22892): at java.lang.Thread.run(Thread.java:764) W/OPDiagnose(22892): getService:OPDiagnoseService NULL D/OSTracker(22892): OS Event: crash D/AbstractTracker(22892): Event success I/Process (22892): Sending signal. PID: 22892 SIG: 9