Android Question B4XPages Intent based camera

John Leeson

Member
Licensed User
Longtime User
Hi,

I am using the intent based camera in an app, and every so often, after a photo is taken, the app crashes and restarts. I have updated it to start a foreground service as per this post intent based camera , but the app still crashes despite this service running. I've been scrolling through the unfiltered logs but I'm not sure what I'm looking for, but this is the last part of the logs where the camera appears. There is a line that says "Disconnected client for camera" which only appears once in the entire log, so that seems like it might be it, but nothing around that tells my why? does anyone have any ideas? Thanks in advance :)

Logs:
updateProxyDeviceState: notifyCameraState for Camera ID 2,  newState 1, facing 1, clientName com.samsung.android.smartface, apiLevel 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.android.smartface API Level 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.android.smartface API Level 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.android.smartface API Level 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.android.smartface API Level 2
updateActivityCount: addNonHighRefreshRatePackage for client(com.samsung.android.smartface)
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_ACTIVE for client com.samsung.android.smartface API Level 2
onCameraDeviceStateChangedLocked: post device state update
onCameraDeviceStateChangedLocked: post device state update
[CAM(1)][Front_0]-(m_handlePreviewFrame[13128]):first frame(F4(12)), type(2) ISP DONE
[CAM(1)][Front_0]-(m_handlePreviewFrame[13320]):============= First Preview time ==================
[CAM(1)][Front_0]-(m_handlePreviewFrame[13321]):= configureStream ~ first frame  : 583 msec
[CAM(1)][Front_0]-(m_handlePreviewFrame[13322]):===================================================
returnBufferCheckedLocked: First frame for stream 0, width 320, height 240, format 35
[CAMKPI] camera3->process_capture_result : E
[CAMKPI] camera3->process_capture_result : X
[mali_gralloc_allocate] begin
buffer_descriptor: wh(320 240) usage_pc(0x20006 0x20006) hal_format(0x23) layer_count(1) sizes(0 0 0) strde(0) byte_stride(0) alloc_wh(0 0) internal_format(0x0) alloc_format(0x0) fd_count(1) plane_count(0)
[mali_gralloc_allocate] allocation successful
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21588843
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21588865
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21588900
onScanResult to scannerId: 6- eventType=0x1b, addressType=1, address=45:6, primaryPhy=1, secondaryPhy=0, advertisingSid=0xff, txPower=127, rssi=-86, periodicAdvInt=0x0
[CAM(1)][Front_0]-(m_monitorThreadFunc[7388]):@FIMC_IS_SYNC 33
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21588929
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21588960
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21588999
processImage start : prev time [ 604323 ]
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589031
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589063
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589094
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589125
onScanResult to scannerId: 6- eventType=0x1b, addressType=1, address=45:6, primaryPhy=1, secondaryPhy=0, advertisingSid=0xff, txPower=127, rssi=-86, periodicAdvInt=0x0
processImage end : function time [ 195688 ] [-1]
processSmartStay[307ms], ret: -1 needToStay: no mFrameCount: 0 mFixed: false
processImage start : prev time [ 197069 ]
checkForSmartStay onInfo: 100: 0
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589183
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589193
updateUserActivitySummaryLocked : don't have time to smart stay
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589228
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589260
processImage end : function time [ 208517 ] [-1]
processSmartStay[126ms], ret: -1 needToStay: no mFrameCount: 1 mFixed: false
processImage start : prev time [ 211913 ]
checkForSmartStay onInfo: 100: 0
setValue, key: empty key for ping value: empty value
Wrong Command key from client. Ignore.
onImageAvailable width :320 height 240
Orientation: 0
Calling onPreviewFrame: Thread[Stay/Rotation Worker,5,main]/21589296
unregister:21589297
unregister
unregister client found. pid 4583 servicetype: 100 AppName: system
Service Type to Worker: 0
Last Active clients:1 Current Active clients: 0
No active clients. close camera
closeCamera S
updateUserActivitySummaryLocked : don't have time to smart stay
handleMessage(0) { when=0 what=0 target=com.samsung.android.smartface.CameraV2Controller$EventHandler }
Disconnect from CameraDeviceClient
disconnect:stop IT Policy checking thread
removeListener:
flush: mInterfaceLock.lock()
startWatching : Start watching status = mRequestThread->flush();
markComponent: Component 1 is now idle - RequestThread
INFO(HAL3_camera_device_flush[493]):in =====
[CAM(1)][Front_0]-(m_monitorThreadFunc[7365]):Flush is in progress
[CAM(1)][Front_0]-(m_waitShotDone[2328]):wait timeout
[CAM(1)][PIPE_3AA]-(stopThread[410]):stopThread is succeed, Pipe(6)
[CAM(1)][PIPE_3AA]-(m_putBuffer[1582]):inputFrameQ wait timeout,Duration(1),LogCnt(1)
[CAM(1)][PIPE_ISP]-(stopThread[410]):stopThread is succeed, Pipe(11)
[CAM(1)][PIPE_VRA]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_VRA]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_VRA]-(m_dumpRunningFrameList[1682]):m_numBuffers : 10
[CAM(1)][PIPE_3AA]-(sensorStream[446]):
[CAM(1)][PIPE_VRA]-(m_putBuffer[148]):wait timeout
[CAM(1)][PIPE_VRA]-(dumpState[1057]):Node state(5)
[CAM(1)][PIPE_ISP]-(m_putBuffer[1582]):inputFrameQ wait timeout,Duration(1),LogCnt(1)
[CAM(1)][PIPE_3AA]-(forceDone[579]):forceDone() is succeed, Pipe(6)
[CAM(1)][PIPE_3AA]-(stop[351]):stop() is succeed, Pipe(6)
[CAM(1)][PIPE_ISP]-(forceDone[579]):forceDone() is succeed, Pipe(11)
[CAM(1)][PIPE_ISP]-(stop[351]):stop() is succeed, Pipe(11)
[CAM(1)][PIPE_PP_UNI0]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_PP_UNI0]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_PP_UNI0]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_PP_UNI1]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_PP_UNI1]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_PP_UNI1]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_PP_UNI2]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_PP_UNI2]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_PP_UNI2]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_PP_SINGLE0]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_PP_SINGLE0]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_PP_SINGLE0]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_GSC]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_GSC]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_GSC]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][Front_0]-(stopPipes[1281]):Stopping  Success!
[CAM(1)][Front_0]-(stopPipes[901]):
[CAM(1)][PIPE_3AA_REPROCESSING]-(stopThread[410]):stopThread is succeed, Pipe(203)
[CAM(1)][PIPE_ISP_REPROCESSING]-(stopThread[410]):stopThread is succeed, Pipe(208)
[CAM(1)][PIPE_3AA_REPROCESSING]-(stop[351]):stop() is succeed, Pipe(203)
[CAM(1)][PIPE_ISP_REPROCESSING]-(stop[351]):stop() is succeed, Pipe(208)
[CAM(1)][PIPE_JPEG_REPROCESSING]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_JPEG_REPROCESSING]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_JPEG_REPROCESSING]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_PP_UNI_REPROCESSING]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_PP_UNI_REPROCESSING]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_PP_UNI_REPROCESSING]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_PP_UNI_REPROCESSING2]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_PP_UNI_REPROCESSING2]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_PP_UNI_REPROCESSING2]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_PP_UNI_RAW_REPROCESSING]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_PP_UNI_RAW_REPROCESSING]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_PP_UNI_RAW_REPROCESSING]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_GSC_REPROCESSING2]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_GSC_REPROCESSING2]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_GSC_REPROCESSING2]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][PIPE_GSC_REPROCESSING3]-(m_dumpRunningFrameList[1680]):last fcount(HAL:0, DRV:0)
[CAM(1)][PIPE_GSC_REPROCESSING3]-(m_dumpRunningFrameList[1681]):*********runningFrameList dump***********
[CAM(1)][PIPE_GSC_REPROCESSING3]-(m_dumpRunningFrameList[1682]):m_numBuffers : 0
[CAM(1)][Front_0]-(stopPipes[1117]):Stopping Reprocessing [3AA>MCSC] Success!
[CAM(1)][Front_0]-(m_previewStreamVRAPipeThreadFunc[5105]):wait timeout
[CAM(1)][]-(dump[3125]):Type[0] = Last Key(0)
[CAM(1)][]-(dump[3125]):Type[1] = Last Key(0)
[CAM(1)][]-(dump[3125]):Type[2] = Last Key(0)
[CAM(1)][]-(dump[3125]):Type[3] = Last Key(0)
[CAM(1)][]-(dump[3125]):Type[4] = Last Key(0)
[CAM(1)][]-(dump[3125]):Type[5] = Last Key(0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R21] serviceFrameCount(0), (0xf4f34740) frame_number(21), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R21] result status (Notify 0, Partial 0, Buffer 0, All 0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R15] serviceFrameCount(19), (0xf4f34940) frame_number(15), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R15] result status (Notify 1, Partial 1, Buffer 0, All 0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R16] serviceFrameCount(20), (0xf4f34960) frame_number(16), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R16] result status (Notify 0, Partial 0, Buffer 0, All 0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R17] serviceFrameCount(21), (0xf4f34980) frame_number(17), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R17] result status (Notify 0, Partial 0, Buffer 0, All 0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R18] serviceFrameCount(22), (0xf4f34620) frame_number(18), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R18] result status (Notify 0, Partial 0, Buffer 0, All 0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R19] serviceFrameCount(23), (0xf4f34700) frame_number(19), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R19] result status (Notify 0, Partial 0, Buffer 0, All 0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R20] serviceFrameCount(24), (0xf4f34720) frame_number(20), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R20] result status (Notify 0, Partial 0, Buffer 0, All 0)
[CAM(1)][]-(m_printRequestInfo[2048]):[R21] serviceFrameCount(0), (0xf4f34740) frame_number(21), outputNum(1)
[CAM(1)][]-(m_printRequestInfo[2055]):[R21] result status (Notify 0, Partial 0, Buffer 0, All 0)
[CAM(1)][]-(m_callbackOpsNotify[2949]):msg frame(15) type(1) errorCode(3)
notifyError: pid=22984, errorCode=4, errorStreamId=0, frameNumber=15
notifyError: pid=22984, skipClientNotification=false
notifyError: pid=22984, errorCode=5, errorStreamId=0, frameNumber=15
notifyError: pid=22984, skipClientNotification=false
returnBufferCheckedLocked: A frame is dropped for stream 0 frame 15 , due to buffer error.
[CAM(1)][]-(m_callbackOpsNotify[2949]):msg frame(16) type(1) errorCode(2)
notifyError: pid=22984, errorCode=3, errorStreamId=0, frameNumber=16
notifyError: pid=22984, skipClientNotification=false
returnBufferCheckedLocked: A frame is dropped for stream 0 frame 16 , due to buffer error.
[CAM(1)][]-(m_callbackOpsNotify[2949]):msg frame(17) type(1) errorCode(2)
notifyError: pid=22984, errorCode=3, errorStreamId=0, frameNumber=17
notifyError: pid=22984, skipClientNotification=false
returnBufferCheckedLocked: A frame is dropped for stream 0 frame 17 , due to buffer error.
[CAM(1)][]-(m_callbackOpsNotify[2949]):msg frame(18) type(1) errorCode(2)
notifyError: pid=22984, errorCode=3, errorStreamId=0, frameNumber=18
notifyError: pid=22984, skipClientNotification=false
returnBufferCheckedLocked: A frame is dropped for stream 0 frame 18 , due to buffer error.
processImage end : function time [ 153140 ] [-1]
processSmartStay[127ms], ret: -1 needToStay: no mFrameCount: 2 mFixed: false
[CAM(1)][]-(m_callbackOpsNotify[2949]):msg frame(19) type(1) errorCode(2)
notifyError: pid=22984, errorCode=3, errorStreamId=0, frameNumber=19
notifyError: pid=22984, skipClientNotification=false
returnBufferCheckedLocked: A frame is dropped for stream 0 frame 19 , due to buffer error.
[CAM(1)][]-(m_callbackOpsNotify[2949]):msg frame(20) type(1) errorCode(2)
notifyError: pid=22984, errorCode=3, errorStreamId=0, frameNumber=20
notifyError: pid=22984, skipClientNotification=false
returnBufferCheckedLocked: A frame is dropped for stream 0 frame 20 , due to buffer error.
[CAM(1)][]-(m_callbackOpsNotify[2949]):msg frame(21) type(1) errorCode(2)
notifyError: pid=22984, errorCode=3, errorStreamId=0, frameNumber=21
notifyError: pid=22984, skipClientNotification=false
[CAM(-1)][]-(getAcquireFenceDone[1096]):[R21 F0] m_pop failed, handle is not EXIST
returnBufferCheckedLocked: A frame is dropped for stream 0 frame 21 , due to buffer error.
markComponent: Component 2 is now idle - streamId = 0, format = 35, width = 320, height = 240, option = 0
FpsStats: stream 0, requested=22, received=22, valid=15, invalid=7
markComponent: Component 0 is now idle - InFlightStatus
updateProxyDeviceState: notifyCameraState for Camera ID 2,  newState 2, facing 1, clientName com.samsung.android.smartface, apiLevel 2
[CAM(1)][SKIP_BUF]-(resetBuffers[1338]):OUT.. Buffer is not allocated
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.android.smartface API Level 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.android.smartface API Level 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.android.smartface API Level 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.android.smartface API Level 2
onCameraDeviceStateChangedLocked: post device state update
onCameraDeviceStateChangedLocked: post device state update
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_IDLE for client com.samsung.android.smartface API Level 2
INFO(HAL3_camera_device_flush[503]):out =====
DEBUG:duration time(  142 msec):(HAL3_camera_device_flush)
flush: mInterfaceLock.unlock()
waitUntilDrainedLocked: Camera 2: Waiting until idle (5000000000ns)
waitUntilDrained: mInterfaceLock.unlock()
disconnectImpl: E
ProcessCaptureRequest latency histogram (22) samples:
       40     80    120    160    200    240    280    320    360    inf (max ms)
     90.91   4.55   0.00   0.00   0.00   4.55   0.00   0.00   0.00   0.00 (%)
