mintware-de / flutter_barcode_reader

A flutter plugin for reading 2D barcodes and QR codes.
MIT License
628 stars 463 forks source link

[Bug] Camera closes after detecting QR without any output #244

Closed joshuakoh1 closed 4 years ago

joshuakoh1 commented 4 years ago

BUG REPORTS WITHOUT PROVIDING THESE INFORMATIONS WILL BE CLOSED DIRECTLY. DON'T REMOVE THE SECTIONS!

Describe the bug Camera finds QR code then closes but no data returned.

To Reproduce Steps to reproduce the behavior:

    var result = await BarcodeScanner.scan();
    String barcode = result.rawContent;
    print('Barcode:');
    print(barcode);

Expected behavior Console should print Barcode:

**Screenshots** If applicable, add screenshots to help explain your problem. **Logs** If applicable, add the verbose output of `flutter run`. ``` I/Camera (31619): close camera: 0, package name: I/HwCameraUtil(31619): notifySurfaceFlingerCameraStatus : isFront = false , isOpend = false I/HwViewRootImpl(31619): removeInvalidNode jank list is null D/mali_winsys(31619): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 D/mali_winsys(31619): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 W/libEGL (31619): EGLNativeWindowType 0x6ff6a4b890 disconnect failed D/ActivityThread(31619): Remove activity client record, r= ActivityRecord{bf4f9bd token=android.os.BinderProxy@1302e02 {/de.mintware.barcode_scan.BarcodeScannerActivity}} token= android.os.BinderProxy@1302e02 ``` **Environment (please complete the following information):** - [ ] iOS? Version: ... - [x] Android? Version: ... 9 - [x] Real Device? Which?: ... P30 Pro - [ ] Emulator/Simulator? Which?: ... - Version of `barcode_scan` Latest - Output of `flutter --version`: ``` Flutter 1.12.13+hotfix.9 • channel stable • https://github.com/flutter/flutter.git Framework • revision f139b11009 (7 weeks ago) • 2020-03-30 13:57:30 -0700 Engine • revision af51afceb8 Tools • Dart 2.7.2 ``` **Additional context** Add any other context about the problem here.
devtronic commented 4 years ago

https://github.com/mintware-de/flutter_barcode_reader/issues/240