mintware-de / flutter_barcode_reader

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

[Bug] Not detected barcode in Andorid, (ios work) #294

Closed brux88 closed 3 years ago

brux88 commented 3 years ago

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

Describe the bug can't read any barcode in android since I migrated from version 1 to 3

To Reproduce Steps to reproduce the behavior:

  1. click scan
  2. See error in log

Expected behavior it should read me the value of the barcode

Screenshots If applicable, add screenshots to help explain your problem.

Logs I/ViewRootImpl@c9be3e5MainActivity: ViewPostIme pointer 0 I/ViewRootImpl@c9be3e5MainActivity: ViewPostIme pointer 1 W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->arrayBaseOffset(Ljava/lang/Class;)I (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->copyMemory(JJJ)V (greylist, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->getByte(J)B (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->getByte(Ljava/lang/Object;J)B (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->getLong(J)J (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->putByte(JB)V (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->putByte(Ljava/lang/Object;JB)V (greylist,core-platform-api, linking, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed) W/om.brux88.sedn(28773): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, reflection, allowed) W/om.brux88.sedn(28773): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, reflection, allowed) D/ZLA (28773): Setting app side flag to false due to ActivityStarter-Normal Launch W/ActivityThread(28773): handleWindowVisibility: no activity for token android.os.BinderProxy@a999f0c D/PhoneWindow(28773): forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4274 com.android.internal.policy.DecorView.updateColorViews:1547 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3252 android.view.Window.setFlags:1153 com.android.internal.policy.PhoneWindow.generateLayout:2474 I/MultiWindowDecorSupport(28773): [INFO] isPopOver = false I/MultiWindowDecorSupport(28773): updateCaptionType >> DecorView@60d5509[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true D/MultiWindowDecorSupport(28773): setCaptionType = 0, DecorView = DecorView@60d5509[] I/ViewRootImpl@429936cBarcodeScannerActivity: setView = com.android.internal.policy.DecorView@60d5509 TM=true MM=false I/ViewRootImpl@c9be3e5MainActivity: MSG_WINDOW_FOCUS_CHANGED 0 1 D/InputMethodManager(28773): prepareNavigationBarInfo() DecorView@5812562[MainActivity] D/InputMethodManager(28773): getNavigationBarColor() -855310 I/ViewRootImpl@429936cBarcodeScannerActivity: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=4 res=0x7 s={true 526379286528} ch=true D/OpenGLRenderer(28773): createReliableSurface : 0x7a04444600(0x7a8ea68000) I/mali_winsys(28773): new_window_surface() [1080x2400] return: 0x3000 D/OpenGLRenderer(28773): eglCreateWindowSurface : 0x7a04561080 D/OpenGLRenderer(28773): makeCurrent EglSurface : 0x7a832d8f00 -> 0x7a04561080 I/ViewRootImpl@429936cBarcodeScannerActivity: MSG_WINDOW_FOCUS_CHANGED 1 1 D/InputMethodManager(28773): prepareNavigationBarInfo() DecorView@60d5509[BarcodeScannerActivity] D/InputMethodManager(28773): getNavigationBarColor() -855310 D/InputMethodManager(28773): prepareNavigationBarInfo() DecorView@60d5509[BarcodeScannerActivity] D/InputMethodManager(28773): getNavigationBarColor() -855310 V/InputMethodManager(28773): Starting input: tba=com.brux88.sedna ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false D/InputMethodManager(28773): startInputInner - Id : 0 I/InputMethodManager(28773): startInputInner - mService.startInputOrWindowGainedFocus D/InputTransport(28773): Input channel destroyed: 'ClientS', fd=99 I/ViewRootImpl@429936cBarcodeScannerActivity: MSG_RESIZED: frame=(0,0,1080,2400) ci=(0,73,0,39) vi=(0,73,0,39) or=1 I/SurfaceView(28773): onWindowVisibilityChanged(0) true me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ......I. 0,0-0,0} of ViewRootImpl@429936c[BarcodeScannerActivity] V/CameraPreview(28773): Cancelling autofocus I/ViewRootImpl@429936cBarcodeScannerActivity: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=3 res=0x1 s={true 526379286528} ch=false I/SurfaceView(28773): surfaceCreated 1 #8 me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ......ID 0,0-1080,2141} I/SurfaceView(28773): surfaceChanged (1080,2141) 1 #8 me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ......ID 0,0-1080,2141} I/OpenGLRenderer(28773): doUpdatePositionAsync is called and callVoidMethod I/SurfaceView(28773): surfaceChanged (1204,2141) 1 #5 me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ......ID 0,0-1204,2141} I/OpenGLRenderer(28773): doUpdatePositionAsync is called and callVoidMethod I/SurfaceView(28773): onWindowVisibilityChanged(8) false io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} of ViewRootImpl@c9be3e5[MainActivity] I/SurfaceView(28773): surfaceDestroyed callback.size 1 #2 io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} I/SurfaceView(28773): remove() io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} Surface(name=SurfaceView - com.brux88.sedna/com.brux88.sedna.MainActivity@7fe9947@0)/@0xe051574 D/OpenGLRenderer(28773): destroyEglSurface : 0x7a832d8f00 I/mali_egl(28773): eglDestroySurface() in I/mali_winsys(28773): delete_surface() [1080x2400] return I/mali_egl(28773): eglDestroySurface() out E/OpenGLRenderer(28773): ReliableSurface: perform returned an error W/libEGL (28773): EGLNativeWindowType 0x7a8ea6f210 disconnect failed D/OpenGLRenderer(28773): ~ReliableSurface : 0x7a8ea6f200 I/ViewRootImpl@c9be3e5MainActivity: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)8 dur=3 res=0x5 s={false 0} ch=true I/ViewRootImpl@c9be3e5MainActivity: stopped(true) old=false I/SurfaceView(28773): windowStopped(true) false io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} of ViewRootImpl@c9be3e5[MainActivity] I/ViewRootImpl@c9be3e5MainActivity: stopped(false) old=true I/SurfaceView(28773): windowStopped(false) false io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} of ViewRootImpl@c9be3e5[MainActivity] I/ViewRootImpl@c9be3e5MainActivity: stopped(false) old=false I/SurfaceView(28773): onWindowVisibilityChanged(0) true io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} of ViewRootImpl@c9be3e5[MainActivity] I/ViewRootImpl@c9be3e5MainActivity: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)0 dur=8 res=0x7 s={true 526233251840} ch=true D/OpenGLRenderer(28773): createReliableSurface : 0x7a04444740(0x7a85f23000) I/mali_winsys(28773): new_window_surface() [1080x2400] return: 0x3000 D/OpenGLRenderer(28773): eglCreateWindowSurface : 0x79f91bae00 I/SurfaceView(28773): surfaceCreated 1 #8 io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} I/mali_winsys(28773): new_window_surface() [1080x2361] return: 0x3000 I/mali_egl(28773): eglDestroySurface() in I/mali_winsys(28773): delete_surface() [1080x2361] return I/mali_egl(28773): eglDestroySurface() out I/SurfaceView(28773): surfaceChanged (1080,2361) 1 #8 io.flutter.view.FlutterView{7fe9947 VFE...... ........ 0,0-1080,2361} D/OpenGLRenderer(28773): makeCurrent EglSurface : 0x7a04561080 -> 0x79f91bae00 I/OpenGLRenderer(28773): doUpdatePositionAsync is called and callVoidMethod I/ViewRootImpl@429936cBarcodeScannerActivity: MSG_WINDOW_FOCUS_CHANGED 0 1 D/InputMethodManager(28773): prepareNavigationBarInfo() DecorView@60d5509[BarcodeScannerActivity] D/InputMethodManager(28773): getNavigationBarColor() -855310 I/ViewRootImpl@c9be3e5MainActivity: MSG_WINDOW_FOCUS_CHANGED 1 1 D/InputMethodManager(28773): prepareNavigationBarInfo() DecorView@5812562[MainActivity] D/InputMethodManager(28773): getNavigationBarColor() -855310 D/InputMethodManager(28773): prepareNavigationBarInfo() DecorView@5812562[MainActivity] D/InputMethodManager(28773): getNavigationBarColor() -855310 V/InputMethodManager(28773): Starting input: tba=com.brux88.sedna ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false D/InputMethodManager(28773): startInputInner - Id : 0 I/InputMethodManager(28773): startInputInner - mService.startInputOrWindowGainedFocus D/InputTransport(28773): Input channel destroyed: 'ClientS', fd=113 D/OpenGLRenderer(28773): makeCurrent EglSurface : 0x79f91bae00 -> 0x7a04561080 I/SurfaceView(28773): onWindowVisibilityChanged(8) false me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ........ 0,0-1204,2141} of ViewRootImpl@429936c[BarcodeScannerActivity] I/SurfaceView(28773): surfaceDestroyed callback.size 0 #2 me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ........ 0,0-1204,2141} I/SurfaceView(28773): remove() me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ........ 0,0-1204,2141} Surface(name=SurfaceView - com.brux88.sedna/de.mintware.barcode_scan.BarcodeScannerActivity@c68b33b@0)/@0x9d27a58 D/OpenGLRenderer(28773): makeCurrent EglSurface : 0x7a04561080 -> 0x0 D/OpenGLRenderer(28773): destroyEglSurface : 0x7a04561080 I/mali_egl(28773): eglDestroySurface() in I/mali_winsys(28773): delete_surface() [1080x2400] return I/mali_egl(28773): eglDestroySurface() out E/OpenGLRenderer(28773): ReliableSurface: perform returned an error W/libEGL (28773): EGLNativeWindowType 0x7a04444610 disconnect failed D/OpenGLRenderer(28773): ~ReliableSurface : 0x7a04444600 I/ViewRootImpl@429936cBarcodeScannerActivity: Relayout returned: old=(0,0,1080,2400) new=(0,0,1080,2400) req=(1080,2400)8 dur=5 res=0x5 s={false 0} ch=true I/ViewRootImpl@429936cBarcodeScannerActivity: stopped(true) old=false I/SurfaceView(28773): windowStopped(true) false me.dm7.barcodescanner.core.CameraPreview{c68b33b V.E...... ........ 0,0-1204,2141} of ViewRootImpl@429936c[BarcodeScannerActivity] I/ViewRootImpl@429936cBarcodeScannerActivity: dispatchDetachedFromWindow D/InputTransport(28773): Input channel destroyed: '4ea0b02', fd=104

Environment (please complete the following information): [√] Flutter (Channel stable, 1.20.1, on Microsoft Windows [Versione 10.0.17763.1039], locale it-IT)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0) [√] Android Studio (version 3.5) [√] VS Code (version 1.49.2) [√] VS Code, 32-bit edition (version 1.39.2) [√] Connected device (1 available)

brux88 commented 3 years ago

sorry , i read thi: https://github.com/mintware-de/flutter_barcode_reader/blob/master/UPGRADE.md#upgrade-from-2x-to-300

and now work