startWatching : Start watching interface->close();
CameraPerf: close E
INFO(HAL3_camera_device_close[298]):in =====
[m_resetMultiDeviceCamId : 797] camera (1) is closed at idx (0, 1)
updateUserActivitySummaryLocked : don't have time to smart stay
DEBUG:duration time(    2 msec):(m_free)
[CAM(1)][PREVIEW_CB_STREAM_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    0 msec):(m_free)
[CAM(1)][FLITE_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    1 msec):(m_free)
[CAM(1)][3AA_IN_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    2 msec):(m_free)
[CAM(1)][ISP_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    1 msec):(m_free)
[CAM(1)][VRA_BUF]-(deinit[115]):OUT.. Buffer is not allocated
[CAM(1)][SKIP_BUF]-(deinit[115]):OUT.. Buffer is not allocated
[CAM(1)][SKIP_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    0 msec):(m_free)
[CAM(1)][ISP_RE_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    0 msec):(m_free)
[CAM(1)][CAPTURE_CB_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    0 msec):(m_free)
[CAM(1)][YUV_CAP_BUF]-(deinit[115]):OUT.. Buffer is not allocated
DEBUG:duration time(    0 msec):(m_free)
[CAM(1)][THUMB_BUF]-(deinit[115]):OUT.. Buffer is not allocated
[CAM(1)][BufferSupplier]-(~ExynosCameraBufferSupplier[85]):~ExynosCameraBufferSupplier: m_grallocMapper is freed
[CAM(1)][RUNNING FRAME WORKER]-(workerMain[983]): wait and pop fail, ret(-110)
[CAM(1)][Front_0]-(m_deinit[870]):-IN-
[CAM(1)][Front_0]-(m_vendorSpecificPreDestructor[134]):-IN-
INFO(isEEprom[225]): SAMSUNG_EEPROM_FRONT is not defined
[CAM(1)][Front_0]-(m_vendorSpecificPreDestructor[138]):-OUT-
[CAM(1)][Front_0]-(m_deinitFrameFactory[3495]):-IN-
[CAM(1)][Front_0]-(destroy[139]):
[CAM(1)][PIPE_3AA_REPROCESSING]-(destroy[103]):
[CAM(1)][Front_0]-(m_sensorListenerUnloadThreadFunc[27413]):-IN-
disableSensor : numSensors=34/34, sen_list = 0xf4a743c0/0xf4a743c0
[CAM(1)][PIPE_3AA_REPROCESSING]-(destroy[174]):destroy() is succeed, Pipe(203)
[CAM(1)][PIPE_3AA_REPROCESSING]-(destroy[103]):
[CAM(1)][PIPE_3AA_REPROCESSING]-(destroy[174]):destroy() is succeed, Pipe(203)
[CAM(1)][PIPE_3AA_REPROCESSING]-(destroy[138]):destroy() is succeed (203)
[CAM(1)][PIPE_ISP_REPROCESSING]-(destroy[103]):
[CAM(1)][PIPE_ISP_REPROCESSING]-(destroy[174]):destroy() is succeed, Pipe(208)
[CAM(1)][PIPE_ISP_REPROCESSING]-(destroy[103]):
[CAM(1)][PIPE_ISP_REPROCESSING]-(destroy[174]):destroy() is succeed, Pipe(208)
[CAM(1)][PIPE_ISP_REPROCESSING]-(destroy[138]):destroy() is succeed (208)
[CAM(1)][PIPE_MCSC_REPROCESSING]-(destroy[103]):
[CAM(1)][PIPE_MCSC_REPROCESSING]-(destroy[174]):destroy() is succeed, Pipe(222)
[CAM(1)][PIPE_MCSC_REPROCESSING]-(destroy[103]):
[CAM(1)][PIPE_MCSC_REPROCESSING]-(destroy[174]):destroy() is succeed, Pipe(222)
[CAM(1)][PIPE_MCSC_REPROCESSING]-(destroy[138]):destroy() is succeed (222)
removeConnection, index : 0, size : 1
# removeConnection, index : 0, size : 0
Calling activate off 1600221811
[SO] activate (ident=0x73843e2ac0, enabled=0)
[SO] AR_init
[SO] Reset Rotation oldrotation [100]
activate: handle 1 enable 0
[CAM(1)][PIPE_VRA_REPROCESSING]-(destroy[121]):destroy() is succeed (229)
[CAM(1)][PIPE_VRA_REPROCESSING]-(destroy[121]):destroy() is succeed (229)
csc_deinit:: unsupported csc_hw_type
[CAM(1)][PIPE_GSC_REPROCESSING]-(m_destroy[119]):destroy() is succeed (232)
csc_deinit:: unsupported csc_hw_type
[CAM(1)][PIPE_GSC_REPROCESSING2]-(m_destroy[119]):destroy() is succeed (233)
csc_deinit:: unsupported csc_hw_type
[CAM(1)][PIPE_GSC_REPROCESSING3]-(m_destroy[119]):destroy() is succeed (234)
[CAM(1)][PIPE_JPEG_REPROCESSING]-(m_destroy[119]):destroy() is succeed (235)
[CAM(1)][PIPE_PP_UNI_REPROCESSING]-(destroy[121]):destroy() is succeed (244)
[CAM(1)][PIPE_PP_UNI_REPROCESSING]-(m_destroy[112]):destroy() is succeed (244)
[CAM(1)][PIPE_PP_UNI_REPROCESSING2]-(destroy[121]):destroy() is succeed (245)
[CAM(1)][PIPE_PP_UNI_REPROCESSING2]-(m_destroy[112]):destroy() is succeed (245)
[CAM(1)][PIPE_PP_UNI_RAW_REPROCESSING]-(destroy[121]):destroy() is succeed (246)
[CAM(1)][PIPE_PP_UNI_RAW_REPROCESSING]-(m_destroy[112]):destroy() is succeed (246)
[CAM(1)][Front_0]-(destroy[139]):
[CAM(1)][Front_0]-(m_transitState[767]):Skip state transition. curState 0
[CAM(1)][Front_0]-(destroy[139]):
[CAM(1)][Front_0]-(m_transitState[767]):Skip state transition. curState 0
[CAM(1)][Front_0]-(destroy[139]):
type : 1, enable : 0
[CAM(1)][PIPE_FLITE]-(destroy[103]):
[CAM(1)][PIPE_FLITE]-(destroy[174]):destroy() is succeed, Pipe(0)
[CAM(1)][PIPE_FLITE]-(destroy[103]):
[CAM(1)][PIPE_FLITE]-(destroy[174]):destroy() is succeed, Pipe(0)
[CAM(1)][PIPE_FLITE]-(destroy[138]):destroy() is succeed (0)
[CAM(1)][PIPE_3AA]-(destroy[103]):
CallStack::getCurrentInternal not linked, returning null
CallStack::logStackInternal not linked
[CAM(1)][Front_0]-(m_sensorListenerUnloadThreadFunc[27481]):-OUT-
[CAM(1)][PIPE_3AA]-(destroy[174]):destroy() is succeed, Pipe(6)
[CAM(1)][PIPE_3AA]-(destroy[103]):
[CAM(1)][PIPE_3AA]-(destroy[174]):destroy() is succeed, Pipe(6)
[CAM(1)][PIPE_3AA]-(destroy[138]):destroy() is succeed (6)
[CAM(1)][PIPE_ISP]-(destroy[103]):
[CAM(1)][PIPE_ISP]-(destroy[174]):destroy() is succeed, Pipe(11)
[CAM(1)][PIPE_ISP]-(destroy[103]):
[CAM(1)][PIPE_ISP]-(destroy[174]):destroy() is succeed, Pipe(11)
[CAM(1)][PIPE_ISP]-(destroy[138]):destroy() is succeed (11)
[CAM(1)][PIPE_MCSC]-(destroy[103]):
[CAM(1)][PIPE_MCSC]-(destroy[174]):destroy() is succeed, Pipe(26)
[CAM(1)][PIPE_MCSC]-(destroy[103]):
[CAM(1)][PIPE_MCSC]-(destroy[174]):destroy() is succeed, Pipe(26)
[CAM(1)][PIPE_MCSC]-(destroy[138]):destroy() is succeed (26)
[CAM(1)][PIPE_VRA]-(destroy[121]):destroy() is succeed (33)
[CAM(1)][PIPE_VRA]-(destroy[121]):destroy() is succeed (33)
csc_deinit:: unsupported csc_hw_type
[CAM(1)][PIPE_GSC]-(m_destroy[119]):destroy() is succeed (41)
csc_deinit:: unsupported csc_hw_type
[CAM(1)][PIPE_GSC_VIDEO]-(m_destroy[119]):destroy() is succeed (42)
csc_deinit:: unsupported csc_hw_type
[CAM(1)][PIPE_GSC_PICTURE]-(m_destroy[119]):destroy() is succeed (43)
[CAM(1)][PIPE_JPEG]-(m_destroy[119]):destroy() is succeed (44)
[CAM(1)][PIPE_PP_UNI0]-(destroy[121]):destroy() is succeed (53)
[CAM(1)][PIPE_PP_UNI0]-(m_destroy[112]):destroy() is succeed (53)
[CAM(1)][PIPE_PP_UNI1]-(destroy[121]):destroy() is succeed (54)
[CAM(1)][PIPE_PP_UNI1]-(m_destroy[112]):destroy() is succeed (54)
[CAM(1)][PIPE_PP_UNI2]-(destroy[121]):destroy() is succeed (55)
[CAM(1)][PIPE_PP_UNI2]-(m_destroy[112]):destroy() is succeed (55)
[CAM(1)][PIPE_PP_SINGLE0]-(destroy[121]):destroy() is succeed (56)
[CAM(1)][PIPE_PP_SINGLE0]-(m_destroy[112]):destroy() is succeed (56)
[CAM(1)][Front_0]-(destroy[139]):
[CAM(1)][Front_0]-(m_transitState[767]):Skip state transition. curState 0
[CAM(1)][Front_0]-(destroy[139]):
[CAM(1)][Front_0]-(m_transitState[767]):Skip state transition. curState 0
[CAM(1)][Front_0]-(m_deinitFrameFactory[3532]):-OUT-
DEBUG:duration time(   33 msec):(m_deinitFrameFactory)
CallStack::getCurrentInternal not linked, returning null
CallStack::logStackInternal not linkedcamera
CallStack::getCurrentInternal not linked, returning null
CallStack::logStackInternal not linked
CallStack::getCurrentInternal not linked, returning null
CallStack::logStackInternal not linked
CallStack::getCurrentInternal not linked, returning null
CallStack::logStackInternal not linked
[CAM(1)][Front_0]-(m_vendorSpecificDestructor[145]):-IN-
[CAM(1)][Front_0]-(m_vendorSpecificDestructor[173]):-OUT-
[CAM(1)][Front_0]-(m_deinit[1072]):-OUT-
[CAM(1)][Front_0]-(m_deinitMultiCam[1078]):-IN-
[CAM(1)][Front_0]-(m_deinitMultiCam[1133]):-OUT-
INFO(HAL3_camera_device_close[358]):close camera(1)
INFO(HAL3_camera_device_close[373]):out =====
DEBUG:duration time(   55 msec):(HAL3_camera_device_close)
onScanResult to scannerId: 6- eventType=0x1b, addressType=1, address=45:6, primaryPhy=1, secondaryPhy=0, advertisingSid=0xff, txPower=127, rssi=-77, periodicAdvInt=0x0
CameraPerf: close X
disconnectLocked: disconnecting stream 0 from native window
updateUserActivitySummaryLocked : don't have time to smart stay
Stream 0 dequeueBuffer latency histogram (22) samples:
        5     10     15     20     25     30     35     40     45    inf (max ms)
     90.91   0.00   0.00   4.55   0.00   0.00   0.00   0.00   0.00   4.55 (%)
