LOGs:
>>> 1 capture session ; 4 cameras
[START REPEAT CAPTURE]
ClipHelper
allowIspClipping: true
maxIspDownscale: 4.0:1 4000
maxIspOutWidth: 6144,4096
ispIn: (3840 x 2160)
PRU enabled: false, interleaved input: (0 x 0)
postProcessingSize: (3840 x 2160)
postIspClip: (0.00,0.00, 1.00,1.00)
ispOut[0]: (3840 x 2160)
ispClip[0]: (0.00,0.00, 1.00,1.00)
ispOut[1]: (0 x 0)
ispClip[1]: (0.00,0.00, 1.00,1.00)
out[0] 3840x2160 req (0.00,0.00, 1.00,1.00) final (0.00,0.00, 1.00,1.00) isp from isp[0]
[CONSUMER CONNECTS TO EGL STREAM #0]
StageGroup 0x7f40003b60 parent=(nil) 3840x2160 (1 exposure) obufMask=f finalMask=0
StageGroup 0x7f40003e80 parent=0x7f40003b60 3840x2160 (1 exposure) obufMask=f finalMask=f
stages[0] = 36 SensorISPCaptureStage(in = 12, outA= 0, outB = 12, outThumb = 4, outMeta = 5, outStats = 6) routed
m_bufStates[0] = 0 attached output done readOrder=0 writeOrder=1 group=0x7f40003e80 fbs=isp0
3840x2160 BL U8_V8_ER 420SP
m_bufStates[1] = 1 attached output done readOrder=0 writeOrder=1 group=0x7f40003b60 fbs=none
3840x2160 BL U8_V8_ER 420SP
[CONSUMER CONNECTS TO EGL STREAM #1]
m_bufStates[2] = 2 attached output done readOrder=0 writeOrder=1 group=0x7f40003b60 fbs=none
3840x2160 BL U8_V8_ER 420SP
m_bufStates[3] = 3 attached output done readOrder=0 writeOrder=1 group=0x7f40003b60 fbs=none
3840x2160 BL U8_V8_ER 420SP
m_bufStates[4] = 4 attached readOrder=0 writeOrder=1 group=0x7f40003e80 AF fbs=none
640x360 Pitch Y8_ER 420
m_bufStates[5] = 5 readOrder=0 writeOrder=1 group=0x7f40003e80 fbs=none
3840x1 Pitch NonColor8
m_bufStates[6] = 6 readOrder=0 writeOrder=1 group=0x7f40003e80 fbs=none
[CONSUMER CONNECTS TO EGL STREAM #2]
524288x1 Pitch NonColor8
GraphHelper blit pixel count=49766400 != ClipHelper blit pixel count=0
[CONSUMER CONNECTS TO EGL STREAM #3]
[START JPEG ENCODING/WRITING]
→ everything fine except data is from always camera #0
>>> 1 capture session ; 5 cameras
[TRYING TO CREATE 1 CAPTURE SESSION WITH A LIST OF 5 CAMERAS DEVICES]
SCF: Error BadValue: device not found (in src/common/DeviceRegistry.h, function assign(), line 142)
SCF: Error BadValue: (propagating from src/api/CameraDriver.cpp, function createSession(), line 525)
(Argus) Error BadValue: (propagating from src/api/CaptureSessionImpl.cpp, function initialize(), line 120)
(Argus) Error BadValue: (propagating from src/api/CameraProviderImpl.cpp, function createCaptureSession(), line 250)
(NvCameraUtils) Error InvalidState: Mutex not initialized (/dvs/git/dirty/git-master_linux/camera/argus/src/api/CaptureSessionImpl.cpp:197) (in Mutex.cpp, function lock(), line 79)
(Argus) Error InvalidState: Element not found (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamerautils/inc/Vector.h, function remove(), line 172)
(NvCameraUtils) Error InvalidState: Mutex has not been initialized (in Mutex.cpp, function unlock(), line 88)
[APPLICATION DIAGNOSES THAT THE CAPTURE SESSION POINTER IS NULL ; EXITING...]
>>> 1 capture session ; 6 cameras
[TRYING TO CREATE 1 CAPTURE SESSION WITH A LIST OF 6 CAMERAS DEVICES]
SCF: Error BadValue: device not found (in src/common/DeviceRegistry.h, function assign(), line 142)
SCF: Error BadValue: (propagating from src/api/CameraDriver.cpp, function createSession(), line 525)
(Argus) Error BadValue: (propagating from src/api/CaptureSessionImpl.cpp, function initialize(), line 120)
(Argus) Error BadValue: (propagating from src/api/CameraProviderImpl.cpp, function createCaptureSession(), line 250)
Segmentation fault (core dumped)
gdb backtrace:
Thread 1 "our_application" received signal SIGSEGV, Segmentation fault.
0x0000007fb6fd76d8 in typeinfo for nvcamerautils::ManagedObject () from /usr/lib/aarch64-linux-gnu/tegra/libnvcamerautils.so
(gdb) backtrace
#0 0x0000007fb6fd76d8 in typeinfo for nvcamerautils::ManagedObject () from /usr/lib/aarch64-linux-gnu/tegra/libnvcamerautils.so
#1 0x0000007fb7f1c880 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvargus.so
#2 0x0000007fb7f1aa38 in ?? () from /usr/lib/aarch64-linux-gnu/tegra/libnvargus.so
#3 0x0000005555644064 in our_function_to_create_capture_sessions (this=0x55557db970) at ...
#4 0x0000005555641f40 in our_init_function (this=0x55557db970) at ....
#5 0x000000555560a304 in a_higher_level_function (argc=5, argv=0x7fffffd8c8) at ...
#6 0x000000555560a7b8 in main (argc=., argv=0x..........) at ...
>>> 5 capture sessions ; 5 cameras
When it hangs:
[CONSUMER CONNECTS TO EGL STREAM #4 AND START PROCESSING DATA]
(NvCamV4l2) Error IoctlFailed: (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function streamControl(), line 1661)
(NvOdmDevice) Error IoctlFailed: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 205)
(NvCamV4l2) Error IoctlFailed: (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function setControlValMultiple(), line 792)
(NvOdmDevice) Error IoctlFailed: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function setDeviceControls(), line 1856)
updateOutputSettings: Set Control failed. Use cached values
(NvCamV4l2) Error IoctlFailed: (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function streamControl(), line 1661)
(NvOdmDevice) Error IoctlFailed: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 205)
(NvCamV4l2) Error IoctlFailed: (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function setControlValMultiple(), line 792)
(NvOdmDevice) Error IoctlFailed: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function setDeviceControls(), line 1856)
updateOutputSettings: Set Control failed. Use cached values
Error: waitCsiFrameStart timeout guid 2
VI Stream Id = 3 Virtual Channel = 0
************VI Debug Registers**********
VI_CSIMUX_STAT_FRAME_12 = 0x00000000
VI_CSIMUX_FRAME_STATUS_0 = 0x00000000
VI_CFG_INTERRUPT_STATUS_0 = 0x3f000000
VI_ISPBUFA_ERROR_0 = 0x00000000
VI_FMLITE_ERROR_0 = 0x00000000
VI_NOTIFY_ERROR_0 = 0x00000000
*****************************************
CSI Stream Id = 3 Brick Id = 1
************CSI Debug Registers**********
CILA_INTR_STATUS_CILA[0x20400] = 0x00000000
CILB_INTR_STATUS_CILB[0x20c00] = 0x00000000
INTR_STATUS[0x208a4] = 0x00000000
INTR_STATUS[0x208a4] = 0x00000000
ERR_INTR_STATUS[0x208ac] = 0x00000000
ERROR_STATUS2VI_VC0[0x20894] = 0x00000000
ERROR_STATUS2VI_VC1[0x20898] = 0x00000000
ERROR_STATUS2VI_VC2[0x2089c] = 0x00000000
ERROR_STATUS2VI_VC3[0x208a0] = 0x00000000
*****************************************
SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameStart(), line 624)
SCF: Error BadValue: (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
Error: waitCsiFrameEnd timeout guid 2
VI Stream Id = 3 Virtual Channel = 0
************VI Debug Registers**********
VI_CSIMUX_STAT_FRAME_12 = 0x00000000
VI_CSIMUX_FRAME_STATUS_0 = 0x00000000
VI_CFG_INTERRUPT_STATUS_0 = 0x3f000000
VI_ISPBUFA_ERROR_0 = 0x00000000
VI_FMLITE_ERROR_0 = 0x00000000
VI_NOTIFY_ERROR_0 = 0x00000000
*****************************************
CSI Stream Id = 3 Brick Id = 1
************CSI Debug Registers**********
CILA_INTR_STATUS_CILA[0x20400] = 0x00000000
CILB_INTR_STATUS_CILB[0x20c00] = 0x00000000
INTR_STATUS[0x208a4] = 0x00000000
INTR_STATUS[0x208a4] = 0x00000000
ERR_INTR_STATUS[0x208ac] = 0x00000000
ERROR_STATUS2VI_VC0[0x20894] = 0x00000000
ERROR_STATUS2VI_VC1[0x20898] = 0x00000000
ERROR_STATUS2VI_VC2[0x2089c] = 0x00000000
ERROR_STATUS2VI_VC3[0x208a0] = 0x00000000
*****************************************
SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameEnd(), line 711)
SCF: Error BadValue: (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameComplete failed (in src/common/Utils.cpp, function workerThread(), line 133)
Error: waitCsiFrameStart timeout guid 3
VI Stream Id = 4 Virtual Channel = 0
************VI Debug Registers**********
VI_CSIMUX_STAT_FRAME_16 = 0x00000000
VI_CSIMUX_FRAME_STATUS_0 = 0x00000010
VI_CFG_INTERRUPT_STATUS_0 = 0x3f000000
VI_ISPBUFA_ERROR_0 = 0x00000000
VI_FMLITE_ERROR_0 = 0x00000000
VI_NOTIFY_ERROR_0 = 0x00000000
*****************************************
CSI Stream Id = 4 Brick Id = 2
************CSI Debug Registers**********
CILA_INTR_STATUS_CILA[0x30400] = 0x00000000
CILB_INTR_STATUS_CILB[0x30c00] = 0x00000000
INTR_STATUS[0x300a4] = 0x00000000
INTR_STATUS[0x300a4] = 0x00000000
ERR_INTR_STATUS[0x300ac] = 0x00000000
ERROR_STATUS2VI_VC0[0x30094] = 0x00000000
ERROR_STATUS2VI_VC1[0x30098] = 0x00000000
ERROR_STATUS2VI_VC2[0x3009c] = 0x00000000
ERROR_STATUS2VI_VC3[0x300a0] = 0x00000000
*****************************************
SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameStart(), line 624)
SCF: Error BadValue: (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
Error: waitCsiFrameEnd timeout guid 3
VI Stream Id = 4 Virtual Channel = 0
************VI Debug Registers**********
VI_CSIMUX_STAT_FRAME_16 = 0x00000000
VI_CSIMUX_FRAME_STATUS_0 = 0x00000010
VI_CFG_INTERRUPT_STATUS_0 = 0x3f000000
VI_ISPBUFA_ERROR_0 = 0x00000000
VI_FMLITE_ERROR_0 = 0x00000000
VI_NOTIFY_ERROR_0 = 0x00000000
*****************************************
CSI Stream Id = 4 Brick Id = 2
************CSI Debug Registers**********
CILA_INTR_STATUS_CILA[0x30400] = 0x00000000
CILB_INTR_STATUS_CILB[0x30c00] = 0x00000000
INTR_STATUS[0x300a4] = 0x00000000
INTR_STATUS[0x300a4] = 0x00000000
ERR_INTR_STATUS[0x300ac] = 0x00000000
ERROR_STATUS2VI_VC0[0x30094] = 0x00000000
ERROR_STATUS2VI_VC1[0x30098] = 0x00000000
ERROR_STATUS2VI_VC2[0x3009c] = 0x00000000
ERROR_STATUS2VI_VC3[0x300a0] = 0x00000000
*****************************************
SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameEnd(), line 711)
SCF: Error BadValue: (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameComplete failed (in src/common/Utils.cpp, function workerThread(), line 133)
(NvCamV4l2) Error IoctlFailed: (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function setControlValMultiple(), line 792)
(NvOdmDevice) Error IoctlFailed: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function setDeviceControls(), line 1856)
updateOutputSettings: Set Control failed. Use cached values
[TRY TO STOP CONSUMER]
SCF: Error Timeout: (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc
[HANGING...]
>>> 6 capture sessions ; 6 cameras
When it hangs:
[CONSUMER CONNECTS TO EGL STREAM #5 AND START PROCESSING DATA]
(NvCamV4l2) Error IoctlFailed: (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function streamControl(), line 1661)
(NvOdmDevice) Error IoctlFailed: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function apply(), line 205)
Error: waitCsiFrameEnd timeout guid 0
VI Stream Id = 5 Virtual Channel = 0
************VI Debug Registers**********
VI_CSIMUX_STAT_FRAME_20 = 0x00000000
VI_CSIMUX_FRAME_STATUS_0 = 0x00000010
VI_CFG_INTERRUPT_STATUS_0 = 0x3f000000
VI_ISPBUFA_ERROR_0 = 0x00000000
VI_FMLITE_ERROR_0 = 0x00000000
VI_NOTIFY_ERROR_0 = 0x00000000
*****************************************
CSI Stream Id = 5 Brick Id = 2
************CSI Debug Registers**********
CILA_INTR_STATUS_CILA[0x30400] = 0x00000000
CILB_INTR_STATUS_CILB[0x30c00] = 0x00000000
INTR_STATUS[0x308a4] = 0x00000000
INTR_STATUS[0x308a4] = 0x00000000
ERR_INTR_STATUS[0x308ac] = 0x00000000
ERROR_STATUS2VI_VC0[0x30894] = 0x00000000
ERROR_STATUS2VI_VC1[0x30898] = 0x00000000
ERROR_STATUS2VI_VC2[0x3089c] = 0x00000000
ERROR_STATUS2VI_VC3[0x308a0] = 0x00000000
*****************************************
SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameEnd(), line 711)
SCF: Error BadValue: (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameComplete failed (in src/common/Utils.cpp, function workerThread(), line 133)
Error: waitCsiFrameStart timeout guid 0
VI Stream Id = 5 Virtual Channel = 0
************VI Debug Registers**********
VI_CSIMUX_STAT_FRAME_20 = 0x00000000
VI_CSIMUX_FRAME_STATUS_0 = 0x00000000
VI_CFG_INTERRUPT_STATUS_0 = 0x3f000000
VI_ISPBUFA_ERROR_0 = 0x00000000
VI_FMLITE_ERROR_0 = 0x00000000
VI_NOTIFY_ERROR_0 = 0x00000000
*****************************************
CSI Stream Id = 5 Brick Id = 2
************CSI Debug Registers**********
CILA_INTR_STATUS_CILA[0x30400] = 0x00000000
CILB_INTR_STATUS_CILB[0x30c00] = 0x00000000
INTR_STATUS[0x308a4] = 0x00000000
INTR_STATUS[0x308a4] = 0x00000000
ERR_INTR_STATUS[0x308ac] = 0x00000000
ERROR_STATUS2VI_VC0[0x30894] = 0x00000000
ERROR_STATUS2VI_VC1[0x30898] = 0x00000000
ERROR_STATUS2VI_VC2[0x3089c] = 0x00000000
ERROR_STATUS2VI_VC3[0x308a0] = 0x00000000
*****************************************
SCF: Error BadValue: timestamp cannot be 0 (in src/services/capture/NvViCsiHw.cpp, function waitCsiFrameStart(), line 624)
SCF: Error BadValue: (propagating from src/common/Utils.cpp, function workerThread(), line 116)
SCF: Error BadValue: Worker thread ViCsiHw frameStart failed (in src/common/Utils.cpp, function workerThread(), line 133)
(NvCamV4l2) Error IoctlFailed: (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function setControlValMultiple(), line 792)
(NvOdmDevice) Error IoctlFailed: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function setDeviceControls(), line 1856)
updateOutputSettings: Set Control failed. Use cached values
[TRY TO STOP CONSUMER]
SCF: Error Timeout: (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc
[HANGING...]