Closed abelatar closed 11 months 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 ----------------------------
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)