CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.35k stars 878 forks source link

Camera not closing (onClosed in camera listener not called) #622

Open arulwastaken opened 3 years ago

arulwastaken commented 3 years ago

Environment: DEBUG

CameraKit Version:

Android Device: Samsung a10

Android Version: 10

Steps to Reproduce

  1. Open the camera and close normally with onBack Press
  2. Open Second-time camera open fine but after close normally with onBack Press
  3. Open Third-time camera not showing

Logs:

2021-01-12 18:46:54.413 29694-29694/com.testing.test D/PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1491 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444 2021-01-12 18:46:54.414 29694-29694/com.testing.test I/MultiWindowDecorSupport: updateCaptionType >> DecorView@564c3e6[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true 2021-01-12 18:46:54.414 29694-29694/com.testing.test D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@564c3e6[] 2021-01-12 18:46:54.446 29694-29694/com.testing.test I/testing.tes: Thread[1,tid=29694,Native,Thread=0xeef76800,peer=0x72c9ef10,"main"] recursive attempt to load library "/data/app/com.testing.test-M_Iw-y7q8dCDsDVuoa7NSA==/lib/arm/libcamerakit.so" 2021-01-12 18:46:54.553 29694-29892/com.testing.test D/SDK: pkg com.testing.test 4D669EB562B0A0B87E288AE180A72720 2021-01-12 18:46:54.580 29694-29694/com.testing.test D/SensorManager: registerListener :: 0, LIS2DS Accelerometer, 66667, 0,
2021-01-12 18:46:54.581 29694-29894/com.testing.test I/CameraManagerGlobal: Connecting to camera service 2021-01-12 18:46:54.585 29694-29892/com.testing.test D/Test--linenum: 26 2021-01-12 18:46:54.585 29694-29894/com.testing.test D/VendorTagDescriptor: addVendorDescriptor: vendor tag id 3854507339 added 2021-01-12 18:46:54.590 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: setView = com.android.internal.policy.DecorView@564c3e6 TM=true MM=false 2021-01-12 18:46:54.592 29694-29713/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.testing.test API Level 2 2021-01-12 18:46:54.593 29694-29713/com.testing.test I/CameraManagerGlobal: Camera 1 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client android.system API Level 2 2021-01-12 18:46:54.593 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1 2021-01-12 18:46:54.593 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:46:54.593 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:46:54.598 29694-29892/com.testing.test E/libscanner: >>>Version: 2017/01/05-340, WB_v340_CS_r<<< 2021-01-12 18:46:54.600 29694-29694/com.testing.test D/SurfaceView: onWindowVisibilityChanged(0) true com.camerakit.preview.CameraSurfaceView{6f3c6a6 V.E...... ......I. 0,0-0,0} of ViewRootImpl@3f56801[ImageScannerActivity] 2021-01-12 18:46:54.603 29694-29894/com.testing.test I/CameraManagerGlobal: postSingleUpdate device: camera id 0 status STATUS_PRESENT 2021-01-12 18:46:54.603 29694-29894/com.testing.test I/CameraManagerGlobal: postSingleUpdate device: camera id 1 status STATUS_PRESENT 2021-01-12 18:46:54.604 29694-29892/com.testing.test E/Secu-Check: pkg: com.testing.test 2021-01-12 18:46:54.607 29694-29892/com.testing.test E/Secu-Check: Sig: 4d669eb562b0a0b87e288ae180a72720 2021-01-12 18:46:54.607 29694-29892/com.testing.test E/Secu-Check: pkg: com.testing.test 2021-01-12 18:46:54.610 29694-29892/com.testing.test E/Secu-Check: Sig: 4d669eb562b0a0b87e288ae180a72720 2021-01-12 18:46:54.611 29694-29892/com.testing.test E/Secu-Check: ExpireDate 2021/6/30 2021-01-12 18:46:54.611 29694-29892/com.testing.test D/Test--Auth-code: 0 2021-01-12 18:46:54.611 29694-29892/com.testing.test D/Test---type_of_report: 0 2021-01-12 18:46:54.612 29694-29892/com.testing.test D/Test--Auth-Finish---code: 0 2021-01-12 18:46:54.613 29694-29892/com.testing.test D/ImageScannerActivity: code=0 2021-01-12 18:46:54.619 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=12 res=0x7 s={true 3089180672} ch=true 2021-01-12 18:46:54.628 29694-29713/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.testing.test API Level 2 2021-01-12 18:46:54.633 29694-29694/com.testing.test D/SurfaceView: surfaceCreated 1 #8 com.camerakit.preview.CameraSurfaceView{6f3c6a6 V.E...... ......ID 0,0-720,1382} 2021-01-12 18:46:54.633 29694-29694/com.testing.test D/SurfaceView: surfaceChanged (720,1382) 1 #8 com.camerakit.preview.CameraSurfaceView{6f3c6a6 V.E...... ......ID 0,0-720,1382} 2021-01-12 18:46:54.641 29694-29890/com.testing.test D/mali_winsys: EGLint new_window_surface(egl_winsys_display
, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 2021-01-12 18:46:54.668 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=11 res=0x3 s={true 3089180672} ch=false 2021-01-12 18:46:54.680 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2021-01-12 18:46:54.680 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@564c3e6[ImageScannerActivity] 2021-01-12 18:46:54.680 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:46:54.683 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@564c3e6[ImageScannerActivity] 2021-01-12 18:46:54.684 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:46:54.684 29694-29694/com.testing.test V/InputMethodManager: Starting input: tba=com.testing.test ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2021-01-12 18:46:54.684 29694-29694/com.testing.test D/InputMethodManager: startInputInner - Id : 0 2021-01-12 18:46:54.684 29694-29694/com.testing.test I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2021-01-12 18:46:54.686 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: 'ClientS', fd=189 2021-01-12 18:46:54.688 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: MSG_RESIZED_REPORT: frame=(0,0,720,1520) ci=(0,54,0,84) vi=(0,54,0,84) or=1 2021-01-12 18:46:54.707 29694-29694/com.testing.test D/ImageScannerActivity: cameraKit onOpened() called 2021-01-12 18:46:55.245 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=17 res=0x5 s={false 0} ch=true 2021-01-12 18:46:55.248 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(true) old=false 2021-01-12 18:46:55.256 29694-29713/com.testing.test W/Gralloc3: allocator 3.x is not supported 2021-01-12 18:46:55.269 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=12 res=0x5 s={false 0} ch=false 2021-01-12 18:46:55.749 29694-29712/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.testing.test API Level 2 2021-01-12 18:47:02.182 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: ViewPostIme key 0 2021-01-12 18:47:02.199 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: ViewPostIme key 1 2021-01-12 18:47:02.200 29694-29694/com.testing.test D/ImageScannerActivity: onBackPressed() called isProgressShowing - false 2021-01-12 18:47:02.216 29694-29694/com.testing.test D/SensorManager: unregisterListener ::
2021-01-12 18:47:02.232 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(false) old=true 2021-01-12 18:47:02.236 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(false) old=false 2021-01-12 18:47:02.252 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=10 res=0x7 s={true 3175581696} ch=true 2021-01-12 18:47:02.291 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1 2021-01-12 18:47:02.291 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@564c3e6[ImageScannerActivity] 2021-01-12 18:47:02.291 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:02.294 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2021-01-12 18:47:02.294 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:02.294 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:02.298 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:02.298 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:02.298 29694-29694/com.testing.test V/InputMethodManager: Starting input: tba=com.testing.test ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2021-01-12 18:47:02.298 29694-29694/com.testing.test D/InputMethodManager: startInputInner - Id : 0 2021-01-12 18:47:02.298 29694-29694/com.testing.test I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2021-01-12 18:47:02.315 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: 'ClientS', fd=201 2021-01-12 18:47:02.347 29694-29712/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.testing.test API Level 2 2021-01-12 18:47:02.624 29694-29694/com.testing.test D/SurfaceView: onWindowVisibilityChanged(8) false com.camerakit.preview.CameraSurfaceView{6f3c6a6 V.E...... ......I. 0,0-720,1382} of ViewRootImpl@3f56801[ImageScannerActivity] 2021-01-12 18:47:02.626 29694-29694/com.testing.test D/SurfaceView: surfaceDestroyed callback.size 1 #2 com.camerakit.preview.CameraSurfaceView{6f3c6a6 V.E...... ......I. 0,0-720,1382} 2021-01-12 18:47:02.629 29694-29890/com.testing.test W/libEGL: EGLNativeWindowType 0xbacc0008 disconnect failed 2021-01-12 18:47:02.630 29694-29694/com.testing.test D/SurfaceView: remove() com.camerakit.preview.CameraSurfaceView{6f3c6a6 V.E...... ......I. 0,0-720,1382} Surface(name=SurfaceView - com.testing.test/com.testing.test.ui.activity.ImageScannerActivity@6f3c6a6@0)/@0xa22fae1 2021-01-12 18:47:02.643 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=8 res=0x5 s={false 0} ch=true 2021-01-12 18:47:02.644 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: stopped(true) old=false 2021-01-12 18:47:02.644 29694-29694/com.testing.test D/SurfaceView: windowStopped(true) false com.camerakit.preview.CameraSurfaceView{6f3c6a6 V.E...... ......I. 0,0-720,1382} of ViewRootImpl@3f56801[ImageScannerActivity] 2021-01-12 18:47:02.657 29694-29694/com.testing.test D/ViewRootImpl@3f56801[ImageScannerActivity]: dispatchDetachedFromWindow 2021-01-12 18:47:02.670 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: 'ee8bdaa', fd=193 2021-01-12 18:47:02.671 29694-29694/com.testing.test D/ImageScannerActivity: cameraKit onClosed() called 2021-01-12 18:47:02.866 29694-29712/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_CLOSED for client com.testing.test API Level 2 2021-01-12 18:47:19.193 29694-29727/com.testing.test W/testing.tes: Checksum mismatch for dex base.apk!classes2.dex 2021-01-12 18:47:19.194 29694-29727/com.testing.test W/testing.tes: Could not add methods to the existing profiler. Clearing the profile data. 2021-01-12 18:47:22.638 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: ViewPostIme pointer 0 2021-01-12 18:47:22.686 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: ViewPostIme pointer 1 2021-01-12 18:47:22.695 29694-29694/com.testing.test I/ActiveConversationAdapter: Console onTextScannerClick click 1 2021-01-12 18:47:22.696 29694-29875/com.testing.test D/BF/LogManager: L3 [5ffc65cc723673e0c034abff] onCardWebViewCallback() called with: data = [{"name":"list_item_webview","callback":"onScanResult","fieldName":"Application Number","functionName":"openTextParser","position":0}], message = [com.testing.test.datasource.model.Message@a03c362] 2021-01-12 18:47:22.697 29694-29875/com.testing.test D/LogManager: log: L3 [5ffc65cc723673e0c034abff] onCardWebViewCallback() called with: data = [{"name":"list_item_webview","callback":"onScanResult","fieldName":"Application Number","functionName":"openTextParser","position":0}], message = [com.testing.test.datasource.model.Message@a03c362] 2021-01-12 18:47:22.733 29694-29694/com.testing.test D/InputMethodManager: HSIFW - flag : 0 Pid : 29694 2021-01-12 18:47:22.735 29694-29694/com.testing.test W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@c2e06b6 2021-01-12 18:47:22.754 29694-29694/com.testing.test D/PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1491 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444 2021-01-12 18:47:22.755 29694-29694/com.testing.test I/MultiWindowDecorSupport: updateCaptionType >> DecorView@75a8e8d[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true 2021-01-12 18:47:22.755 29694-29694/com.testing.test D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@75a8e8d[] 2021-01-12 18:47:22.815 29694-29966/com.testing.test D/SDK: pkg com.testing.test 4D669EB562B0A0B87E288AE180A72720 2021-01-12 18:47:22.821 29694-29966/com.testing.test D/Test--linenum: 26 2021-01-12 18:47:22.821 29694-29966/com.testing.test E/Secu-Check: pkg: com.testing.test 2021-01-12 18:47:22.823 29694-29966/com.testing.test E/Secu-Check: Sig: 4d669eb562b0a0b87e288ae180a72720 2021-01-12 18:47:22.823 29694-29966/com.testing.test E/Secu-Check: pkg: com.testing.test 2021-01-12 18:47:22.825 29694-29966/com.testing.test E/Secu-Check: Sig: 4d669eb562b0a0b87e288ae180a72720 2021-01-12 18:47:22.825 29694-29966/com.testing.test E/Secu-Check: ExpireDate 2021/6/30 2021-01-12 18:47:22.825 29694-29966/com.testing.test D/Test--Auth-code: 0 2021-01-12 18:47:22.825 29694-29966/com.testing.test D/Test---type_of_report: 0 2021-01-12 18:47:22.825 29694-29966/com.testing.test D/Test--Auth-Finish---code: 0 2021-01-12 18:47:22.826 29694-29966/com.testing.test D/ImageScannerActivity: code=0 2021-01-12 18:47:22.830 29694-29694/com.testing.test D/SensorManager: registerListener :: 0, LIS2DS Accelerometer, 66667, 0,
2021-01-12 18:47:22.833 29694-29967/com.testing.test I/CameraManagerGlobal: postSingleUpdate device: camera id 0 status STATUS_PRESENT 2021-01-12 18:47:22.833 29694-29967/com.testing.test I/CameraManagerGlobal: postSingleUpdate device: camera id 1 status STATUS_PRESENT 2021-01-12 18:47:22.841 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: setView = com.android.internal.policy.DecorView@75a8e8d TM=true MM=false 2021-01-12 18:47:22.848 29694-29694/com.testing.test D/SurfaceView: onWindowVisibilityChanged(0) true com.camerakit.preview.CameraSurfaceView{92f06b5 V.E...... ......I. 0,0-0,0} of ViewRootImpl@5fa72ec[ImageScannerActivity] 2021-01-12 18:47:22.849 29694-29713/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_OPEN for client com.testing.test API Level 2 2021-01-12 18:47:22.867 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=12 res=0x7 s={true 3181965312} ch=true 2021-01-12 18:47:22.876 29694-29694/com.testing.test D/SurfaceView: surfaceCreated 1 #8 com.camerakit.preview.CameraSurfaceView{92f06b5 V.E...... ......ID 0,0-720,1382} 2021-01-12 18:47:22.877 29694-29694/com.testing.test D/SurfaceView: surfaceChanged (720,1382) 1 #8 com.camerakit.preview.CameraSurfaceView{92f06b5 V.E...... ......ID 0,0-720,1382} 2021-01-12 18:47:22.881 29694-29964/com.testing.test D/mali_winsys: EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 2021-01-12 18:47:22.892 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1 2021-01-12 18:47:22.892 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:22.892 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:22.904 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=9 res=0x3 s={true 3181965312} ch=false 2021-01-12 18:47:22.916 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2021-01-12 18:47:22.917 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@75a8e8d[ImageScannerActivity] 2021-01-12 18:47:22.917 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:22.920 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@75a8e8d[ImageScannerActivity] 2021-01-12 18:47:22.920 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:22.920 29694-29694/com.testing.test V/InputMethodManager: Starting input: tba=com.testing.test ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2021-01-12 18:47:22.920 29694-29694/com.testing.test D/InputMethodManager: startInputInner - Id : 0 2021-01-12 18:47:22.921 29694-29694/com.testing.test I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2021-01-12 18:47:22.924 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: 'ClientS', fd=116 2021-01-12 18:47:22.924 29694-29694/com.testing.test D/ImageScannerActivity: cameraKit onOpened() called 2021-01-12 18:47:22.925 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: MSG_RESIZED_REPORT: frame=(0,0,720,1520) ci=(0,54,0,84) vi=(0,54,0,84) or=1 2021-01-12 18:47:23.290 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=7 res=0x5 s={false 0} ch=true 2021-01-12 18:47:23.292 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(true) old=false 2021-01-12 18:47:23.304 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=7 res=0x5 s={false 0} ch=false 2021-01-12 18:47:23.646 29694-29950/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.testing.test API Level 2 2021-01-12 18:47:23.663 29694-29964/com.testing.test W/OpenGLRenderer: [SurfaceTexture-1-29694-1] bindTextureImage: clearing GL error: 0x506 2021-01-12 18:47:23.942 29694-29950/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_IDLE for client com.testing.test API Level 2 2021-01-12 18:47:24.384 29694-29713/com.testing.test I/CameraManagerGlobal: Camera 0 facing CAMERA_FACING_BACK state now CAMERA_STATE_ACTIVE for client com.testing.test API Level 2 2021-01-12 18:47:29.041 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: ViewPostIme key 0 2021-01-12 18:47:29.126 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: ViewPostIme key 1 2021-01-12 18:47:29.126 29694-29694/com.testing.test D/ImageScannerActivity: onBackPressed() called isProgressShowing - false 2021-01-12 18:47:29.138 29694-29694/com.testing.test D/SensorManager: unregisterListener ::
2021-01-12 18:47:29.151 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(false) old=true 2021-01-12 18:47:29.157 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(false) old=false 2021-01-12 18:47:29.178 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=11 res=0x7 s={true 3175581696} ch=true 2021-01-12 18:47:29.203 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1 2021-01-12 18:47:29.204 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@75a8e8d[ImageScannerActivity] 2021-01-12 18:47:29.204 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:29.206 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2021-01-12 18:47:29.206 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:29.206 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:29.209 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:29.209 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:29.209 29694-29694/com.testing.test V/InputMethodManager: Starting input: tba=com.testing.test ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2021-01-12 18:47:29.209 29694-29694/com.testing.test D/InputMethodManager: startInputInner - Id : 0 2021-01-12 18:47:29.209 29694-29694/com.testing.test I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2021-01-12 18:47:29.223 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: 'ClientS', fd=198 2021-01-12 18:47:29.532 29694-29694/com.testing.test D/SurfaceView: onWindowVisibilityChanged(8) false com.camerakit.preview.CameraSurfaceView{92f06b5 V.E...... ......I. 0,0-720,1382} of ViewRootImpl@5fa72ec[ImageScannerActivity] 2021-01-12 18:47:29.533 29694-29694/com.testing.test D/SurfaceView: surfaceDestroyed callback.size 1 #2 com.camerakit.preview.CameraSurfaceView{92f06b5 V.E...... ......I. 0,0-720,1382} 2021-01-12 18:47:29.536 29694-29964/com.testing.test W/libEGL: EGLNativeWindowType 0xb8212808 disconnect failed 2021-01-12 18:47:29.536 29694-29694/com.testing.test D/SurfaceView: remove() com.camerakit.preview.CameraSurfaceView{92f06b5 V.E...... ......I. 0,0-720,1382} Surface(name=SurfaceView - com.testing.test/com.testing.test.ui.activity.ImageScannerActivity@92f06b5@0)/@0x8e0549e 2021-01-12 18:47:29.546 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=6 res=0x5 s={false 0} ch=true 2021-01-12 18:47:29.547 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: stopped(true) old=false 2021-01-12 18:47:29.547 29694-29694/com.testing.test D/SurfaceView: windowStopped(true) false com.camerakit.preview.CameraSurfaceView{92f06b5 V.E...... ......I. 0,0-720,1382} of ViewRootImpl@5fa72ec[ImageScannerActivity] 2021-01-12 18:47:29.555 29694-29694/com.testing.test D/ViewRootImpl@5fa72ec[ImageScannerActivity]: dispatchDetachedFromWindow 2021-01-12 18:47:29.559 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: '78fd1b ', fd=192 2021-01-12 18:47:39.838 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: ViewPostIme pointer 0 2021-01-12 18:47:39.912 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: ViewPostIme pointer 1 2021-01-12 18:47:39.921 29694-29694/com.testing.test I/ActiveConversationAdapter: Console onTextScannerClick click 1 2021-01-12 18:47:39.921 29694-29875/com.testing.test D/BF/LogManager: L3 [5ffc65cc723673e0c034abff] onCardWebViewCallback() called with: data = [{"name":"list_item_webview","callback":"onScanResult","fieldName":"Application Number","functionName":"openTextParser","position":0}], message = [com.testing.test.datasource.model.Message@a03c362] 2021-01-12 18:47:39.922 29694-29875/com.testing.test D/LogManager: log: L3 [5ffc65cc723673e0c034abff] onCardWebViewCallback() called with: data = [{"name":"list_item_webview","callback":"onScanResult","fieldName":"Application Number","functionName":"openTextParser","position":0}], message = [com.testing.test.datasource.model.Message@a03c362] 2021-01-12 18:47:39.951 29694-29694/com.testing.test D/InputMethodManager: HSIFW - flag : 0 Pid : 29694 2021-01-12 18:47:39.953 29694-29694/com.testing.test W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@bad226f 2021-01-12 18:47:39.969 29694-29694/com.testing.test D/PhoneWindow: forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1491 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444 2021-01-12 18:47:39.970 29694-29694/com.testing.test I/MultiWindowDecorSupport: updateCaptionType >> DecorView@dea045a[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true 2021-01-12 18:47:39.970 29694-29694/com.testing.test D/MultiWindowDecorSupport: setCaptionType = 0, DecorView = DecorView@dea045a[] 2021-01-12 18:47:40.018 29694-30050/com.testing.test D/SDK: pkg com.testing.test 4D669EB562B0A0B87E288AE180A72720 2021-01-12 18:47:40.024 29694-30050/com.testing.test D/Test--linenum: 26 2021-01-12 18:47:40.025 29694-30050/com.testing.test E/Secu-Check: pkg: com.testing.test 2021-01-12 18:47:40.027 29694-30050/com.testing.test E/Secu-Check: Sig: 4d669eb562b0a0b87e288ae180a72720 2021-01-12 18:47:40.027 29694-30050/com.testing.test E/Secu-Check: pkg: com.testing.test 2021-01-12 18:47:40.029 29694-30050/com.testing.test E/Secu-Check: Sig: 4d669eb562b0a0b87e288ae180a72720 2021-01-12 18:47:40.029 29694-30050/com.testing.test E/Secu-Check: ExpireDate 2021/6/30 2021-01-12 18:47:40.029 29694-30050/com.testing.test D/Test--Auth-code: 0 2021-01-12 18:47:40.029 29694-30050/com.testing.test D/Test---type_of_report: 0 2021-01-12 18:47:40.030 29694-30050/com.testing.test D/Test--Auth-Finish---code: 0 2021-01-12 18:47:40.030 29694-30050/com.testing.test D/ImageScannerActivity: code=0 2021-01-12 18:47:40.031 29694-29694/com.testing.test D/SensorManager: registerListener :: 0, LIS2DS Accelerometer, 66667, 0,
2021-01-12 18:47:40.033 29694-30051/com.testing.test I/CameraManagerGlobal: postSingleUpdate device: camera id 0 status STATUS_NOT_AVAILABLE 2021-01-12 18:47:40.034 29694-30051/com.testing.test I/CameraManagerGlobal: postSingleUpdate device: camera id 1 status STATUS_PRESENT 2021-01-12 18:47:40.040 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: setView = com.android.internal.policy.DecorView@dea045a TM=true MM=false 2021-01-12 18:47:40.045 29694-29694/com.testing.test D/SurfaceView: onWindowVisibilityChanged(0) true com.camerakit.preview.CameraSurfaceView{a93be62 V.E...... ......I. 0,0-0,0} of ViewRootImpl@957b92d[ImageScannerActivity] 2021-01-12 18:47:40.062 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=10 res=0x7 s={true 3181967360} ch=true 2021-01-12 18:47:40.074 29694-29694/com.testing.test D/SurfaceView: surfaceCreated 1 #8 com.camerakit.preview.CameraSurfaceView{a93be62 V.E...... ......ID 0,0-720,1382} 2021-01-12 18:47:40.074 29694-29694/com.testing.test D/SurfaceView: surfaceChanged (720,1382) 1 #8 com.camerakit.preview.CameraSurfaceView{a93be62 V.E...... ......ID 0,0-720,1382} 2021-01-12 18:47:40.077 29694-30048/com.testing.test D/mali_winsys: EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000 2021-01-12 18:47:40.088 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1 2021-01-12 18:47:40.088 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:40.089 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:40.101 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=9 res=0x3 s={true 3181967360} ch=false 2021-01-12 18:47:40.113 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2021-01-12 18:47:40.113 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@dea045a[ImageScannerActivity] 2021-01-12 18:47:40.113 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:40.116 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@dea045a[ImageScannerActivity] 2021-01-12 18:47:40.116 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:40.116 29694-29694/com.testing.test V/InputMethodManager: Starting input: tba=com.testing.test ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2021-01-12 18:47:40.117 29694-29694/com.testing.test D/InputMethodManager: startInputInner - Id : 0 2021-01-12 18:47:40.117 29694-29694/com.testing.test I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2021-01-12 18:47:40.120 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: 'ClientS', fd=194 2021-01-12 18:47:40.123 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: MSG_RESIZED_REPORT: frame=(0,0,720,1520) ci=(0,54,0,84) vi=(0,54,0,84) or=1 2021-01-12 18:47:40.461 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=7 res=0x5 s={false 0} ch=true 2021-01-12 18:47:40.463 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(true) old=false 2021-01-12 18:47:40.476 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=8 res=0x5 s={false 0} ch=false 2021-01-12 18:47:43.556 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: ViewPostIme key 0 2021-01-12 18:47:43.651 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: ViewPostIme key 1 2021-01-12 18:47:43.651 29694-29694/com.testing.test D/ImageScannerActivity: onBackPressed() called isProgressShowing - false 2021-01-12 18:47:43.663 29694-29694/com.testing.test D/SensorManager: unregisterListener ::
2021-01-12 18:47:43.676 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(false) old=true 2021-01-12 18:47:43.680 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: stopped(false) old=false 2021-01-12 18:47:43.697 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)0 dur=9 res=0x7 s={true 3175581696} ch=true 2021-01-12 18:47:43.722 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: MSG_WINDOW_FOCUS_CHANGED 0 1 2021-01-12 18:47:43.723 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@dea045a[ImageScannerActivity] 2021-01-12 18:47:43.723 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:43.725 29694-29694/com.testing.test D/ViewRootImpl@b629505[ActiveConversationActivity]: MSG_WINDOW_FOCUS_CHANGED 1 1 2021-01-12 18:47:43.726 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:43.726 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:43.728 29694-29694/com.testing.test D/InputMethodManager: prepareNavigationBarInfo() DecorView@c04f387[ActiveConversationActivity] 2021-01-12 18:47:43.728 29694-29694/com.testing.test D/InputMethodManager: getNavigationBarColor() -855310 2021-01-12 18:47:43.728 29694-29694/com.testing.test V/InputMethodManager: Starting input: tba=com.testing.test ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false 2021-01-12 18:47:43.728 29694-29694/com.testing.test D/InputMethodManager: startInputInner - Id : 0 2021-01-12 18:47:43.728 29694-29694/com.testing.test I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus 2021-01-12 18:47:43.746 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: 'ClientS', fd=209 2021-01-12 18:47:44.053 29694-29694/com.testing.test D/SurfaceView: onWindowVisibilityChanged(8) false com.camerakit.preview.CameraSurfaceView{a93be62 V.E...... ......I. 0,0-720,1382} of ViewRootImpl@957b92d[ImageScannerActivity] 2021-01-12 18:47:44.054 29694-29694/com.testing.test D/SurfaceView: surfaceDestroyed callback.size 1 #2 com.camerakit.preview.CameraSurfaceView{a93be62 V.E...... ......I. 0,0-720,1382} 2021-01-12 18:47:44.057 29694-30048/com.testing.test W/libEGL: EGLNativeWindowType 0xb8212808 disconnect failed 2021-01-12 18:47:44.058 29694-29694/com.testing.test D/SurfaceView: remove() com.camerakit.preview.CameraSurfaceView{a93be62 V.E...... ......I. 0,0-720,1382} Surface(name=SurfaceView - com.testing.test/com.testing.test.ui.activity.ImageScannerActivity@a93be62@0)/@0xa8b55c8 2021-01-12 18:47:44.070 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=8 res=0x5 s={false 0} ch=true 2021-01-12 18:47:44.071 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: stopped(true) old=false 2021-01-12 18:47:44.072 29694-29694/com.testing.test D/SurfaceView: windowStopped(true) false com.camerakit.preview.CameraSurfaceView{a93be62 V.E...... ......I. 0,0-720,1382} of ViewRootImpl@957b92d[ImageScannerActivity] 2021-01-12 18:47:44.081 29694-29694/com.testing.test D/ViewRootImpl@957b92d[ImageScannerActivity]: dispatchDetachedFromWindow 2021-01-12 18:47:44.086 29694-29694/com.testing.test D/InputTransport: Input channel destroyed: '46492cb', fd=198 2021-01-12 18:49:31.033 29694-29708/com.testing.test I/testing.tes: Background concurrent copying GC freed 321908(14MB) AllocSpace objects, 216(20MB) LOS objects, 49% free, 18MB/37MB, paused 439us total 214.168ms 2021-01-12 18:49:31.098 29694-29710/com.testing.test W/System: A resource failed to call release. 2021-01-12 18:51:35.817 29694-29738/com.testing.test I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2021-01-12 18:51:35.817 29694-29738/com.testing.test I/System.out: (HTTPLog)-Static: isSBSettingEnabled false 2021-01-12 18:52:12.006 29694-29708/com.testing.test I/testing.tes: Background concurrent copying GC freed 324441(14MB) AllocSpace objects, 177(3588KB) LOS objects, 49% free, 20MB/40MB, paused 302us total 155.464ms 2021-01-12 18:52:12.020 29694-29710/com.testing.test W/System: A resource failed to call release.

chandra-meet commented 3 years ago

did you find any solution for this??

BruceLii commented 1 year ago

the same problem in my demo ! carmera preview doesn`t work the second time after closed the camerakit activity ! and camera resouce samed not released ! the camera icon still there in status bar.