-
Notifications
You must be signed in to change notification settings - Fork 465
[Bug] Barcode Crash on scan() #226
Comments
I clone git@github.com:mintware-de/flutter_barcode_reader.git and run the example on my emulator, same issue...
|
I test several emulator, app work when api >= 27 (Android 8.1)... |
Looks like this issue is related to |
I'm having same problem on API 23 emulator. |
In kotlin class ZXingAutofocusScannerView I inserted a try-catch to bypass error
It's just a workaround and actually I don't know if this create any other problem but now app isn't crashing anymore on cancelAutoFocus and it seems it's running smooth. |
@prokons feel free to create a PR |
I have the same problem on an eumlated AVD device (API 24).
I thinkthat a good thing can be insert the control inside the method that run setAutoFocus method (ZXingAutofocusScannerView.kt:26) and print log on autofocus failure instead of throwing the exception. |
@oznecniV97 I think your solution is better and more complete than mine. |
Add the fix as merge request (#228) |
Merged |
Describe the bug
My emulator crash when use BarcodeScanner.scan();
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Environment :
The text was updated successfully, but these errors were encountered: