Redth / ZXing.Net.Maui

Barcode Scanning for MAUI?
MIT License
437 stars 146 forks source link

System.ArgumentOutOfRangeException on Android #124

Open shugaoye opened 1 year ago

shugaoye commented 1 year ago

I follow the document in README and setup my project. I tested it on Android. It works and can detect QR Code. However, I always got System.ArgumentOutOfRangeException.

I tried to add this according to another issue, but it won't help.

Unloaded += (sender, e) => { cameraBarcodeReaderView.Handler.DisconnectHandler(); };

Here is my environment setup:

[GRALLOC] LockFlexLayout: baseFormat: 11, yStride: 640, ySize: 307200, uOffset: 307200,  uStride: 640
[GRALLOC] LockFlexLayout: baseFormat: 11, yStride: 640, ySize: 307200, uOffset: 307200,  uStride: 640
**System.ArgumentOutOfRangeException:** 'Loading...'

[SurfaceViewImpl] Surface destroyed.
[SurfaceViewImpl] Surface invalidated androidx.camera.core.SurfaceRequest@f448f18
[DeferrableSurface] surface closed,  useCount=1 closed=true androidx.camera.core.SurfaceRequest$2@85a6d71
[SurfaceView] delay destroy surface control
[CameraDevice-JV-0] Camera now idle
[CaptureSession] CameraCaptureSession.onReady() OPENED
[] [ZeroHung]zrhung_send_event: wp=257, ret=0
[SurfaceView] surfacePositionLost_uiRtSync  mSurfaceControl = null
[Choreographer] Skipped 225 frames!  The application may be doing too much work on its main thread.
[GRALLOC] LockFlexLayout: baseFormat: 11, yStride: 640, ySize: 307200, uOffset: 307200,  uStride: 640
[OpenGLRenderer] Davey! duration=3777ms; Flags=0, IntendedVsync=10281025983990, Vsync=10281025983990, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=10281026611451, AnimationStart=10281026686451, PerformTraversalsStart=10284334921867, DrawStart=10284793944784, SyncQueued=10284794604680, SyncStart=10284795461450, IssueDrawCommandsStart=10284796351555, SwapBuffers=10284802500513, FrameCompleted=10284804456763, DequeueBufferDuration=293000, QueueBufferDuration=421000, 
[ViewRootImpl] jank_removeInvalidNode jank list is null
[] [ZeroHung]zrhung_send_event: wp=257, ret=0
[] [ZeroHung]zrhung_send_event: wp=258, ret=0
[] [ZeroHung]zrhung_send_event: wp=260, ret=0