Closed bontew closed 3 years ago
I have exactly the same issue on a HTC U11, also with Android 9.
I observed that, when I restart the application after the crash, it prints the QR code it was scanning just before the crash. So it seems the detection actually works. The behaviour is the same in debug and release mode.
Happened on pixel 2 phone also.. any quick fix?
Happened to my galaxy s8 too, app closes after scam
I face the same issues, cold someone give a quick solution
I have the same issue also
For me, the git version doesn't work at all, successful scanning is crashing the app with same trace as @bontew provided. Same with pressing cancel.
Cannot use release version if this plugin because it doesn't work with latest flutter :(
V1.0.0 has been released, can you try it on the latest and confirm the same?
If possible can anyone provide a sample barcode on which this crash happens?
If possible can anyone provide a sample barcode on which this crash happens?
i use V1.0.1 but not work
Process: com.example.barcode_label, PID: 18798
E/AndroidRuntime(18798): java.lang.RuntimeException: Unable to destroy activity {com.example.barcode_label/com.amolg.flutterbarcodescanner.BarcodeCaptureActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference
E/AndroidRuntime(18798): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3919)
E/AndroidRuntime(18798): at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3937)
E/AndroidRuntime(18798): at android.app.ActivityThread.access$1600(ActivityThread.java:166)
E/AndroidRuntime(18798): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1453)
E/AndroidRuntime(18798): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18798): at android.os.Looper.loop(Looper.java:148)
E/AndroidRuntime(18798): at android.app.ActivityThread.main(ActivityThread.java:5541)
E/AndroidRuntime(18798): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(18798): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:853)
E/AndroidRuntime(18798): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:737)
E/AndroidRuntime(18798): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Thread$State java.lang.Thread.getState()' on a null object reference
E/AndroidRuntime(18798): at com.amolg.flutterbarcodescanner.camera.CameraSource$FrameProcessingRunnable.release(CameraSource.java:967)
E/AndroidRuntime(18798): at com.amolg.flutterbarcodescanner.camera.CameraSource.release(CameraSource.java:273)
E/AndroidRuntime(18798): at com.amolg.flutterbarcodescanner.camera.CameraSourcePreview.release(CameraSourcePreview.java:84)
E/AndroidRuntime(18798): at com.amolg.flutterbarcodescanner.BarcodeCaptureActivity.onDestroy(BarcodeCaptureActivity.java:266)
E/AndroidRuntime(18798): at android.app.Activity.performDestroy(Activity.java:6479)
E/AndroidRuntime(18798): at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1149)
E/AndroidRuntime(18798): at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3906)
E/AndroidRuntime(18798): ... 9 more
I/Process (18798): Sending signal. PID: 18798 SIG: 9
Lost connection to device.
Crashes after scanning
The potential fix has been made. It will be available in the upcoming release. Please refer #137
The issue has been fixed in V 2.0.0.
Closing this as of now, feel free to open a new issue.
Describe the bug I got error while scanning barcode. Barcode value is shown in dart log, but app is stopped. I dont know i wrong in implementation or that's a bug.
Smartphone (please complete the following information):
Log
Code