enioka-Haute-Couture / enioka_scan

Integration library for all your Android hardware barcode scanner integration needs
Apache License 2.0
52 stars 5 forks source link

Sur Samsung A34 problème de scanning avec la librairie lorsque d'autres composants présents sur l'écran #136

Closed abelatar closed 11 months ago

abelatar commented 1 year ago

Hello @DaSpood ,

Lors de l'utilisation de notre application sur Samsung A34, la fonction de scanning ne fonctionne pas correctement lorsque d'autres composants sont présents sur l'écran. Il semble que la librairie ne soit pas en mesure d'initier le scan correctement dans ces conditions.

Pour reproduire :

Sur un Samsung A34 créer un écran de scan avec d'autres composants sur cette écran Essayez de scanner (rien ne bouge)

Screenshot_20231016_114042

11:34:11.868                               I  ViewPostIme pointer 0
11:34:11.953                               I  ViewPostIme pointer 1
11:34:11.954 MainLoadingActivity           I  Action scan
11:34:11.963 ScannerActivity               I  Scanner activity is being paused 113660892
11:34:11.983                               D  Scanner activity is created 894150
11:34:11.985 DecorView                     I  [INFO] isPopOver=false config=true
11:34:11.985                               I  updateCaptionType: isFloating=false isApplication=true hasWindowDecorCaption=false this=DecorView@a56869e[]
11:34:11.985                               D  setCaptionType = 0, this = DecorView@a56869e[]
11:34:11.986                               I  getCurrentDensityDpi: from real metrics. densityDpi=450 msg=resources_loaded
11:34:11.987                               I  setWindowBackground: isPopOver=false color=fffafafa d=android.graphics.drawable.ColorDrawable@a50594c
11:34:11.996 BARCODE                       D  Creating camera view layout
11:34:11.996                               I  Analyser (ZBar) is ready inside pool
11:34:11.996                               I  Analyser (ZBar) is ready inside pool
11:34:11.996                               I  Analyser (ZBar) is ready inside pool
11:34:11.997                               I  Analyser (ZBar) is ready inside pool
11:34:11.997                               I  Analyser (ZBar) is ready inside pool
11:34:11.997                               I  Analyser (ZBar) is ready inside pool
11:34:11.997                               I  Analyser (ZBar) is ready inside pool
11:34:11.997                               I  Analyser (ZBar) is ready inside pool
11:34:11.997                               I  Analyser pool initialized with 8 threads
11:34:11.999                               D  Camera2 specific initialization start
11:34:11.999                               D  Starting background thread handler 48409165
11:34:12.000 ScannerActivity               I  Using camera version: com.enioka.scanner.camera.CameraBarcodeScanViewV2
11:34:12.023                               D  Scanner activity is starting 894150
11:34:12.026                               I  Scanner activity is resuming 894150
11:34:12.026                               I  Resuming scanner activity in camera mode
11:34:12.026                               I  Giving up on laser, going to camera
11:34:12.028 MobiprepActivity              I  Wifi is enabled
11:34:12.030 ParcelLoadingActivity         D  should dispay header : true
11:34:12.034                               I  original :1 - reduced : 1
11:34:12.035 MSHandlerLifeCycle            I  check: return. pkg=com.geodis.mobiprep parent=null callers=com.android.internal.policy.DecorView.setVisibility:4408 android.app.ActivityThread.handleResumeActivity:5476 android.app.servertransaction.ResumeActivityItem.execute:54 android.app.servertransaction.ActivityTransactionItem.execute:45 android.app.servertransaction.TransactionExecutor.executeLifecycleState:176 
11:34:12.035                               I  removeMultiSplitHandler: no exist. decor=DecorView@a56869e[]
11:34:12.037 NativeCustomFrequencyManager  D  [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
11:34:12.041 InsetsController              D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1080, 2340), mDisplayCutout=DisplayCutout{insets=Rect(0, 75 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(468, 0 - 612, 75), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2340 physicalDisplayWidth=1080 physicalDisplayHeight=2340 density={2.8125} cutoutSpec={M 0,0 H -25.6 V 26.66666666666667 H 25.6 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=90, center=Point(90, 90)}, RoundedCorner{position=TopRight, radius=90, center=Point(990, 90)}, RoundedCorner{position=BottomRight, radius=90, center=Point(990, 2250)}, RoundedCorner{position=BottomLeft, radius=90, center=Point(90, 2250)}]}  mRoundedCornerFrame=Rect(0, 0 - 1080, 2340), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(956, 0 - 1080, 75) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1080,75], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1080,0][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1080,109], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1080,75], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1080,75], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false} } host=com.geodis.mobiprep/com.geodis.mobiprep.ParcelLoadingActivity from=android.view.ViewRootImpl.setView:1732
11:34:12.042 ViewRootImpl@...ingActivity]  I  setView = com.android.internal.policy.DecorView@a56869e TM=true
11:34:12.043 MSHandlerLifeCycle            I  removeMultiSplitHandler: no exist. decor=DecorView@a56869e[ParcelLoadingActivity]
11:34:12.044 ScannerActivity               D  Service is connected to activity
11:34:12.044 ScannerService                D  Registering new client: com.geodis.mobiprep.ParcelLoadingActivity@da4c6 894150
11:34:12.044                               D  Notifying late clients that providers are already discovered
11:34:12.044                               D  Notifying late clients that scanners are already connected
11:34:12.044 ScannerActivity               I  Activity can now use all received scanners (0)
11:34:12.044                               I  Giving up on laser, going to camera
11:34:12.047 SurfaceView@9de85e4           I  onWindowVisibilityChanged(0) true com.enioka.scanner.camera.CameraPreviewSurfaceView{9de85e4 V.E...... ......I. 0,0-0,0} of ViewRootImpl@aa09621[ParcelLoadingActivity]
11:34:12.047                               D  updateSurface: has no frame
11:34:12.064 ViewRootImpl@...ingActivity]  I  performTraversals params={(0,0)(fillxfill) sim={adjust=resize forwardNavigation} ty=BASE_APPLICATION wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
11:34:12.065                               I  performTraversals mFirst=true windowShouldResize=true viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=resize forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
11:34:12.071 InsetsController              D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1080, 2340), mDisplayCutout=DisplayCutout{insets=Rect(0, 75 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(468, 0 - 612, 75), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2340 physicalDisplayWidth=1080 physicalDisplayHeight=2340 density={2.8125} cutoutSpec={M 0,0 H -25.6 V 26.66666666666667 H 25.6 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=90, center=Point(90, 90)}, RoundedCorner{position=TopRight, radius=90, center=Point(990, 90)}, RoundedCorner{position=BottomRight, radius=90, center=Point(990, 2250)}, RoundedCorner{position=BottomLeft, radius=90, center=Point(90, 2250)}]}  mRoundedCornerFrame=Rect(0, 0 - 1080, 2340), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(956, 0 - 1080, 75) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_STATUS_BAR, mFrame=[0,0][1080,75], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1080,0][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1080,109], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1080,75], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_TAPPABLE_ELEMENT, mFrame=[0,0][1080,75], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_IME, mFrame=[0,0][0,0], mVisibleFrame=[0,1332][1080,2340], mVisible=false, mInsetsRoundedCornerFrame=false} } host=com.geodis.mobiprep/com.geodis.mobiprep.ParcelLoadingActivity from=android.view.ViewRootImpl.relayoutWindow:9802
11:34:12.072 ViewRootImpl@...ingActivity]  I  updateBlastSurfaceIfNeeded mBlastBufferQueue=null isSameSurfaceControl=false
11:34:12.072 BufferQueueConsumer           D  [](id:7d890000002f,api:0,p:-1,c:32137) connect: controlledByApp=false
11:34:12.072 BLASTBufferQueue              I  new BLASTBufferQueue, mName= ViewRootImpl@aa09621[ParcelLoadingActivity] mNativeObject= 0xb400007c688712e0 sc.mNativeObject= 0xb400007be8798600 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 android.view.Choreographer.doCallbacks:923 android.view.Choreographer.doFrame:852 android.view.Choreographer$FrameDisplayEventReceiver.run:1283 
11:34:12.072                               I  update, w= 1080 h= 2340 mName = ViewRootImpl@aa09621[ParcelLoadingActivity] mNativeObject= 0xb400007c688712e0 sc.mNativeObject= 0xb400007be8798600 format= -3 caller= android.graphics.BLASTBufferQueue.<init>:84 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 
11:34:12.073 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=7 res=0x3 s={true 0xb400007cf8886440} ch=true seqId=0
11:34:12.074                               I  mThreadedRenderer.initialize() mSurface={isValid=true 0xb400007cf8886440} hwInitialized=true
11:34:12.074 OpenGLRenderer                D  eglCreateWindowSurface
11:34:12.081 SurfaceView@9de85e4           D  updateSurface: has no frame
11:34:12.084 AbsListView                   D   in onLayout changed 
11:34:12.084 SurfaceView@9de85e4           I  windowStopped(false) true com.enioka.scanner.camera.CameraPreviewSurfaceView{9de85e4 V.E...... ......ID 0,0-1080,1503} of ViewRootImpl@aa09621[ParcelLoadingActivity]
11:34:12.085                               D  updateSurface: has no frame
11:34:12.085 ViewRootImpl@...ingActivity]  I  reportNextDraw android.view.ViewRootImpl.performTraversals:4438 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 
11:34:12.085 SurfaceView@9de85e4           I  Changes: creating=true format=true size=true visible=true alpha=false hint=false mUseAlpha=false visible=true left=true top=true
11:34:12.087 BufferQueueConsumer           D  [](id:7d8900000030,api:0,p:-1,c:32137) connect: controlledByApp=false
11:34:12.087 BLASTBufferQueue              I  update, w= 1080 h= 1503 mName = null mNativeObject= 0xb400007c688b8560 sc.mNativeObject= 0xb400007be877f7f0 format= 4 caller= android.view.SurfaceView.createBlastSurfaceControls:1383 android.view.SurfaceView.updateSurface:1079 android.view.SurfaceView.lambda$new$0$android-view-SurfaceView:200 android.view.SurfaceView$$ExternalSyntheticLambda5.onPreDraw:2 android.view.ViewTreeObserver.dispatchOnPreDraw:1121 android.view.ViewRootImpl.performTraversals:4442 
11:34:12.087 SurfaceView@9de85e4           I  165578212 Cur surface: Surface(name=null)/@0x1a88ee8
11:34:12.087                               I  pST: sr = Rect(0, 702 - 1080, 2205) sw = 1080 sh = 1503
11:34:12.088                               D  performSurfaceTransaction RenderWorker position = [0, 702, 1080, 2205] surfaceSize = 1080x1503
11:34:12.088                               I  applyTransactionOnVriDraw: vri = ViewRootImpl@aa09621[ParcelLoadingActivity] fRS = false t = 0xb400007c18752b70 android.view.SurfaceView.performSurfaceTransaction:959 android.view.SurfaceView.updateSurface:1105 android.view.SurfaceView.lambda$new$0$android-view-SurfaceView:200 
11:34:12.088 ViewRootImpl@...ingActivity]  I  applyTransactionOnDraw: mRemoved = false isHardwareEnabled = true t = 0xb400007c18752b70android.view.SurfaceView.applyTransactionOnVriDraw:2048 android.view.SurfaceView.performSurfaceTransaction:959 android.view.SurfaceView.updateSurface:1105 android.view.SurfaceView.lambda$new$0$android-view-SurfaceView:200 android.view.SurfaceView$$ExternalSyntheticLambda5.onPreDraw:2 
11:34:12.088 SurfaceView@9de85e4           I  updateSurface: mVisible = true mSurface.isValid() = true
11:34:12.088                               I  updateSurface: mSurfaceCreated = false surfaceChanged = true visibleChanged = true
11:34:12.088                               I  visibleChanged -- surfaceCreated
11:34:12.088                               I  surfaceCreated 1 #8 com.enioka.scanner.camera.CameraPreviewSurfaceView{9de85e4 V.E...... ......ID 0,0-1080,1503}
11:34:12.089 BARCODE                       I  Setting targeting rect at (left,top - right,bottom) Rect(108, 451 - 972, 605)
11:34:12.089                               I  Targeting view is positioned inside a w*h 1080*1503 view
11:34:12.089                               I  The preview surface view is at (top, left, bottom, right) 0,0 - 1503,1080
11:34:12.089                               I  Targeting overlay added
11:34:12.089                               D  Preview surface created, camera will be initialized soon 48409165
11:34:12.091                               D  INFO_SUPPORTED_HARDWARE_LEVEL LIMITED
11:34:12.091                               I  Camera supports flash: true
11:34:12.091                               I  Using memory limit (MB): 256
11:34:12.091                               I  Looking for the ideal preview resolution. View ratio is 1.3916667. (view is h*w 1503*1080)
11:34:12.092                               D    supports preview resolution 3840*2160 - 1.7777778
11:34:12.092                               D        Resolution is removed - it is higher than the maximum resolution configured in the view (1080)
11:34:12.092                               D    supports preview resolution 2336*1080 - 2.162963
11:34:12.092                               D        Resolution is removed - ratio is distant from ideal ratio by 0.77 which is more than parameter 0.3
11:34:12.092                               D    supports preview resolution 1920*1080 - 1.7777778
11:34:12.092                               D        Resolution is removed - ratio is distant from ideal ratio by 0.39 which is more than parameter 0.3
11:34:12.092                               D    supports preview resolution 1920*888 - 2.162162
11:34:12.092                               D        Resolution is removed - ratio is distant from ideal ratio by 0.77 which is more than parameter 0.3
11:34:12.092                               D    supports preview resolution 1440*1440 - 1.0
11:34:12.092                               D        Resolution is removed - it is higher than the maximum resolution configured in the view (1080)
11:34:12.092                               D    supports preview resolution 1440*1080 - 1.3333334
11:34:12.092                               D    supports preview resolution 1280*720 - 1.7777778
11:34:12.092                               D        Resolution is removed - ratio is distant from ideal ratio by 0.39 which is more than parameter 0.3
11:34:12.092                               D    supports preview resolution 1088*1088 - 1.0
11:34:12.092                               D        Resolution is removed - it is higher than the maximum resolution configured in the view (1080)
11:34:12.092                               D    supports preview resolution 960*720 - 1.3333334
11:34:12.092                               D    supports preview resolution 720*720 - 1.0
11:34:12.092                               D        Resolution is removed - ratio is distant from ideal ratio by 0.39 which is more than parameter 0.3
11:34:12.092                               D    supports preview resolution 720*480 - 1.5
11:34:12.092                               D    supports preview resolution 640*480 - 1.3333334
11:34:12.092                               D    supports preview resolution 512*384 - 1.3333334
11:34:12.092                               D    supports preview resolution 512*288 - 1.7777778
11:34:12.092                               D        Resolution is removed - ratio is distant from ideal ratio by 0.39 which is more than parameter 0.3
11:34:12.092                               D    supports preview resolution 480*222 - 2.162162
11:34:12.093                               D        Resolution is removed - ratio is distant from ideal ratio by 0.77 which is more than parameter 0.3
11:34:12.093                               D    supports preview resolution 384*384 - 1.0
11:34:12.093                               D        Resolution is removed - ratio is distant from ideal ratio by 0.39 which is more than parameter 0.3
11:34:12.093                               D    supports preview resolution 352*288 - 1.2222222
11:34:12.093                               D    supports preview resolution 320*240 - 1.3333334
11:34:12.093                               D    supports preview resolution 176*144 - 1.2222222
11:34:12.093                               V  Allowed preview sizes (acceptable ratio): 
11:34:12.093                               V    176*144 - 1.2222222
11:34:12.093                               V    320*240 - 1.3333334
11:34:12.093                               V    352*288 - 1.2222222
11:34:12.093                               V    512*384 - 1.3333334
11:34:12.093                               V    640*480 - 1.3333334
11:34:12.093                               V    720*480 - 1.5
11:34:12.093                               V    960*720 - 1.3333334
11:34:12.093                               V    1440*1080 - 1.3333334
11:34:12.093                               I  Camera uses preview resolution: 1440*1080
11:34:12.093                               I  Camera uses FPS range: [30, 30]
11:34:12.093                               I  Using AF mode: CONTROL_AF_MODE_CONTINUOUS_PICTURE
11:34:12.093                               I  Supported autofocus zones: 1
11:34:12.093                               I  Using AB mode: CONTROL_AE_ANTIBANDING_MODE_AUTO
11:34:12.093                               I  Selected camera id: 0
11:34:12.093 CameraManagerGlobal           I  postSingleTorchUpdate device: camera id 0 status 1
11:34:12.094 SurfaceView@9de85e4           I  surfaceChanged -- format=4 w=1080 h=1503
11:34:12.094                               I  surfaceChanged (1080,1503) 1 #8 com.enioka.scanner.camera.CameraPreviewSurfaceView{9de85e4 V.E...... ......ID 0,0-1080,1503}
11:34:12.094 BARCODE                       I  surface changed 48409165
11:34:12.094 SurfaceView@9de85e4           I  surfaceRedrawNeeded
11:34:12.094                               V  Layout: x=0 y=702 w=1080 h=1503, frame=Rect(0, 0 - 1080, 1503)
11:34:12.094 ViewRootImpl@...ingActivity]  I  Setup new sync id=0
11:34:12.094                               I  Setting syncFrameCallback
11:34:12.094 SurfaceSyncer                 E  Failed to find sync for id=0
11:34:12.094 ViewRootImpl@...ingActivity]  I  registerCallbacksForSync syncBuffer=false
11:34:12.098 SurfaceView@9de85e4           D  updateSurfacePosition RenderWorker, frameNr = 1, position = [0, 702, 1080, 2205] surfaceSize = 1080x1503
11:34:12.098                               I  uSP: rtp = Rect(0, 702 - 1080, 2205) rtsw = 1080 rtsh = 1503
11:34:12.098                               I  onSSPAndSRT: pl = 0 pt = 702 sx = 1.0 sy = 1.0
11:34:12.098                               I  aOrMT: ViewRootImpl@aa09621[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@f02f432 fN = 1 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 android.graphics.RenderNode$CompositePositionUpdateListener.positionChanged:373 
11:34:12.098 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c1874ddd0 mBlastBufferQueue=0xb400007c688712e0 fn= 1 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 
11:34:12.098                               I  mWNT: t=0xb400007c18752b70 mBlastBufferQueue=0xb400007c688712e0 fn= 1 caller= android.view.ViewRootImpl.lambda$applyTransactionOnDraw$11$android-view-ViewRootImpl:12865 android.view.ViewRootImpl$$ExternalSyntheticLambda1.onFrameDraw:4 android.graphics.HardwareRenderer$FrameDrawingCallback.onFrameDraw:924 
11:34:12.098                               I  Received frameDrawingCallback syncResult=0 frameNum=1.
11:34:12.098                               I  Setting up sync and frameCommitCallback
11:34:12.102 BLASTBufferQueue              I  [ViewRootImpl@aa09621[ParcelLoadingActivity]#37](f:0,a:0) onFrameAvailable the first frame is available
11:34:12.102                               D  [ViewRootImpl@aa09621[ParcelLoadingActivity]#37](f:0,a:1) acquireNextBufferLocked size=1080x2340 mFrameNumber=1 applyTransaction=true mTimestamp=21494874759818(auto) mPendingTransactions.size=0 graphicBufferId=138027363991793 transform=0
11:34:12.103 ViewRootImpl@...ingActivity]  I  Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
11:34:12.103 OpenGLRenderer                D  CFMS:: SetUp Pid : 32137    Tid : 32166
11:34:12.103 Parcel                        W  Expecting binder but got null!
11:34:12.104 ViewRootImpl@...ingActivity]  I  onSyncComplete
11:34:12.104                               I  setupSync seqId=0 mSyncId=0 fn=1 caller=android.view.ViewRootImpl$$ExternalSyntheticLambda11.accept:6 android.window.SurfaceSyncer.lambda$setupSync$1$android-window-SurfaceSyncer:128 android.window.SurfaceSyncer$$ExternalSyntheticLambda1.accept:8 android.window.SurfaceSyncer$SyncSet.checkIfSyncIsComplete:382 android.window.SurfaceSyncer$SyncSet.markSyncReady:359 android.window.SurfaceSyncer.markSyncReady:151 android.view.ViewRootImpl.performTraversals:4503 
11:34:12.104                               I  reportDrawFinished seqId=0 mSyncId=-1 fn=1 mSurfaceChangedTransaction=0xb400007c18753110
11:34:12.104 ViewRootImpl@...ingActivity]  I  MSG_WINDOW_FOCUS_CHANGED 0 0
11:34:12.107 BARCODE                       I  Left: 0 - Top : 451 - Right: 1080 - bottom: 605
11:34:12.107                               I  target was laid out
11:34:12.109 ViewRootImpl@...ingActivity]  I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.119                               I  Received frameCommitCallback didProduceBuffer=true
11:34:12.127 CameraManagerGlobal           I  onTorchModeChanged
11:34:12.127 BARCODE                       D  Torch status has changed to: false
11:34:12.128 SurfaceView@9de85e4           D  setFixedSize -1x-1 -> 1440x1080
11:34:12.128 BARCODE                       D  Trying to open camera from CameraManager 48409165
11:34:12.134 CameraManagerGlobal           I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.134                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.134                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.134                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.134                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.134                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.134                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.135                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.135                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.135                               I  postSingleTorchUpdate device: camera id 0 status 0
11:34:12.148                               I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.geodis.mobiprep API Level 2
11:34:12.148 BARCODE                       D  Camera device not ready yet
11:34:12.148                               V  CameraDevice.StateCallback.onOpened 48409165
11:34:12.148 SurfaceView@9de85e4           I  finishedDrawing
11:34:12.148 BARCODE                       I  Initializing or reinitializing preview analysis loop
11:34:12.148 BufferQueueConsumer           D  [](id:7d8900000031,api:0,p:-1,c:32137) connect: controlledByApp=true
11:34:12.149 BARCODE                       D  Capture session creation begins
11:34:12.153 SurfaceView@9de85e4           I  Changes: creating=false format=false size=true visible=false alpha=false hint=false mUseAlpha=false visible=false left=false top=false
11:34:12.153                               I  165578212 Cur surface: Surface(name=null)/@0x1a88ee8
11:34:12.155 BLASTBufferQueue              I  update, w= 1440 h= 1080 mName = null mNativeObject= 0xb400007c688b8560 sc.mNativeObject= 0xb400007be877f7f0 format= 4 caller= android.view.SurfaceView.setBufferSize:1304 android.view.SurfaceView.performSurfaceTransaction:918 android.view.SurfaceView.updateSurface:1105 android.view.SurfaceView.setFrame:525 android.view.View.layout:24966 android.widget.FrameLayout.layoutChildren:332 
11:34:12.155 SurfaceView@9de85e4           I  pST: sr = Rect(0, 702 - 1080, 2205) sw = 1440 sh = 1080
11:34:12.155                               D  performSurfaceTransaction RenderWorker position = [0, 702, 1080, 2205] surfaceSize = 1440x1080
11:34:12.156                               I  applyTransactionOnVriDraw: vri = ViewRootImpl@aa09621[ParcelLoadingActivity] fRS = false t = 0xb400007c1873a630 android.view.SurfaceView.performSurfaceTransaction:959 android.view.SurfaceView.updateSurface:1105 android.view.SurfaceView.setFrame:525 
11:34:12.156 ViewRootImpl@...ingActivity]  I  applyTransactionOnDraw: mRemoved = false isHardwareEnabled = true t = 0xb400007c1873a630android.view.SurfaceView.applyTransactionOnVriDraw:2048 android.view.SurfaceView.performSurfaceTransaction:959 android.view.SurfaceView.updateSurface:1105 android.view.SurfaceView.setFrame:525 android.view.View.layout:24966 
11:34:12.157 SurfaceView@9de85e4           I  updateSurface: mVisible = true mSurface.isValid() = true
11:34:12.157                               I  updateSurface: mSurfaceCreated = true surfaceChanged = false visibleChanged = false
11:34:12.157                               I  surfaceChanged -- format=4 w=1440 h=1080
11:34:12.157                               I  surfaceChanged (1440,1080) 1 #5 com.enioka.scanner.camera.CameraPreviewSurfaceView{9de85e4 V.E...... ......ID 0,0-1080,1503}
11:34:12.157 BARCODE                       I  surface changed 48409165
11:34:12.157 SurfaceView@9de85e4           I  surfaceRedrawNeeded
11:34:12.158                               V  Layout: x=0 y=702 w=1080 h=1503, frame=Rect(0, 0 - 1440, 1080)
11:34:12.161                               D  updateSurfacePosition RenderWorker, frameNr = 3, position = [0, 702, 1080, 2205] surfaceSize = 1440x1080
11:34:12.161                               I  uSP: rtp = Rect(0, 702 - 1080, 2205) rtsw = 1440 rtsh = 1080
11:34:12.161                               I  onSSPAndSRT: pl = 0 pt = 702 sx = 0.75 sy = 1.3916667
11:34:12.161                               I  aOrMT: ViewRootImpl@aa09621[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@3425df5 fN = 3 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 android.graphics.RenderNode$CompositePositionUpdateListener.positionChanged:373 
11:34:12.162 CameraManagerGlobal           I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162                               I  onTorchModeUnavailable
11:34:12.162 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c187421f0 mBlastBufferQueue=0xb400007c688712e0 fn= 3 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 
11:34:12.163                               I  mWNT: t=0xb400007c1873a630 mBlastBufferQueue=0xb400007c688712e0 fn= 3 caller= android.view.ViewRootImpl.lambda$applyTransactionOnDraw$11$android-view-ViewRootImpl:12865 android.view.ViewRootImpl$$ExternalSyntheticLambda1.onFrameDraw:4 android.graphics.HardwareRenderer$FrameDrawingCallback.onFrameDraw:924 
11:34:12.163                               I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.170                               I  Received frameCommitCallback didProduceBuffer=true
11:34:12.227 BARCODE                       D  Configuration request sent
11:34:12.227                               D  Preview analysis loop start method done
11:34:12.227                               I  Capture session is now configured and will start the capture request loop 48409165
11:34:12.227                               D  Image reader already created
11:34:12.227                               D  Using metering zone (670,490) (770,590)
11:34:12.228                               D  Setting AF mode to 4
11:34:12.228 SurfaceView@9de85e4           I  finishedDrawing
11:34:12.228 ViewRootImpl@...ingActivity]  I  MSG_WINDOW_FOCUS_CHANGED 1 0
11:34:12.229                               I  mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb400007cf8886440}
11:34:12.230 BARCODE                       I  Camera repeating capture request was set up 48409165
11:34:12.230                               D  Capture session has nothing to process 48409165
11:34:12.230                               D  Capture session is getting active 48409165
11:34:12.232 InputMethodManager            D  startInputInner - Id : 0
11:34:12.232                               I  startInputInner - mService.startInputOrWindowGainedFocus
11:34:12.234 CameraManagerGlobal           I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.geodis.mobiprep API Level 2
11:34:12.294 geodis.mobiprep               I  NativeAlloc concurrent copying GC freed 237661(8558KB) AllocSpace objects, 40(9512KB) LOS objects, 49% free, 10MB/21MB, paused 148us,262us total 145.789ms
11:34:12.296 ViewRootImpl@...ingActivity]  I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.300                               I  Received frameCommitCallback didProduceBuffer=true
11:34:12.300 OpenGLRenderer                D  setSurface called with nullptr
11:34:12.305 ViewRootImpl@...ingActivity]  I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.311                               I  Received frameCommitCallback didProduceBuffer=true
11:34:12.314                               I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.314 InputTransport                D  Input channel destroyed: 'ClientS', fd=190
11:34:12.320 ViewRootImpl@...ingActivity]  I  Received frameCommitCallback didProduceBuffer=true
11:34:12.322                               I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.345                               I  Received frameCommitCallback didProduceBuffer=true
11:34:12.346                               I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.361                               I  Received frameCommitCallback didProduceBuffer=true
11:34:12.547 ViewRootImpl@...ingActivity]  I  handleAppVisibility mAppVisible = true visible = false
11:34:12.564 OpenGLRenderer                D  setSurface called with nullptr
11:34:12.564                               D  setSurface() destroyed EGLSurface
11:34:12.564                               D  destroyEglSurface
11:34:12.565 ViewRootImpl@...ingActivity]  I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=true mForceNextWindowRelayout=false params=null
11:34:12.571 BLASTBufferQueue              D  [ViewRootImpl@fd8bc31[MainLoadingActivity]#36](f:0,a:1) destructor()
11:34:12.571 BufferQueueConsumer           D  [ViewRootImpl@fd8bc31[MainLoadingActivity]#36(BLAST Consumer)36](id:7d890000002e,api:0,p:-1,c:32137) disconnect
11:34:12.571 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)8 dur=5 res=0x2 s={false 0x0} ch=true seqId=0
11:34:12.572                               I  stopped(true) old = false
11:34:12.572                               I  WindowStopped on com.geodis.mobiprep/com.geodis.mobiprep.MainLoadingActivity set to true
11:34:12.574 ScannerActivity               I  Scanner activity is being stopped 113660892
11:34:12.576 MSHandlerLifeCycle            I  removeMultiSplitHandler: no exist. decor=DecorView@e495a47[MainLoadingActivity]
11:34:12.584 ViewRootImpl@...ingActivity]  I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=pan} ty=BASE_APPLICATION wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                vsysui=500
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
11:34:12.588                               I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)8 dur=4 res=0x2 s={false 0x0} ch=false seqId=0
11:34:12.627 ViewLayoutInspector           W  java.lang.IllegalArgumentException: Surface isn't valid, source.isValid() == false
                                                at android.view.PixelCopy.request(PixelCopy.java:181)
                                                at com.android.tools.agent.appinspection.framework.SynchronousPixelCopy.request(SynchronousPixelCopy.java:64)
                                                at com.android.tools.agent.appinspection.framework.ViewExtensionsKt.takeScreenshot(ViewExtensions.kt:80)
                                                at com.android.tools.agent.appinspection.ViewLayoutInspector$registerScreenshotCallback$doCapture$1$1.run(ViewLayoutInspector.kt:472)
                                                at com.android.tools.agent.appinspection.ViewLayoutInspector.executeCapture(ViewLayoutInspector.kt:552)
                                                at com.android.tools.agent.appinspection.ViewLayoutInspector.access$executeCapture(ViewLayoutInspector.kt:103)
                                                at com.android.tools.agent.appinspection.ViewLayoutInspector$startCapturing$captureExecutor$1$1.run(ViewLayoutInspector.kt:328)
                                                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
                                                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
                                                at java.lang.Thread.run(Thread.java:1012)
