Nvargus deamon failure during video capture from ov9732

Hi,
we are trying to capture video from our camera sensor ov9732 on TX2 with SDk32.4.3.

command which we are trying is

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM),width=1280, height=720, framerate=30/1, format=NV12’ ! omxh264enc control-rate=2 bitrate=2000000 ! splitmuxsink max-files=3 send-keyframe-requests=true location=/home/ubuntu/videos/left_video%02d.mp4 max-size-time=30000000000 -e

Nvargus deamon failure error:

Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Session.cpp, function capture(), line 667)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: (Argus) Error InvalidState: (propagating from src/api/ScfCaptureThread.cpp, function run(), line 109)
Feb 5 14:46:34 localhost nvargus-daemon[7361]: SCF: Error InvalidState: Session has suffered a critical failure (in src/api/Ses

VI crash logs:

Feb 5 15:00:29 localhost kernel: [ 344.242348] fence timeout on [ffffffc0a4a1af00] after 1500ms
Feb 5 15:00:29 localhost kernel: [ 344.242377] name=[nvhost_sync:53], current value=923 waiting value=924
Feb 5 15:00:29 localhost kernel: [ 344.242392] fence timeout on [ffffffc0a4a1a9c0] after 1500ms
Feb 5 15:00:29 localhost kernel: [ 344.242409] name=[nvhost_sync:52], current value=923 waiting value=924
Feb 5 15:00:29 localhost kernel: [ 344.242412] ---- mlocks ----
Feb 5 15:00:29 localhost kernel: [ 344.242422] ---- mlocks ----
Feb 5 15:00:29 localhost kernel: [ 344.242449]
Feb 5 15:00:29 localhost kernel: [ 344.242456] ---- syncpts ----
Feb 5 15:00:29 localhost kernel: [ 344.242459]
Feb 5 15:00:29 localhost kernel: [ 344.242463] ---- syncpts ----
Feb 5 15:00:29 localhost kernel: [ 344.242501] id 16 (15340000.vic_gst-launch-1.0_0) min 372 max 372 refs 1 (previous client : 15340000.vic_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.242522] id 21 (15340000.vic_gst-launch-1.0_0) min 1566 max 1566 refs 1 (previous client : 15340000.vic_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.242536] id 23 (154c0000.nvenc_gst-launch-1.0_0) min 850 max 850 refs 1 (previous client : 154c0000.nvenc_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.242548] id 24 (15340000.vic_gst-launch-1.0_0) min 373 max 373 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.242558] id 25 (15340000.vic_gst-launch-1.0_0) min 559 max 559 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.242572] id 28 (154c0000.nvenc_gst-launch-1.0_0) min 152 max 152 refs 1 (previous client : 154c0000.nvenc_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.242583] id 29 (154c0000.nvenc_gst-launch-1.0_0) min 64 max 64 refs 1 (previous client : 154c0000.nvenc_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.242594] id 30 (15600000.isp_nvargus-daemon_0) min 129 max 129 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.242604] id 31 (15600000.isp_nvargus-daemon_1) min 83 max 83 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.242616] id 32 (15600000.isp_nvargus-daemon_2) min 3726 max 3726 refs 1 (previous client : 15600000.isp_nvargus-daemon_0)
Feb 5 15:00:29 localhost kernel: [ 344.242627] id 33 (15600000.isp_nvargus-daemon_3) min 1886 max 1886 refs 1 (previous client : 15600000.isp_nvargus-daemon_1)
Feb 5 15:00:29 localhost kernel: [ 344.242638] id 34 (15600000.isp_nvargus-daemon_4) min 2174 max 2174 refs 1 (previous client : 15600000.isp_nvargus-daemon_2)
Feb 5 15:00:29 localhost kernel: [ 344.242648] id 35 (15600000.isp_nvargus-daemon_5) min 1886 max 1886 refs 1 (previous client : 15600000.isp_nvargus-daemon_3)
Feb 5 15:00:29 localhost kernel: [ 344.242660] id 36 (tegra-vi4) min 13024 max 13024 refs 1 (previous client : 15600000.isp_nvargus-daemon_4)
Feb 5 15:00:29 localhost kernel: [ 344.242671] id 37 (tegra-vi4) min 1972 max 1972 refs 1 (previous client : 15600000.isp_nvargus-daemon_5)
Feb 5 15:00:29 localhost kernel: [ 344.242683] id 39 (gp10b_506) min 114 max 114 refs 1 (previous client : gp10b_506)
Feb 5 15:00:29 localhost kernel: [ 344.242698] id 43 (15700000.vi_0) min 14 max 14 refs 2 (previous client : 15700000.vi_0)
Feb 5 15:00:29 localhost kernel: [ 344.242708] id 44 (15700000.vi_0) min 983 max 984 refs 5 (previous client : 15700000.vi_0)
Feb 5 15:00:29 localhost kernel: [ 344.242719] id 45 (15700000.vi_1) min 982 max 984 refs 5 (previous client : 15700000.vi_1)
Feb 5 15:00:29 localhost kernel: [ 344.242729] id 46 (15700000.vi_2) min 981 max 984 refs 5 (previous client : 15700000.vi_2)
Feb 5 15:00:29 localhost kernel: [ 344.242739] id 47 (150c0000.nvcsi_0) min 104 max 104 refs 2 (previous client : 150c0000.nvcsi_0)
Feb 5 15:00:29 localhost kernel: [ 344.242752] id 49 (gp10b_502) min 12 max 12 refs 1 (previous client : gp10b_502)
Feb 5 15:00:29 localhost kernel: [ 344.242763] id 51 (15700000.vi_0) min 9 max 11 refs 5 (previous client : 15700000.vi_0)
Feb 5 15:00:29 localhost kernel: [ 344.242774] id 52 (15700000.vi_1) min 923 max 926 refs 5 (previous client : 15700000.vi_1)
Feb 5 15:00:29 localhost kernel: [ 344.242784] id 53 (15700000.vi_2) min 923 max 926 refs 5 (previous client : 15700000.vi_2)
Feb 5 15:00:29 localhost kernel: [ 344.242794] id 54 (gp10b_501) min 931 max 931 refs 1 (previous client : 15700000.vi_2)
Feb 5 15:00:29 localhost kernel: [ 344.242805] id 55 (15340000.vic_nvargus-daemon_0) min 6 max 6 refs 1 (previous client : gp10b_500)
Feb 5 15:00:29 localhost kernel: [ 344.242815] id 56 (gp10b_500) min 6 max 6 refs 1 (previous client : 15340000.vic_nvargus-daemon_0)
Feb 5 15:00:29 localhost kernel: [ 344.242826] id 57 (gp10b_499) min 6 max 6 refs 1 (previous client : 15340000.vic_nvargus-daemon_0)
Feb 5 15:00:29 localhost kernel: [ 344.242835] id 58 (15340000.vic_nvargus-daemon_0) min 6 max 6 refs 1 (previous client : gp10b_499)
Feb 5 15:00:29 localhost kernel: [ 344.242846] id 59 (gp10b_498) min 12 max 12 refs 1 (previous client : gp10b_498)
Feb 5 15:00:29 localhost kernel: [ 344.242856] id 60 (gp10b_497) min 12 max 12 refs 1 (previous client : gp10b_497)
Feb 5 15:00:29 localhost kernel: [ 344.242866] id 61 (gp10b_496) min 12 max 12 refs 1 (previous client : gp10b_496)
Feb 5 15:00:29 localhost kernel: [ 344.242876] id 62 (gp10b_495) min 12 max 12 refs 1 (previous client : gp10b_495)
Feb 5 15:00:29 localhost kernel: [ 344.242886] id 63 (gp10b_494) min 12 max 12 refs 1 (previous client : gp10b_494)
Feb 5 15:00:29 localhost kernel: [ 344.242898] id 64 (gp10b_493) min 12 max 12 refs 1 (previous client : gp10b_493)
Feb 5 15:00:29 localhost kernel: [ 344.242908] id 65 (gp10b_492) min 12 max 12 refs 1 (previous client : gp10b_492)
Feb 5 15:00:29 localhost kernel: [ 344.242918] id 66 (gp10b_491) min 12 max 12 refs 1 (previous client : gp10b_491)
Feb 5 15:00:29 localhost kernel: [ 344.243623]
Feb 5 15:00:29 localhost kernel: [ 344.243630] ---- channels ----
Feb 5 15:00:29 localhost kernel: [ 344.243660] id 16 (15340000.vic_gst-launch-1.0_0) min 372 max 372 refs 1 (previous client : 15340000.vic_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.243673]
Feb 5 15:00:29 localhost kernel: [ 344.243673] channel 2 - 15820000.se
Feb 5 15:00:29 localhost kernel: [ 344.243673]
Feb 5 15:00:29 localhost kernel: [ 344.243678] id 21 (15340000.vic_gst-launch-1.0_0) min 1566 max 1566 refs 1 (previous client : 15340000.vic_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.243681] NvHost basic channel registers:
Feb 5 15:00:29 localhost kernel: [ 344.243689] CMDFIFO_STAT_0: 00002040
Feb 5 15:00:29 localhost kernel: [ 344.243693] id 23 (154c0000.nvenc_gst-launch-1.0_0) min 850 max 850 refs 1 (previous client : 154c0000.nvenc_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.243700] CMDFIFO_RDATA_0: c4962100
Feb 5 15:00:29 localhost kernel: [ 344.243705] id 24 (15340000.vic_gst-launch-1.0_0) min 373 max 373 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.243715] CMDP_OFFSET_0: 00000000
Feb 5 15:00:29 localhost kernel: [ 344.243717] id 25 (15340000.vic_gst-launch-1.0_0) min 559 max 559 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.243724] CMDP_CLASS_0: 00000000
Feb 5 15:00:29 localhost kernel: [ 344.243729] id 28 (154c0000.nvenc_gst-launch-1.0_0) min 152 max 152 refs 1 (previous client : 154c0000.nvenc_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.243732] CHANNELSTAT_0: 00000000
Feb 5 15:00:29 localhost kernel: [ 344.243737] The CDMA sync queue is empty.
Feb 5 15:00:29 localhost kernel: [ 344.243742] id 29 (154c0000.nvenc_gst-launch-1.0_0) min 64 max 64 refs 1 (previous client : 154c0000.nvenc_gst-launch-1.0_0)
Feb 5 15:00:29 localhost kernel: [ 344.243745]
Feb 5 15:00:29 localhost kernel: [ 344.243754] id 30 (15600000.isp_nvargus-daemon_0) min 129 max 129 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.243756]
Feb 5 15:00:29 localhost kernel: [ 344.243756] channel 3 - 15830000.se
Feb 5 15:00:29 localhost kernel: [ 344.243756]
Feb 5 15:00:29 localhost kernel: [ 344.243761] NvHost basic channel registers:
Feb 5 15:00:29 localhost kernel: [ 344.243766] id 31 (15600000.isp_nvargus-daemon_1) min 83 max 83 refs 1 (previous client : tegra-vi4)
Feb 5 15:00:29 localhost kernel: [ 344.243769] CMDFIFO_STAT_0: 00002040
Feb 5 15:00:29 localhost kernel: [ 344.243774] CMDFIFO_RDATA_0: 22450226
Feb 5 15:00:29 localhost kernel: [ 344.243778] id 32 (15600000.isp_nvargus-daemon_2) min 3726 max 3726 refs 1 (previous client : 15600000.isp_nvargus-daemon_0)
Feb 5 15:00:29 localhost kernel: [ 344.243786] CMDP_OFFSET_0: 00000000

hello anupam.kumar,

it shows fence timeout from the VI crash logs,
let’s narrow down the issue, could you please refer to Applications Using V4L2 IOCTL Directly, by using V4L2 IOCTL to verify basic camera functionality.
thanks

Hi Jerry,
it is not like that this command is not working…some times we are able to capture the video usng gst-launch command but some time it is giving error in nvargus-deamon and VI crash.

can you please help here it is random behaviour.

Also we are able to capture video using v4l2 command,v4l2 command is working properly we are able to capture raw image.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

hello anupam.kumar,

may I know what’s the failure rate?
could you please try to enable camera stream with argus_camera application, and enable ae_lock to force exposure controls for verification.
thanks