Error on gstreamer data acquistion

Hi all,
I have a problem on my devkit Jetson TX2. I am trying to record some video from the onboard camera, but sometimes (I can’t isolate the conditions on when it happens) the camera just stops working, and reboot does not solve anything. Even the most basic gstreamer pipeline (example nvarguscamerasrc ! nvoverlaysink) fails. If I go to the nvargus-daemon output, this is what happens:

=== NVIDIA Libargus Camera Service (0.97.3)=== Listening for connections...=== gst-launch-1.0[9514]: Connection established (7FA6BA91D0)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree: /proc/device-tree/tegra-virtual-camera-platform/modules/module0/drivernode1
OFParserGetVirtualDevice: virtual device driver node not found in proc device-tree: /proc/device-tree/tegra-virtual-camera-platform/modules/module1/drivernode0
---- imager: No override file found. ----
=== gst-launch-1.0[9514]: CameraProvider initialized (0x7fa06e49a0)SCF: Error Timeout: ISP port 0 timed out! (in src/services/capture/NvIspHw.cpp, function waitIspFrameEnd(), line 478)
Error: waitCsiFrameStart timeout guid 0
VI Stream Id = 2 Virtual Channel = 0
************VI Debug Registers**********
VI_CSIMUX_STAT_FRAME_8 = 0x00000000
VI_ISPBUFA_ERROR_0 = 0x00000000
VI_FMLITE_ERROR_0 = 0x00000000
VI_NOTIFY_ERROR_0 = 0x00000000
CSI Stream Id = 2 Brick Id = 1
************CSI Debug Registers**********
CILA_INTR_STATUS_CILA[0x20400] = 0x00000089
CILB_INTR_STATUS_CILB[0x20c00] = 0x00000000
INTR_STATUS[0x200a4] = 0x00000000
INTR_STATUS[0x200a4] = 0x00000000
ERR_INTR_STATUS[0x200ac] = 0x00000000
ERROR_STATUS2VI_VC0[0x20094] = 0x00000000
ERROR_STATUS2VI_VC1[0x20098] = 0x00000000
ERROR_STATUS2VI_VC2[0x2009c] = 0x00000000
ERROR_STATUS2VI_VC3[0x200a0] = 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)

The version of the L4T installed is this one:

nvidia@nvidia-desktop:~$ head -n1 /etc/nv_tegra_release
# R32 (release), REVISION: 2.1, GCID: 16294929, BOARD: t186ref, EABI: aarch64, DATE: Tue Aug 13 04:45:36 UTC 2019

And the two pipeline I am interested to run are:

  • High resolution: nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)2592, height=(int)1944 ! nvvidconv ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=file.mp4
  • High framerate: nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=120/1 ! nvvidconv ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=file.mp4

Can someone suggest me some possible fixes?
Thanks in advance!

For information, please share which sensor you use. It looks to be an issue in sensor dirver since nvarguscamerasrc ! nvoverlaysink fails to run. Suggest you check Camera Development in development guide