11:34:12.630 ViewRootImpl@...ingActivity]  I  Creating frameCommitCallback commitCallbacks size=1
11:34:12.637                               I  Received frameCommitCallback didProduceBuffer=true
11:34:12.799 BLASTBufferQueue              I  [SurfaceView[com.geodis.mobiprep/com.geodis.mobiprep.ParcelLoadingActivity]@0#38](f:0,a:0) onFrameAvailable the first frame is available
11:34:12.800                               D  [SurfaceView[com.geodis.mobiprep/com.geodis.mobiprep.ParcelLoadingActivity]@0#38](f:0,a:1) acquireNextBufferLocked size=1440x1080 mFrameNumber=1 applyTransaction=true mTimestamp=21495612923514 mPendingTransactions.size=0 graphicBufferId=138027363991796 transform=4
11:34:12.801 BARCODE                       D  Creating new buffer (MB) 1 count is 1
11:34:12.835                               D  FPS: 9.304227E-5 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:13.868                               D  FPS: 30.00079 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:14.905                               D  FPS: 29.912235 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:15.940                               D  FPS: 29.927704 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:16.973                               D  FPS: 30.021404 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:18.010                               D  FPS: 29.886911 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:19.051                               D  FPS: 29.784975 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:20.116                               D  FPS: 30.03756 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:21.153                               D  FPS: 29.911993 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:22.191                               D  FPS: 29.865381 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:23.258                               D  FPS: 29.978905 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:24.294                               D  FPS: 29.919832 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:25.331                               D  FPS: 29.895142 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:26.368                               D  FPS: 29.892408 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:27.436                               D  FPS: 29.976501 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:28.472                               D  FPS: 29.905846 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:29.508                               D  FPS: 29.935228 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:30.543                               D  FPS: 29.945156 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:31.580                               D  FPS: 29.882992 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:32.618                               D  FPS: 29.89175 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:33.653                               D  FPS: 29.942451 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:34.687                               D  FPS: 29.965733 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:35.723                               D  FPS: 29.941996 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:36.762                               D  FPS: 29.825016 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:37.799                               D  FPS: 29.899443 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:38.835                               D  FPS: 29.925129 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:39.871                               D  FPS: 29.912197 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:40.906                               D  FPS: 29.950056 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:41.941                               D  FPS: 29.95137 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:42.977                               D  FPS: 29.941515 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:44.015                               D  FPS: 29.857073 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:45.050                               D  FPS: 29.951237 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:46.087                               D  FPS: 29.896805 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:47.120                               D  FPS: 29.999458 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:48.162                               D  FPS: 29.753565 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:49.194                               D  FPS: 30.051052 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:50.230                               D  FPS: 29.916092 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:51.264                               D  FPS: 29.969635 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:52.302                               D  FPS: 29.866274 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:53.339                               D  FPS: 29.912176 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:54.375                               D  FPS: 29.909084 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:55.444                               D  FPS: 29.926075 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:56.483                               D  FPS: 29.85908 - Pool size: 8. Current analysis queue depth: 0. Current res: 1440*1080. Statistics are: {}
11:34:57.344 InputTransport                D  Input channel destroyed: 'ClientS', fd=168
abelatar commented 1 year ago

@DaSpood La hauteur de CameraBarcodeScanner était fixée à 200dp. Après l'avoir modifiée à wrap_content:

        <com.enioka.scanner.camera.CameraBarcodeScanView
            android:id="@+id/camera_scan_view"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:forceCameraApiVersion="Auto"
            app:readerMode="Auto"
            android:layout_below="@id/bar"
            app:targetStrokeWidth="5"
            app:targetColor="@color/colorRed"
            android:layout_alignParentBottom="true" />

J'arrive à scanner, mais après un certain nombre de scans, la librairie s'arrête. Voici les traces A34 :

15:57:54.089 ViewRootImpl@dd42c3b[Toast]   I  onSyncComplete
15:57:54.089                               I  setupSync seqId=0 mSyncId=0 fn=1 caller=android.view.ViewRootImpl$$ExternalSyntheticLambda11.accept:6 android.window.SurfaceSyncer.lambda$setupSync$1$android-window-SurfaceSyncer:128 android.window.SurfaceSyncer$$ExternalSyntheticLambda1.accept:8 android.window.SurfaceSyncer$SyncSet.checkIfSyncIsComplete:382 android.window.SurfaceSyncer$SyncSet.markSyncReady:359 android.window.SurfaceSyncer.markSyncReady:151 android.view.ViewRootImpl.performTraversals:4503 
15:57:54.090                               I  reportDrawFinished seqId=0 mSyncId=-1 fn=1 mSurfaceChangedTransaction=0xb400007c1874d050
15:57:54.095 ViewRootImpl@...ingActivity]  I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=pan} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
15:57:54.104                               I  updateBlastSurfaceIfNeeded mBlastBufferQueue=0xb400007c68856c40 isSameSurfaceControl=true
15:57:54.105 BLASTBufferQueue              I  update, w= 1080 h= 2340 mName = ViewRootImpl@bc75c7e[ParcelLoadingActivity] mNativeObject= 0xb400007c68856c40 sc.mNativeObject= 0xb400007be8777970 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 
15:57:54.105 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=9 res=0x0 s={true 0xb400007cf87b38a0} ch=false seqId=0
15:57:54.106 SurfaceView@7ea3ff1           D  windowPositionLost, frameNr = 369
15:57:54.107                               I  aOrMT: ViewRootImpl@bc75c7e[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@d8c1131 fN = 369 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1568 android.graphics.RenderNode$CompositePositionUpdateListener.positionLost:380 
15:57:54.107 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c18744830 mBlastBufferQueue=0xb400007c68856c40 fn= 369 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1568 
15:57:54.213                               I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=resize} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
15:57:54.220                               I  updateBlastSurfaceIfNeeded mBlastBufferQueue=0xb400007c68856c40 isSameSurfaceControl=true
15:57:54.220 BLASTBufferQueue              I  update, w= 1080 h= 2340 mName = ViewRootImpl@bc75c7e[ParcelLoadingActivity] mNativeObject= 0xb400007c68856c40 sc.mNativeObject= 0xb400007be8778680 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 
15:57:54.220 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=7 res=0x0 s={true 0xb400007cf87b38a0} ch=false seqId=0
15:57:54.223 SurfaceView@7ea3ff1           D  updateSurfacePosition RenderWorker, frameNr = 370, position = [0, 233, 1080, 2205] surfaceSize = 1280x720
15:57:54.223                               I  uSP: rtp = Rect(0, 233 - 1080, 2205) rtsw = 1280 rtsh = 720
15:57:54.223                               I  onSSPAndSRT: pl = 0 pt = 233 sx = 0.84375 sy = 2.738889
15:57:54.223                               I  aOrMT: ViewRootImpl@bc75c7e[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@e9b719a fN = 370 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 android.graphics.RenderNode$CompositePositionUpdateListener.positionChanged:373 
15:57:54.224 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c1874d290 mBlastBufferQueue=0xb400007c68856c40 fn= 370 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 
15:57:54.289 ToneGenerator                 I  startTone: try to start toneType 27 with volume=1.000000
15:57:54.334 BARCODE                       D  barcode read: JVGTS5437650876115114
15:57:54.334 CamBarcodeScanVScanner        V  handleScanResult JVGTS5437650876115114 - CODE128
15:57:54.334 ScannerActivity               D  Received barcode from scanner: JVGTS5437650876115114 - CODE128
15:57:54.334 ParcelLoadingActivity         I  onData handled in ParcelLoadingActivity
15:57:54.335 BARCODE                       I  Stopping capture session
15:57:54.335 BufferQueueConsumer           D  [ImageReader-1280x720f23m18-31089-94](id:7971000000b9,api:4,p:1048,c:31089) disconnect
15:57:54.343 Toast                         I  setView: it's a custom toast
15:57:54.346                               V  show: caller = com.geodis.mobiprep.MobiprepActivity.showToast:646 
15:57:54.347 BufferQueueProducer           E  [ImageReader-1280x720f23m18-31089-94](id:7971000000b9,api:4,p:1048,c:31089) queueBuffer: BufferQueue has been abandoned
15:57:54.351 BARCODE                       I  Initializing or reinitializing preview analysis loop
15:57:54.351 BufferQueueConsumer           D  [](id:7971000000bb,api:0,p:-1,c:31089) connect: controlledByApp=true
15:57:54.352 BARCODE                       D  Capture session creation begins
15:57:54.378 BufferQueueProducer           E  [ImageReader-1280x720f23m18-31089-94](id:7971000000b9,api:4,p:1048,c:31089) queueBuffer: BufferQueue has been abandoned
15:57:54.411                               E  [ImageReader-1280x720f23m18-31089-94](id:7971000000b9,api:4,p:1048,c:31089) queueBuffer: BufferQueue has been abandoned
15:57:54.421 AudioTrack                    D  stop(132): called with 4864 frames delivered
15:57:54.443 BufferQueueProducer           E  [ImageReader-1280x720f23m18-31089-94](id:7971000000b9,api:4,p:1048,c:31089) queueBuffer: BufferQueue has been abandoned
15:57:54.478                               E  [ImageReader-1280x720f23m18-31089-94](id:7971000000b9,api:4,p:1048,c:31089) queueBuffer: BufferQueue has been abandoned
15:57:54.512                               E  [ImageReader-1280x720f23m18-31089-94](id:7971000000b9,api:4,p:1048,c:31089) queueBuffer: BufferQueue has been abandoned
15:57:54.515 CameraManagerGlobal           I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.geodis.mobiprep API Level 2
15:57:54.600 BARCODE                       D  Configuration request sent
15:57:54.600                               D  Preview analysis loop start method done
15:57:54.600 geodis.mobiprep               W  Long monitor contention with owner main (31089) at void android.hardware.camera2.impl.CameraDeviceImpl.waitUntilIdle()(CameraDeviceImpl.java:1402) waiters=1 in void android.hardware.camera2.impl.CameraDeviceImpl$CameraDeviceCallbacks.onCaptureStarted(android.hardware.camera2.impl.CaptureResultExtras, long) for 247ms
15:57:54.601 BARCODE                       I  Capture session is now configured and will start the capture request loop 60741590
15:57:54.601 ViewRootImpl@...ingActivity]  I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=pan} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
15:57:54.602 BARCODE                       D  Using metering zone (590,310) (690,410)
15:57:54.603                               D  Setting AF mode to 4
15:57:54.607 ViewRootImpl@...ingActivity]  I  updateBlastSurfaceIfNeeded mBlastBufferQueue=0xb400007c68856c40 isSameSurfaceControl=true
15:57:54.607 BLASTBufferQueue              I  update, w= 1080 h= 2340 mName = ViewRootImpl@bc75c7e[ParcelLoadingActivity] mNativeObject= 0xb400007c68856c40 sc.mNativeObject= 0xb400007be877f950 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 
15:57:54.607 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=6 res=0x0 s={true 0xb400007cf87b38a0} ch=false seqId=0
15:57:54.608 SurfaceView@7ea3ff1           D  windowPositionLost, frameNr = 371
15:57:54.608                               I  aOrMT: ViewRootImpl@bc75c7e[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@d8c1131 fN = 371 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1568 android.graphics.RenderNode$CompositePositionUpdateListener.positionLost:380 
15:57:54.608 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c18744830 mBlastBufferQueue=0xb400007c68856c40 fn= 371 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1568 
15:57:54.609 BpBinder                      I  onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
15:57:54.611 OpenGLRenderer                D  setSurface called with nullptr
15:57:54.611                               D  setSurface() destroyed EGLSurface
15:57:54.611                               D  destroyEglSurface
15:57:54.612 ViewRootImpl@dd42c3b[Toast]   I  dispatchDetachedFromWindow
15:57:54.612 BLASTBufferQueue              D  [ViewRootImpl@dd42c3b[Toast]#91](f:0,a:1) destructor()
15:57:54.612 BufferQueueConsumer           D  [ViewRootImpl@dd42c3b[Toast]#91(BLAST Consumer)91](id:7971000000ba,api:0,p:-1,c:31089) disconnect
15:57:54.612 BARCODE                       I  Camera repeating capture request was set up 60741590
15:57:54.612                               D  Capture session has nothing to process 60741590
15:57:54.612                               D  Capture session is getting active 60741590
15:57:54.612                               I  Capture session has closed 139878768
15:57:54.614 CameraManagerGlobal           I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.geodis.mobiprep API Level 2
15:57:54.620 InputTransport                D  Input channel destroyed: '6cdb190', fd=113
15:57:54.633 ViewRootImpl@...ingActivity]  I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=resize} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
15:57:54.644                               I  updateBlastSurfaceIfNeeded mBlastBufferQueue=0xb400007c68856c40 isSameSurfaceControl=true
15:57:54.644 BLASTBufferQueue              I  update, w= 1080 h= 2340 mName = ViewRootImpl@bc75c7e[ParcelLoadingActivity] mNativeObject= 0xb400007c68856c40 sc.mNativeObject= 0xb400007be877b1d0 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 
15:57:54.644 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=10 res=0x0 s={true 0xb400007cf87b38a0} ch=false seqId=0
15:57:54.650 SurfaceView@7ea3ff1           D  updateSurfacePosition RenderWorker, frameNr = 372, position = [0, 233, 1080, 2205] surfaceSize = 1280x720
15:57:54.650                               I  uSP: rtp = Rect(0, 233 - 1080, 2205) rtsw = 1280 rtsh = 720
15:57:54.650                               I  onSSPAndSRT: pl = 0 pt = 233 sx = 0.84375 sy = 2.738889
15:57:54.651                               I  aOrMT: ViewRootImpl@bc75c7e[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@e9b719a fN = 372 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 android.graphics.RenderNode$CompositePositionUpdateListener.positionChanged:373 
15:57:54.651 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c1874d290 mBlastBufferQueue=0xb400007c68856c40 fn= 372 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 
15:57:54.652 Toast                         V  HANDLE SHOW: android.widget.Toast$TN@b17cce9 mView=null mNextView=android.widget.LinearLayout{ec76d6e V.E...... ......I. 0,0-0,0 #7f08025a app:id/toast_root}
15:57:54.653 ToastPresenter                V  sipHeight = -135
15:57:54.654                               V  yOffset = 180
15:57:54.658 NativeCustomFrequencyManager  D  [NativeCFMS] BpCustomFrequencyManager::BpCustomFrequencyManager()
15:57:54.665 InsetsController              D  onStateChanged: InsetsState: {mDisplayFrame=Rect(0, 0 - 1080, 2340), mDisplayCutout=DisplayCutout{insets=Rect(0, 75 - 0, 0) waterfall=Insets{left=0, top=0, right=0, bottom=0} boundingRect={Bounds=[Rect(0, 0 - 0, 0), Rect(468, 0 - 612, 75), Rect(0, 0 - 0, 0), Rect(0, 0 - 0, 0)]} cutoutPathParserInfo={CutoutPathParserInfo{displayWidth=1080 displayHeight=2340 physicalDisplayWidth=1080 physicalDisplayHeight=2340 density={2.8125} cutoutSpec={M 0,0 H -25.6 V 26.66666666666667 H 25.6 V 0 H 0 Z @dp} rotation={0} scale={1.0} physicalPixelDisplaySizeRatio={1.0}}}}, mRoundedCorners=RoundedCorners{[RoundedCorner{position=TopLeft, radius=90, center=Point(90, 90)}, RoundedCorner{position=TopRight, radius=90, center=Point(990, 90)}, RoundedCorner{position=BottomRight, radius=90, center=Point(990, 2250)}, RoundedCorner{position=BottomLeft, radius=90, center=Point(90, 2250)}]}  mRoundedCornerFrame=Rect(0, 0 - 0, 0), mPrivacyIndicatorBounds=PrivacyIndicatorBounds {static bounds=Rect(956, 0 - 1080, 75) rotation=0}, mSources= { InsetsSource: {mType=ITYPE_NAVIGATION_BAR, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_GESTURES, mFrame=[0,0][0,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_GESTURES, mFrame=[1080,0][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_MANDATORY_GESTURES, mFrame=[0,0][1080,109], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_MANDATORY_GESTURES, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_LEFT_DISPLAY_CUTOUT, mFrame=[0,0][-100000,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_TOP_DISPLAY_CUTOUT, mFrame=[0,0][1080,75], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_RIGHT_DISPLAY_CUTOUT, mFrame=[100000,0][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_DISPLAY_CUTOUT, mFrame=[0,100000][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false}, InsetsSource: {mType=ITYPE_BOTTOM_TAPPABLE_ELEMENT, mFrame=[0,2205][1080,2340], mVisible=true, mInsetsRoundedCornerFrame=false} } host=Toast from=android.view.ViewRootImpl.setView:1732
15:57:54.668 ViewRootImpl@f554c0f[Toast]   I  setView = android.widget.LinearLayout@ec76d6e TM=true
15:57:54.678                               I  performTraversals params={(0,180)(wrapxwrap) gr=BOTTOM CENTER sim={adjust=pan} ty=TOAST fmt=TRANSLUCENT wanim=0x1030004
                                                fl=1000098
                                                pfl=12000000
                                                bhv=DEFAULT
                                                fitTypes=STATUS_BARS NAVIGATION_BARS CAPTION_BAR
                                                fitIgnoreVis naviIconColor=0}
15:57:54.679                               I  performTraversals mFirst=true windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,180)(wrapxwrap) gr=BOTTOM CENTER sim={adjust=pan} ty=TOAST fmt=TRANSLUCENT wanim=0x1030004
                                                fl=1000098
                                                pfl=12000000
                                                bhv=DEFAULT
                                                fitTypes=STATUS_BARS NAVIGATION_BARS CAPTION_BAR
                                                fitIgnoreVis naviIconColor=0}
15:57:54.688                               I  updateBlastSurfaceIfNeeded mBlastBufferQueue=null isSameSurfaceControl=false
15:57:54.688 BufferQueueConsumer           D  [](id:7971000000bc,api:0,p:-1,c:31089) connect: controlledByApp=false
15:57:54.689 BLASTBufferQueue              I  new BLASTBufferQueue, mName= ViewRootImpl@f554c0f[Toast] mNativeObject= 0xb400007c688677a0 sc.mNativeObject= 0xb400007be874ba20 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 android.view.Choreographer.doCallbacks:923 android.view.Choreographer.doFrame:852 android.view.Choreographer$FrameDisplayEventReceiver.run:1283 
15:57:54.689                               I  update, w= 833 h= 245 mName = ViewRootImpl@f554c0f[Toast] mNativeObject= 0xb400007c688677a0 sc.mNativeObject= 0xb400007be874ba20 format= -3 caller= android.graphics.BLASTBufferQueue.<init>:84 android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2909 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 
15:57:54.689 ViewRootImpl@f554c0f[Toast]   I  Relayout returned: old=(0,75,1080,2205) new=(123,1780,956,2025) req=(833,245)0 dur=9 res=0x3 s={true 0xb400007cf87e11a0} ch=true seqId=0
15:57:54.691                               I  mThreadedRenderer.initialize() mSurface={isValid=true 0xb400007cf87e11a0} hwInitialized=true
15:57:54.691 OpenGLRenderer                D  eglCreateWindowSurface
15:57:54.693 ViewRootImpl@f554c0f[Toast]   I  reportNextDraw android.view.ViewRootImpl.performTraversals:4438 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 android.view.Choreographer$CallbackRecord.run:1309 
15:57:54.693                               I  Setup new sync id=0
15:57:54.693                               I  Setting syncFrameCallback
15:57:54.693                               I  registerCallbacksForSync syncBuffer=false
15:57:54.695                               I  Received frameDrawingCallback syncResult=0 frameNum=1.
15:57:54.695                               I  Setting up sync and frameCommitCallback
15:57:54.698 BLASTBufferQueue              I  [ViewRootImpl@f554c0f[Toast]#92](f:0,a:0) onFrameAvailable the first frame is available
15:57:54.698                               D  [ViewRootImpl@f554c0f[Toast]#92](f:0,a:1) acquireNextBufferLocked size=833x245 mFrameNumber=1 applyTransaction=true mTimestamp=32575852213324(auto) mPendingTransactions.size=0 graphicBufferId=133526238266379 transform=0
15:57:54.698 ViewRootImpl@f554c0f[Toast]   I  Received frameCommittedCallback lastAttemptedDrawFrameNum=1 didProduceBuffer=true
15:57:54.699 OpenGLRenderer                D  CFMS:: SetUp Pid : 31089    Tid : 31125
15:57:54.699 Parcel                        W  Expecting binder but got null!
15:57:54.699 ViewRootImpl@f554c0f[Toast]   I  onSyncComplete
15:57:54.700                               I  setupSync seqId=0 mSyncId=0 fn=1 caller=android.view.ViewRootImpl$$ExternalSyntheticLambda11.accept:6 android.window.SurfaceSyncer.lambda$setupSync$1$android-window-SurfaceSyncer:128 android.window.SurfaceSyncer$$ExternalSyntheticLambda1.accept:8 android.window.SurfaceSyncer$SyncSet.checkIfSyncIsComplete:382 android.window.SurfaceSyncer$SyncSet.markSyncReady:359 android.window.SurfaceSyncer.markSyncReady:151 android.view.ViewRootImpl.performTraversals:4503 
15:57:54.700 ViewRootImpl@...ingActivity]  I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=pan} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
15:57:54.706                               I  updateBlastSurfaceIfNeeded mBlastBufferQueue=0xb400007c68856c40 isSameSurfaceControl=true
15:57:54.707 BLASTBufferQueue              I  update, w= 1080 h= 2340 mName = ViewRootImpl@bc75c7e[ParcelLoadingActivity] mNativeObject= 0xb400007c68856c40 sc.mNativeObject= 0xb400007be8778310 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 
15:57:54.707 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=6 res=0x0 s={true 0xb400007cf87b38a0} ch=false seqId=0
15:57:54.708 SurfaceView@7ea3ff1           D  windowPositionLost, frameNr = 373
15:57:54.708                               I  aOrMT: ViewRootImpl@bc75c7e[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@d8c1131 fN = 373 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1568 android.graphics.RenderNode$CompositePositionUpdateListener.positionLost:380 
15:57:54.708 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c18744830 mBlastBufferQueue=0xb400007c68856c40 fn= 373 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionLost:1568 
15:57:54.709 ViewRootImpl@f554c0f[Toast]   I  reportDrawFinished seqId=0 mSyncId=-1 fn=1 mSurfaceChangedTransaction=0xb400007c18752270
15:57:54.797 ViewRootImpl@...ingActivity]  I  performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=resize} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030309
                                                fl=81810100
                                                pfl=12020040
                                                bhv=DEFAULT
                                                fitSides= naviIconColor=0}
15:57:54.807                               I  updateBlastSurfaceIfNeeded mBlastBufferQueue=0xb400007c68856c40 isSameSurfaceControl=true
15:57:54.807 BLASTBufferQueue              I  update, w= 1080 h= 2340 mName = ViewRootImpl@bc75c7e[ParcelLoadingActivity] mNativeObject= 0xb400007c68856c40 sc.mNativeObject= 0xb400007be8780c90 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301 
15:57:54.807 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,1080,2340) new=(0,0,1080,2340) req=(1080,2340)0 dur=8 res=0x0 s={true 0xb400007cf87b38a0} ch=false seqId=0
15:57:54.811 SurfaceView@7ea3ff1           D  updateSurfacePosition RenderWorker, frameNr = 374, position = [0, 233, 1080, 2205] surfaceSize = 1280x720
15:57:54.811                               I  uSP: rtp = Rect(0, 233 - 1080, 2205) rtsw = 1280 rtsh = 720
15:57:54.812                               I  onSSPAndSRT: pl = 0 pt = 233 sx = 0.84375 sy = 2.738889
15:57:54.812                               I  aOrMT: ViewRootImpl@bc75c7e[ParcelLoadingActivity] t = android.view.SurfaceControl$Transaction@e9b719a fN = 374 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 android.graphics.RenderNode$CompositePositionUpdateListener.positionChanged:373 
15:57:54.812 ViewRootImpl@...ingActivity]  I  mWNT: t=0xb400007c1874d290 mBlastBufferQueue=0xb400007c68856c40 fn= 374 caller= android.view.SurfaceView.applyOrMergeTransaction:1455 android.view.SurfaceView.-$$Nest$mapplyOrMergeTransaction:0 android.view.SurfaceView$SurfaceViewPositionUpdateListener.positionChanged:1537 
15:57:54.883 ToneGenerator                 I  startTone: try to start toneType 27 with volume=1.000000
15:57:54.928 BARCODE                       D  barcode read: JVGTS5437650876115114
15:57:54.929                               D  FPS: 3.4140418 - Pool size: 8. Current analysis queue depth: 0. Current res: 1280*720. Statistics are: {Point(512, 288)=20, Point(1280, 720)=48, Point(1920, 1080)=8}
15:57:54.929                               I  Changing preview resolution from 1280*720 to 512*288
15:57:54.929                               D  New preview resolution set
15:57:54.929                               I  Stopping capture session
15:57:54.929 CamBarcodeScanVScanner        V  handleScanResult JVGTS5437650876115114 - CODE128
15:57:54.929 ScannerActivity               D  Received barcode from scanner: JVGTS5437650876115114 - CODE128
15:57:54.929 BufferQueueConsumer           D  [ImageReader-1280x720f23m18-31089-95](id:7971000000bb,api:4,p:1048,c:31089) disconnect
15:57:54.929 ParcelLoadingActivity         I  onData handled in ParcelLoadingActivity
15:57:54.931 BARCODE                       I  Stopping capture session
15:57:54.932 AndroidRuntime                D  Shutting down VM
15:57:54.933                               E  FATAL EXCEPTION: main
                                              Process: com.geodis.mobiprep, PID: 31089
                                              java.lang.NullPointerException: Attempt to invoke virtual method 'void android.media.ImageReader.close()' on a null object reference
                                                at com.enioka.scanner.camera.CameraBarcodeScanViewV2.pauseCamera(CameraBarcodeScanViewV2.java:348)
                                                at com.enioka.scanner.camera.CameraBarcodeScanView.pauseCamera(CameraBarcodeScanView.java:174)
                                                at com.enioka.scanner.sdk.camera.CameraBarcodeScanViewScanner.pause(CameraBarcodeScanViewScanner.java:89)
                                                at com.enioka.scanner.api.Scanner.pause(Scanner.java:102)
                                                at com.geodis.mobiprep.ParcelLoadingActivity.onParcelScan(ParcelLoadingActivity.java:285)
                                                at com.geodis.mobiprep.ParcelLoadingActivity.onData(ParcelLoadingActivity.java:394)
                                                at com.enioka.scanner.activities.ScannerCompatActivity.lambda$actuallyOpenCamera$0$ScannerCompatActivity(ScannerCompatActivity.java:402)
                                                at com.enioka.scanner.activities.-$$Lambda$ScannerCompatActivity$7eOTyeNqxVLFta0oCTIf_1G-0bQ.onData(Unknown Source:2)
                                                at com.enioka.scanner.api.proxies.ScannerDataCallbackProxy.lambda$onData$0$ScannerDataCallbackProxy(ScannerDataCallbackProxy.java:23)
                                                at com.enioka.scanner.api.proxies.-$$Lambda$ScannerDataCallbackProxy$Tqa-RHhnwqg8-BwX6OTYsBnTzSQ.run(Unknown Source:6)
                                                at android.os.Handler.handleCallback(Handler.java:942)
                                                at android.os.Handler.dispatchMessage(Handler.java:99)
                                                at android.os.Looper.loopOnce(Looper.java:226)
                                                at android.os.Looper.loop(Looper.java:313)
                                                at android.app.ActivityThread.main(ActivityThread.java:8757)
                                                at java.lang.reflect.Method.invoke(Native Method)
                                                at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
                                                at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
15:57:54.945 Process                       I  Sending signal. PID: 31089 SIG: 9
---------------------------- PROCESS ENDED (31089) for package com.geodis.mobiprep ----------------------------

Ou dans un Xcover 4S


16:40:42.487 InputTransport                D  Input channel constructed: 'a56875a', fd=85
16:40:42.489 ViewRootImpl@ccc9e2d[Toast]   I  setView = android.widget.LinearLayout@f1f3f62 TM=true
16:40:42.517 SurfaceControl                I  assignNativeObject: nativeObject = 0 Surface(name=null)/@0xd6a08f3 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
16:40:42.520 ViewRootImpl@ccc9e2d[Toast]   I  Relayout returned: old=(0,48,720,1280) new=(63,976,656,1152) req=(593,176)0 dur=19 res=0x7 s={true 513898704896} ch=true fn=-1
16:40:42.573                               I  [DP] dp(1) 0 android.view.ViewRootImpl.reportNextDraw:10957 android.view.ViewRootImpl.performTraversals:3845 android.view.ViewRootImpl.doTraversal:2618 
16:40:42.573                               I  [DP] pd() Asnyc report
16:40:42.594                               I  [DP] pdf(0) 0 android.view.ViewRootImpl.lambda$performDraw$1$ViewRootImpl:4668 android.view.-$$Lambda$ViewRootImpl$DJd0VUYJgsebcnSohO6h8zc_ONI.run:6 android.os.Handler.handleCallback:938 
16:40:42.594                               I  [DP] rdf()
16:40:42.750 CameraManagerGlobal           I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.geodis.mobiprep API Level 2
16:40:42.901 BARCODE                       D  barcode read: JVGTS5437650876115114
16:40:42.903 CamBarcodeScanVScanner        V  handleScanResult JVGTS5437650876115114 - CODE128
16:40:42.903 ScannerActivity               D  Received barcode from scanner: JVGTS5437650876115114 - CODE128
16:40:42.903 ParcelLoadingActivity         I  onData handled in ParcelLoadingActivity
16:40:42.903 BARCODE                       I  Stopping capture session
16:40:42.914 BufferQueueProducer           E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:42.915 libc                          A  Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x767746a000 in tid 18146 (CameraBackgroun), pid 9819 (geodis.mobiprep)
16:40:42.915 BufferQueueProducer           E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) dequeueBuffer: BufferQueue has been abandoned
16:40:42.962                               E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:42.982 AudioTrack                    D  stop(40): called with 4992 frames delivered
16:40:42.987 BufferQueueProducer           E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:42.991 Toast                         D  show: caller = com.geodis.mobiprep.MobiprepActivity.showToast:646 
16:40:42.992                               I  show: focusDisplayId = 0, isFocusInDesktop = false mCustomDisplayId=-1 isDexDualMode=false
16:40:42.992                               I  show: isActivityContext = false
16:40:43.010 BARCODE                       D  FPS: 6.264013 - Pool size: 8. Current analysis queue depth: 0. Current res: 1920*1080. Statistics are: {Point(1920, 1080)=17}
16:40:43.011 BufferQueueProducer           E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:43.039                               E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:43.058 BARCODE                       I  Initializing or reinitializing preview analysis loop
16:40:43.059                               D  Capture session creation begins
16:40:43.067 BufferQueueProducer           E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:43.143                               E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:43.147                               E  [ImageReader-1920x1080f23m18-9819-11](id:265b0000000b,api:4,p:3856,c:9819) queueBuffer: BufferQueue has been abandoned
16:40:43.158 CameraManagerGlobal           I  Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.geodis.mobiprep API Level 2
16:40:43.391 BARCODE                       D  Configuration request sent
16:40:43.391                               D  Preview analysis loop start method done
16:40:43.410 SurfaceControl                I  nativeRelease nativeObject s[509300858240]
16:40:43.410                               I  nativeRelease nativeObject e[509300858240]
16:40:43.412                               I  assignNativeObject: nativeObject = 0 Surface(name=null)/@0xa0d4106 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
16:40:43.416                               I  nativeRelease nativeObject s[509300858912]
16:40:43.416                               I  nativeRelease nativeObject e[509300858912]
16:40:43.416                               I  nativeRelease nativeObject s[511352977696]
16:40:43.417                               I  nativeRelease nativeObject e[511352977696]
16:40:43.418 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,720,1280) new=(0,0,720,1280) req=(720,1280)0 dur=19 res=0x1 s={true 511354097664} ch=false fn=30
16:40:43.424 SurfaceView                   I  positionLost: rt = android.view.SurfaceControl$Transaction@5429a19 surfaceControl = Surface(name=SurfaceView - com.geodis.mobiprep/com.geodis.mobiprep.ParcelLoadingActivity@3730b39@0)/@0xa56ade frame = 30
16:40:43.452 libEGL                        W  EGLNativeWindowType 0x77a6bff010 disconnect failed
16:40:43.453 ViewRootImpl@ccc9e2d[Toast]   D  dispatchDetachedFromWindow: reset blurmask
16:40:43.453                               I  dispatchDetachedFromWindow
16:40:43.453 SurfaceControl                I  nativeRelease nativeObject s[509300857664]
16:40:43.453                               I  nativeRelease nativeObject e[509300857664]
16:40:43.469 InputTransport                D  Input channel destroyed: 'a56875a', fd=85
16:40:43.547 SurfaceControl                I  nativeRelease nativeObject s[511352976256]
16:40:43.547                               I  nativeRelease nativeObject e[511352976256]
16:40:43.550                               I  assignNativeObject: nativeObject = 0 Surface(name=null)/@0xa0d4106 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
16:40:43.552                               I  nativeRelease nativeObject s[509300858432]
16:40:43.552                               I  nativeRelease nativeObject e[509300858432]
16:40:43.552                               I  nativeRelease nativeObject s[509300858240]
16:40:43.552                               I  nativeRelease nativeObject e[509300858240]
16:40:43.553 ViewRootImpl@...ingActivity]  I  Relayout returned: old=(0,0,720,1280) new=(0,0,720,1280) req=(720,1280)0 dur=11 res=0x1 s={true 511354097664} ch=false fn=31
16:40:43.573 SurfaceView                   I  setParentSpaceRectangle: useBLAST = false position = Rect(0, 160 - 720, 1280) frameNumber = 31 t = android.view.SurfaceControl$Transaction@5429a19
16:40:43.574                               I  applySurfaceTransforms: t = android.view.SurfaceControl$Transaction@5429a19 surfaceControl = Surface(name=SurfaceView - com.geodis.mobiprep/com.geodis.mobiprep.ParcelLoadingActivity@3730b39@0)/@0xa56ade frame = 31
16:40:43.574                               I  applySurfaceTransforms: postScaleX = 0.375 postScaleY = 1.037037
16:40:43.578 ToastPresenter                V  sipHeight = 0
16:40:43.603 InputTransport                D  Input channel constructed: 'd71082d', fd=85
16:40:43.605 ViewRootImpl@492414f[Toast]   I  setView = android.widget.LinearLayout@44610dc TM=true
16:40:43.633 SurfaceControl                I  assignNativeObject: nativeObject = 0 Surface(name=null)/@0x12065e5 / android.view.SurfaceControl.readFromParcel:1117 android.view.IWindowSession$Stub$Proxy.relayout:1820 android.view.ViewRootImpl.relayoutWindow:9005 android.view.ViewRootImpl.performTraversals:3360 android.view.ViewRootImpl.doTraversal:2618 android.view.ViewRootImpl$TraversalRunnable.run:9971 android.view.Choreographer$CallbackRecord.run:1010 android.view.Choreographer.doCallbacks:809 android.view.Choreographer.doFrame:744 android.view.Choreographer$FrameDisplayEventReceiver.run:995 
16:40:43.636 ViewRootImpl@492414f[Toast]   I  Relayout returned: old=(0,48,720,1280) new=(63,976,656,1152) req=(593,176)0 dur=18 res=0x7 s={true 513898704896} ch=true fn=-1
16:40:43.641                               I  [DP] dp(1) 0 android.view.ViewRootImpl.reportNextDraw:10957 android.view.ViewRootImpl.performTraversals:3845 android.view.ViewRootImpl.doTraversal:2618 
16:40:43.641                               I  [DP] pd() Asnyc report
16:40:43.657                               I  [DP] pdf(0) 0 android.view.ViewRootImpl.lambda$performDraw$1$ViewRootImpl:4668 android.view.-$$Lambda$ViewRootImpl$DJd0VUYJgsebcnSohO6h8zc_ONI.run:6 android.os.Handler.handleCallback:938 
16:40:43.657                               I  [DP] rdf()
16:40:45.083 ViewRootImpl@...ingActivity]  I  ViewPostIme key 0
16:40:45.106                               I  ViewPostIme key 1
---------------------------- PROCESS ENDED (9819) for package com.geodis.mobiprep ----------------------------