Stream 0 enqueueBuffer latency histogram (15) samples:
        5     10     15     20     25     30     35     40     45    inf (max ms)
     66.67   26.67   6.67   0.00   0.00   0.00   0.00   0.00   0.00   0.00 (%)
disconnectImpl: X
BasicClient::disconnect E
finishCameraOps: Finish camera ops, package name = com.samsung.android.smartface, client UID = 1000
getTransport: Cannot find entry [email protected]::ISehBiometricsFace/default in either framework or device manifest.
decreaseCamConnRef: ref=0
decreaseCamConnRef: service.camera.running set to 0
updateProxyDeviceState: notifyCameraState for Camera ID 2,  newState 3, facing 1, clientName com.samsung.android.smartface, apiLevel 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.android.smartface API Level 2
postSingleUpdate device: camera id 2 status STATUS_PRESENT
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.android.smartface API Level 2
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.android.smartface API Level 2
postSingleUpdate device: camera id 2 status STATUS_PRESENT
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.android.smartface API Level 2
onCameraDeviceStateChangedLocked: post device state update
onCameraDeviceStateChangedLocked: post device state update
deviceClosed: device 2 is closed
disconnect: Disconnected client for camera 2 for PID 22984
BasicClient::disconnect X
Camera 2 facing CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.android.smartface API Level 2
closeCamera E
updateUserActivitySummaryLocked : don't have time to smart stay
mWakeLock.release() in FD
Listener does not implements SmartFaceInfoListener2
checkForSmartStay X: false
faceDetect : bFaceDetected : false
handleSmartStay : mFaceDetected : false
onScanResult to scannerId: 6- eventType=0x1b, addressType=1, address=45:6, primaryPhy=1, secondaryPhy=0, advertisingSid=0xff, txPower=127, rssi=-86, periodicAdvInt=0x0
onScanResult to scannerId: 6- eventType=0x1b, addressType=1, address=45:6, primaryPhy=1, secondaryPhy=0, advertisingSid=0xff, txPower=127, rssi=-85, periodicAdvInt=0x0
onScanResult to scannerId: 6- eventType=0x1b, addressType=1, address=45:6, primaryPhy=1, secondaryPhy=0, advertisingSid=0xff, txPower=127, rssi=-76, periodicAdvInt=0x0
!@   8,0 r 5392465 132158248 w 605976 21006732 d 241603 17714904 f 150682 226295 iot 1948088 1791915 th 51200 51200 45792 pt 3840 inp 0 0 19799.623
updateUserActivitySummaryLocked : don't have time to smart stay
onScanResult to scannerId: 6- eventType=0x1b, addressType=1, address=45:6, primaryPhy=1, secondaryPhy=0, advertisingSid=0xff, txPower=127, rssi=-85, periodicAdvInt=0x0
update stats : write (63)
WifiActivityEnergyInfo was updated
BluetoothActivityEnergyInfo was updated
updateUserActivitySummaryLocked : don't have time to smart stay
updateUserActivitySummaryLocked : don't have time to smart stay
ModemActivityEnergyInfo was updated
getTransport: Cannot find entry [email protected]::IPowerStats/default in either framework or device manifest.
getTransport: Cannot find entry [email protected]::IPower/default in either framework or device manifest.
Unable to load Power Hal or power.stats HAL
done updateExternalStatsLocked
UserActivityState : 1 -> 4
Nap time (uid 1000)...
BroadcastReceiver flag = 3
action  :  com.samsung.server.PowerManagerService.action.USER_ACTIVITY
handleSandman : startDreaming: false  (canDreamLocked: false  canDozeLocked: false)
!@Screen__Off - 24 :  dream(timeout) (2)
Going to sleep due to timeout (uid 1000)...
setInteractive(false)
mDisplayReady: false
mDisplayReady: false
Setting HAL interactive mode to false
!@sysfs_write +: /sys/class/power_supply/battery/lcd: 0
!@sysfs_write +: /sys/class/sec/tsp/input/enabled: 0
[PWL] Off : 0s ago
!@sysfs_write -: /sys/class/power_supply/battery/lcd: 0
[PWL]   PowerManagerService.Display: ref count=1
[PWL]     mUserActivitySummary : 0x4
[PWL]     mDisplayReady : false
animateScreenStateChange: target=1, targetInternal=1, dualScreenPolicy=-1
updateUidProcState uid: 10009 procState: 5 capability:7
id=1170 createSurf (1080x2340),2 flag=4, ColorFade#0
isConnectedDexOnPC false
Not an enterprise user : 0
Not an enterprise user : 0
notifyMonitoredUids
Started going to sleep... (why=OFF_BECAUSE_OF_TIMEOUT)
screenTurnOff
screenTurnOff
executeAction 0x210002
onStartedGoingToSleep(3)
execute 0x210002
cancel
system uid
submit task[21]
Task[21] begins - action[0x210002]
no LockScreen
[mali_gralloc_allocate] begin
buffer_descriptor: wh(1080 2340) usage_pc(0x366 0x306) hal_format(0x1) layer_count(1) sizes(0 0 0) strde(0) byte_stride(0) alloc_wh(0 0) internal_format(0x0) alloc_format(0x0) fd_count(1) plane_count(0)
Task[21] ends - action[0x210002]
[mali_gralloc_allocate] allocation successful
Not an enterprise user : 0
Not an enterprise user : 0
onDeviceLocked : User 0
Not an enterprise user : 0
Not an enterprise user : 0
Not an enterprise user : 0
onDeviceLocked : User 0
Not an enterprise user : 0
Not an enterprise user : 0
Not an enterprise user : 0
!@sysfs_write -: /sys/class/sec/tsp/input/enabled: 0
Lock icon state is 0
onStartedGoingToSleep()
Calling batch handle==36 flags=0 rate=0 timeout== 0
batch: handle=36 period=1000000 timeout=0
activate: handle 36 enable 1
type : 36, enable : 1
registerListener :: 36, Wake Up Motion, 0, 0, com.android.systemui.sensor.PickupController@bf8810f
register
onStartedGoingToSleep why :3
Not an enterprise user : 0
Not an enterprise user : 0
onStartedGoingToSleep enabled: true aodClockTransition : false
onStartedGoingToSleep() aodTransition[false]
notifyAction action[SCREEN_OFF] arg[false]
notifyActions() action[screen_off]
setViewMode : 0
call action[screen_off]
onViewModeChanged mode: 0
onViewModeChanged mStateListenerList.size(): 12
onViewModeChanged mode: 0
onViewModeChanged mode: 0
onViewModeChanged mode: 0
onViewModeChanged mViewMode[0], newMode[0]
onViewModeChanged : 0
setViewMode() newMode:0, oldMode:0
onViewModeChanged() ShortcutInvisible: false
updateCameraVisibility isCameraDisabled:false visible:true
mIndicationArea margin start : 158, end : 158, bottom : 145
onViewModeChanged : 0
shouldContainerVisible() reason = (view mode) true
onViewModeChanged mode : 0
setTouchIgnored() true
onStartedGoingToSleep(): get lock screen data
do action : switch_lock_wallpaper
 

John Leeson

Member
Licensed User
Longtime User
Thanks for the reply,

The app has several pages - a login page, and then a couple more pages that the user needs to navigate through before they get to the one where they can take a picture.

when the 'crash' occurs, after you have taken the photo, the app restarts and returns to the login page, it doesn't return to the page that called the camera and there are no error messages in the filtered log.

It seems to happen quite regularly on a samsung A50 with android 11 but rarely, if ever, on a motorola, which is also android 11.
 
Upvote 0

John Leeson

Member
Licensed User
Longtime User
I've taken about 200 photos, it happened 4 times - each time was when the phone had been turned landscape (the app is portrait). One time it happened for 2 photos in a row, other times it will go 30-40 photos in-between it happening, so it's quite inconsistent, and because it doesn't happen that often, I couldn't say 100% that it is to do with the orientation.

You can actually tell that it has closed even before you return from the camera because the screen will sometimes dim or so a sort of flicker.

The app might be used to take 300+ photos in a day, so although it doesn't happen that often, it is an irritant for the user, and I guess other people might have come across something similar.

If I get time today I'm going to see if it ever happens with Erel's example project
 
Upvote 0
Top