edufolly / flutter_mobile_vision

Flutter implementation of Google Mobile Vision.
MIT License
455 stars 168 forks source link

App crashes! #80

Open PrameshKarki opened 2 years ago

PrameshKarki commented 2 years ago

When i tap on screen, App crashes by showing following exception message:

java.lang.RuntimeException: Unable to destroy activity {com.example.ocr_project/io.github.edufolly.fluttermobilevision.ocr.OcrCaptureActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference

PonthepYJ commented 2 years ago

I also got the same error, This package is very useful, I wish the dev team continue on their work because I could not find any other package to do OCR in flutter at all.

mo-aro-etailer commented 2 years ago

@PonthepYJ @PrameshKarki

Use the new package https://pub.dev/packages/flutter_mobile_vision_2

He already migrated the plugin to non null.

Please make a pull request to https://github.com/harrowmykel/flutter_mobile_vision_2