Nvarguscamerasrc does not work without tnr-mode=0

Board: AGX Orin Industrial
L4T Version: r36.4.3


Hello,

I made a custom driver and custom device tree for this board, and the following command works:

env -u DISPLAY gst-launch-1.0 \
  nvarguscamerasrc sensor-id=0 ispdigitalgainrange="1 1" tnr-mode=0 aeantibanding=0 ! \
  "video/x-raw(memory:NVMM),width=1928,height=1208" ! fakesink

But now the following doesn’t work:
(Without `tnr-mode=0`)

env -u DISPLAY gst-launch-1.0 \
  nvarguscamerasrc sensor-id=0 ispdigitalgainrange="1 1" aeantibanding=0 ! \
  "video/x-raw(memory:NVMM),width=1928,height=1208" ! fakesink

It gives the following errors:

gst-launch-1.0 log:

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1928 x 1208 FR = 29,999999 fps Duration = 33333334 ; Analog Gain range min 1000000,000000, max inf; Exposure Range min 1000, max 33333000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 1928 H = 1208
seconds to Run = 0
Frame Rate = 29,999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: CANCELLED
Additional debug info:
Argus Error Status
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 (propagating)
Execution ended after 0:00:00.421240522
Setting pipeline to NULL …
GST_ARGUS: Cleaning up
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
Freeing pipeline …
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
(Argus) Error InvalidState: Argus client is exiting with 4 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)

serial log:

verify_rate_range: FMON_NVCSI: rate 10045312 below min 18750000
fmon_update_config: FMON_NVCSI: detected fault 0x80
verify_rate_range: FMON_NVCSI: rate 10045312 below min 18750000
fmon_update_config: FMON_NVCSI: detected fault 0x80

Argus daemon log:

sept 18 16:45:31 orinagx nvargus-daemon[2876]: === gst-launch-1.0[2878]: CameraProvider destroyed (0xffff9cad4fa0)=== gst-launch-1.0[2878]: Connection closed (FFFFA3ACB840)=== gst-launch-1.0[2878]: Connection cleaned up (FFFFA3ACB840)=== gst-launch-1.0[2936]: Connection established (FFFFA3ACB840)OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module0
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module1
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module2
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module3
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module4
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module5
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module6
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserListModules: module list: /proc/device-tree/tegra-camera-platform/modules/module7
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: WARNING: Could not map module to ISP config string
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclHwGetModuleList: No module data found
sept 18 16:45:31 orinagx nvargus-daemon[2876]: OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
sept 18 16:45:31 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:31 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: (NvOdmDevice) Error ModuleNotPresent: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclStartPlatformDrivers: Failed to start module drivers
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclStateControllerOpen: Failed ImagerGUID 0. (error 0xA000E)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclOpen: PCL Open Failed. Error: 0xf
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 455)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 382)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 554)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:31 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: (NvOdmDevice) Error ModuleNotPresent: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclStartPlatformDrivers: Failed to start module drivers
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclStateControllerOpen: Failed ImagerGUID 1. (error 0xA000E)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: NvPclOpen: PCL Open Failed. Error: 0xf
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 455)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 382)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 554)
sept 18 16:45:31 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:32 orinagx nvargus-daemon[2876]: LSC: LSC surface is not based on full res!
sept 18 16:45:32 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvOdmDevice) Error ModuleNotPresent: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStartPlatformDrivers: Failed to start module drivers
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStateControllerOpen: Failed ImagerGUID 3. (error 0xA000E)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclOpen: PCL Open Failed. Error: 0xf
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 455)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 382)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 554)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvOdmDevice) Error ModuleNotPresent: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStartPlatformDrivers: Failed to start module drivers
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStateControllerOpen: Failed ImagerGUID 4. (error 0xA000E)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclOpen: PCL Open Failed. Error: 0xf
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 455)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 382)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 554)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvOdmDevice) Error ModuleNotPresent: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStartPlatformDrivers: Failed to start module drivers
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStateControllerOpen: Failed ImagerGUID 5. (error 0xA000E)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclOpen: PCL Open Failed. Error: 0xf
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 455)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 382)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 554)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvOdmDevice) Error ModuleNotPresent: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStartPlatformDrivers: Failed to start module drivers
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStateControllerOpen: Failed ImagerGUID 6. (error 0xA000E)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclOpen: PCL Open Failed. Error: 0xf
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 455)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 382)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 554)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: ---- imager: No override file found. ----
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCamV4l2) Error ModuleNotPresent: (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvOdmDevice) Error ModuleNotPresent: (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 111)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStartPlatformDrivers: Failed to start module drivers
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclStateControllerOpen: Failed ImagerGUID 7. (error 0xA000E)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: NvPclOpen: PCL Open Failed. Error: 0xf
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 725)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 455)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 382)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/api/CameraDriver.cpp, function getSource(), line 554)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: === gst-launch-1.0[2936]: CameraProvider initialized (0xffff9d4b5fd0)LSC: LSC surface is not based on full res!
sept 18 16:45:32 orinagx nvargus-daemon[2876]: Module_id 23 Severity 2 : CheckNoiseReduction: Invalid gain
sept 18 16:45:32 orinagx nvargus-daemon[2876]: Module_id 23 Severity 2 : NvMediaISPSetNoiseReduction: Invalid controls for noise reduction
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCameraIspMergeExt) Error BadParameter: NR: error with setting control (in merge/NvCameraIspMergeExt.cpp, function mergeInputNR(), line 2001)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCameraIspMergeExt) Error BadParameter: (propagating from merge/NvCameraIspMergeExt.cpp, function update(), line 1735)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/autocontrol/NvCameraIspDriver.cpp, function getIspProgram(), line 1566)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/autocontrol/NvCameraIspDriver.cpp, function getIspProgram(), line 1617)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/DeviceRecordFusaCapture.cpp, function programIspInternal(), line 126)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureRecord.cpp, function programIsp(), line 461)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureRecord.cpp, function doMEMtoISPCapture(), line 619)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureRecord.cpp, function issueCapture(), line 502)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1565)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/services/capture/CaptureServiceDevice.cpp, function issueCaptures(), line 1394)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: (propagating from src/common/Utils.cpp, function workerThread(), line 125)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error BadParameter: Worker thread CaptureScheduler frameStart failed (in src/common/Utils.cpp, function workerThread(), line 144)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/api/Buffer.cpp, function waitForUnlock(), line 644)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 430)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/api/Buffer.cpp, function waitForUnlock(), line 644)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 430)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/api/Buffer.cpp, function waitForUnlock(), line 644)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 430)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/api/Buffer.cpp, function waitForUnlock(), line 644)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/components/CaptureContainerImpl.cpp, function returnBuffer(), line 430)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: Capture Scheduler not running (in src/services/capture/CaptureServiceDevice.cpp, function addNewItemToSchedule(), line 1039)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: (propagating from src/services/capture/CaptureService.cpp, function addRequest(), line 413)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: (propagating from src/components/stages/MemoryToISPCaptureStage.cpp, function doHandleRequest(), line 148)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: (propagating from src/components/stages/OrderedStage.cpp, function doExecute(), line 158)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: Sending critical error event for Session 2
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (in src/api/Session.cpp, function sendErrorEvent(), line 1039)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: Capture Scheduler not running (in src/services/capture/CaptureServiceDevice.cpp, function addNewItemToSchedule(), line 1039)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: (propagating from src/services/capture/CaptureService.cpp, function addRequest(), line 413)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: (propagating from src/components/stages/SensorCaptureStage.cpp, function doHandleRequest(), line 91)
sept 18 16:45:32 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: (propagating from src/components/stages/OrderedStage.cpp, function doExecute(), line 158)
sept 18 16:45:41 orinagx nvargus-daemon[2876]: SCF: Error Timeout: (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
sept 18 16:45:41 orinagx nvargus-daemon[2876]: Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc for sensor guid 2 count 2822164592
sept 18 16:45:48 orinagx nvargus-daemon[2876]: SCF: Error InvalidState: 3 buffers still pending during EGLStreamProducer destruction (in src/services/gl/EGLStreamProducer.cpp, function freeBuffers(), line 300)
sept 18 16:45:53 orinagx nvargus-daemon[2876]: waitForIdleLocked remaining request 107
sept 18 16:45:53 orinagx nvargus-daemon[2876]: waitForIdleLocked remaining request 106
sept 18 16:45:53 orinagx nvargus-daemon[2876]: waitForIdleLocked remaining request 105
sept 18 16:45:53 orinagx nvargus-daemon[2876]: waitForIdleLocked remaining request 104
sept 18 16:45:53 orinagx nvargus-daemon[2876]: waitForIdleLocked remaining request 103
sept 18 16:45:53 orinagx nvargus-daemon[2876]: waitForIdleLocked remaining request 102
sept 18 16:45:53 orinagx nvargus-daemon[2876]: SCF: Error Timeout: waitForIdle() timed out (in src/api/Session.cpp, function waitForIdleLocked(), line 969)

Do you have any idea what could be wrong ?

Thanks !

*** Please note that this reply is generated by LLM automatically ***

I’ll do my best to provide a comprehensive answer.

The issue you’re experiencing seems to be related to the camera functionality on your Jetson AGX Orin board. The error messages indicate that there are problems with the camera sensor, ISP (Image Signal Processor), and the Argus daemon.

Here are some key points from the error messages:

  1. NvCamV4l2 Error ModuleNotPresent: This error suggests that the V4L2 device is not available, which is required for camera functionality.
  2. NvOdmDevice Error ModuleNotPresent: This error indicates that the ODM (Optical Device Model) device is not present, which is also required for camera functionality.
  3. NvPclDriverInitializeData Unable to initialize driver v4l2sensor: This error suggests that the v4l2 sensor driver cannot be initialized.
  4. NvPclInitializeDrivers error Failed to init camera sub module v4l2sensor: This error indicates that the camera sub-module (v4l2sensor) cannot be initialized.
  5. SCF Error BadParameter Sensor could not be opened: This error suggests that the sensor cannot be opened, which is required for camera functionality.
  6. SCF Error Timeout: This error indicates that a timeout has occurred, which may be related to the camera sensor or ISP.

Comparing the error messages, it seems that the issue is related to the camera sensor and ISP not being properly initialized or configured.

To troubleshoot this issue, you may want to try the following:

  1. Check the camera sensor and ISP configuration: Ensure that the camera sensor and ISP are properly configured in the device tree and kernel.
  2. Verify the V4L2 device: Check if the V4L2 device is available and properly configured.
  3. Check the ODM device: Ensure that the ODM device is present and properly configured.
  4. Update the kernel and device tree: Ensure that the kernel and device tree are up-to-date and compatible with the Jetson AGX Orin board.
  5. Check for firmware issues: Ensure that the firmware for the camera sensor and ISP is up-to-date and compatible with the Jetson AGX Orin board.

If none of these troubleshooting steps resolve the issue, it may be helpful to provide more information about your setup, such as the kernel version, device tree configuration, and any custom modifications you’ve made to the system.

In terms of the product part number, it seems that the format is -cnnnn-pppp-vvv r.0, where c is the board class, nnnn is the numeric part of the part number, pppp is the module’s or board’s SKU, and vvv is the version number. However, without more information about the specific product part number you’re using, it’s difficult to provide more specific guidance.

I hope this helps! Let me know if you have any further questions or if there’s anything else I can help with.

*** Please give the thumbs up if you get answers you like. Or provide feedback to help us improve the answer. ***

Is this a joke?
You guys don’t think I would have tried ChatGPT before posting here?

This is embarrassing.

I don’t think the tnr-mode=0 would cause the problem. I would suspect it could be failed sometimes event the command without tnr-mode=0

How about set tnr-mode=1?

Hey @ShaneCCC , thanks for your answer.

I just tried and tnr-mode=1 does not work:

gst-launch-1.0 log

nvidia@orinagx:~$ env -u DISPLAY gst-launch-1.0
nvarguscamerasrc sensor-id=0 ispdigitalgainrange=“1 1” aeantibanding=0 !
“video/x-raw(memory:NVMM),width=1928,height=1208” ! fakesink
GST_ARGUS: NvArgusCameraSrc: Setting ISP Digital Gain Range : 1 1
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected…
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1928 x 1208 FR = 29,999999 fps Duration = 33333334 ; Analog Gain range min 1000000,000000, max inf; Exposure Range min 1000, max 33333000;

GST_ARGUS: Running with following settings:
Camera index = 0
Camera mode = 0
Output Stream W = 1928 H = 1208
seconds to Run = 0
Frame Rate = 29,999999
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: CANCELLED
Additional debug info:
Argus Error Status
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:734 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:245 Execution ended after 0:00:00.422581951
(propagating)
Setting pipeline to NULL …
GST_ARGUS: Cleaning up

^C^C^C(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
Freeing pipeline …
(Argus) Error Timeout: (propagating from src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 137)
(Argus) Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 92)
(Argus) Error InvalidState: Argus client is exiting with 4 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)
nvidia@orinagx:~$ client_loop: send disconnect: Broken pipe

I see the following errors in then Argus log, could it be related?

sept 18 16:45:32 orinagx nvargus-daemon[2876]: Module_id 23 Severity 2 : CheckNoiseReduction: Invalid gain
sept 18 16:45:32 orinagx nvargus-daemon[2876]: Module_id 23 Severity 2 : NvMediaISPSetNoiseReduction: Invalid controls for noise reduction
sept 18 16:45:32 orinagx nvargus-daemon[2876]: (NvCameraIspMergeExt) Error BadParameter: NR: error with setting control (in merge/NvCameraIspMergeExt.cpp, function mergeInputNR(), line 2001)

Remove the files at /var/nvidia/nvcam/settings/* to try.

It gives me the same error. Is it an ISP config issue ?

My cameras device tree looks like this:

#define RST_IO_EXP TEGRA234_MAIN_GPIO(AC,1)
#define PWM_CALIB_GPIO TEGRA234_MAIN_GPIO(H,7) //CAM0_PWDN
#define TRIGGER_SEL TEGRA234_MAIN_GPIO(I,0) //CAM0_RST
#define PWR_EN		TEGRA234_MAIN_GPIO(AC, 7)
#define BIT_DEPTH "12"
#define CAM_LANES 4
#define CAM_LANES_STRING "4"
#define TEGRA_SINTERFACE "serial_g"
#define MODE_VC "0"
#define DES_MCLK_MHZ 4700
#define SERDES_PIX_CLK_HZ "480000000"

#define AR0231_MODE0 \
		mclk_khz = "24000"; \
		discontinuous_clk = "no"; \
		dpcm_enable = "false"; \
		cil_settletime = "0"; \
		dynamic_pixel_bit_depth = BIT_DEPTH; \
		csi_pixel_bit_depth = BIT_DEPTH; \
		mode_type = "bayer"; \
		pixel_phase = "grbg"; \
		active_w = "1928"; \
		active_h = "1208"; \
		readout_orientation = "0"; \
		line_length = "1350"; \
		inherent_gain = "1"; \
		pix_clk_hz = "88000000"; \
		serdes_pix_clk_hz = SERDES_PIX_CLK_HZ; \
		gain_factor = "1"; \
		min_gain_val = "120";  \
		max_gain_val = "1500"; \
		step_gain_val = "1"; \
		default_gain = "512"; \
		min_hdr_ratio = "1"; \
		max_hdr_ratio = "1"; \
		framerate_factor = "1"; \
		min_framerate = "30"; \
		max_framerate = "30"; \
		step_framerate = "1"; \
		default_framerate = "30"; \
		exposure_factor = "1000000"; \
		min_exp_time = "1"; \
		max_exp_time = "33333"; \
		step_exp_time = "1"; \
		default_exp_time = "324"; \
		embedded_metadata_height = "0"; \
        phy_mode = "DPHY"; \

//...

ar0231_a@1b {
	def-addr = <0x10>;
	clocks = <&bpmp TEGRA234_CLK_EXTPERIPH1>, <&bpmp TEGRA234_CLK_EXTPERIPH1>;
	clock-names = "extperiph1", "pllp_grtba";
	mclk = "extperiph1";
	nvidia,gmsl-ser-device = <&ser_a0>;
	nvidia,gmsl-dser-device = <&dsera>;
	compatible = "li,ar0231";
	reg = <0x1b>;
	reg_mux = <0>;

	physical_w = "15.0";
	physical_h = "12.5";
	sensor_model = "ar0231";
	post_crop_frame_drop = "0";
	use_decibel_gain = "false";
	use_sensor_mode_id = "false";

	delayed_gain = "true";

	status = "okay";

	mode0 {
		AR0231_MODE0
		tegra_sinterface = "serial_g";
		num_lanes = "4";
		vc_id = "0";
};

// ...

How aboutMMAPI sample like argus_camera?

argus_camera crashes and is not very helpful:

But with `nvarguscamerasrc` and tnr-mode=0,I get a picture.

Please check the gain/exposure reported by below command.

v4l2-ctl –all

nvargus_nvraw --sensorinfo

Hey @ShaneCCC , thanks for your help!

$ v4l2-ctl --all
Driver Info:
	Driver name      : tegra-video
	Card type        : vi-output, liar0231 9-001b
	Bus info         : platform:tegra-capture-vi:5
	Driver version   : 5.15.148
	Capabilities     : 0x84200001
		Video Capture
		Streaming
		Extended Pix Format
		Device Capabilities
	Device Caps      : 0x04200001
		Video Capture
		Streaming
		Extended Pix Format
Media Driver Info:
	Driver name      : tegra-camrtc-ca
	Model            : NVIDIA Tegra Video Input Device
	Serial           : 
	Bus info         : 
	Media version    : 5.15.148
	Hardware revision: 0x00000003 (3)
	Driver version   : 5.15.148
Interface Info:
	ID               : 0x0300001d
	Type             : V4L Video
Entity Info:
	ID               : 0x0000001b (27)
	Name             : vi-output, liar0231 9-001b
	Function         : V4L2 I/O
	Pad 0x0100001c   : 0: Sink
	 Link 0x02000021: from remote pad 0x1000003 of entity '13e00000.host1x:nvcsi@15a00000-' (Unknown sub-device (0002000a)): Data, Enabled
Priority: 2
Video input : 0 (Camera 5: ok)
Format Video Capture:
	Width/Height      : 1928/1208
	Pixel Format      : 'BA12' (12-bit Bayer GRGR/BGBG)
	Field             : None
	Bytes per Line    : 3856
	Size Image        : 4658048
	Colorspace        : sRGB
	Transfer Function : Default (maps to sRGB)
	YCbCr/HSV Encoding: Default (maps to ITU-R 601)
	Quantization      : Default (maps to Full Range)
	Flags             : 
Selection Video Capture: crop, Left 0, Top 0, Width 1928, Height 1208, Flags: 
Selection Video Output: crop, Left 0, Top 0, Width 1928, Height 1208, Flags: 
Streaming Parameters Video Capture:
	Capabilities     : timeperframe
	Frames per second: 30.000 (30/1)
	Read buffers     : 0

Camera Controls

                     group_hold 0x009a2003 (bool)   : default=0 value=0 flags=execute-on-write
                     hdr_enable 0x009a2004 (intmenu): min=0 max=1 default=0 value=0 (0 0x0)
				0: 0 (0x0)
				1: 1 (0x1)
                           gain 0x009a2009 (int64)  : min=120 max=1501 step=1 default=512 value=120 flags=slider
                       exposure 0x009a200a (int64)  : min=1 max=33334 step=1 default=324 value=8992 flags=update, slider
                     frame_rate 0x009a200b (int64)  : min=30 max=30 step=1 default=30 value=30 flags=update, slider
                 exposure_short 0x009a200c (int64)  : min=1 max=33333 step=1 default=324 value=1 flags=slider
           sensor_configuration 0x009a2032 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[22] flags=read-only, volatile, has-payload
         sensor_mode_i2c_packet 0x009a2033 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
      sensor_control_i2c_packet 0x009a2034 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[1026] flags=read-only, volatile, has-payload
                    bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=1 (1 0x1)
				0: 0 (0x0)
				1: 1 (0x1)
                override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=1 (1 0x1)
				0: 0 (0x0)
				1: 1 (0x1)
                   height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0 (1 0x1)
				0: 1 (0x1)
				1: 65536 (0x10000)
				2: 131072 (0x20000)
               write_isp_format 0x009a2068 (int)    : min=1 max=1 step=1 default=1 value=1
       sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][18] flags=read-only, has-payload
        sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][18] flags=read-only, has-payload
      sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][36] flags=read-only, has-payload
              sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 dims=[30][16] flags=read-only, has-payload
               low_latency_mode 0x009a206d (bool)   : default=0 value=0
               preferred_stride 0x009a206e (int)    : min=0 max=65535 step=1 default=0 value=0
    override_capture_timeout_ms 0x009a206f (int)    : min=-1 max=2147483647 step=1 default=5000 value=5000
                   sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only
$ nvargus_nvraw --sensorinfo
nvargus_nvraw version 1.16.0
Number of sensors 4, Number of modes for selected sensor 1
Selected sensor: liar0231_rear ID 0 Mode 0
Number of exposures 1
Index   Exposure time Range          Sensor Gain Range    
float_truncate: Error: Value 120,000000000 fractionDigits 6 index 4294967295 resize to 6
("nvargus_nvraw") Error BadParameter (0x04):  (propagating from capture_nvraw/src/mobile/ArgusNvRawCapture.cpp,
     func queryInfo(), line 400)
("nvargus_nvraw") Error BadParameter (0x04): Unable to query sensor information (propagating from ca
    pture_nvraw/src/mobile/main.cpp, func main(), line 61)

Looks like the incorrect gain/exposure config in the device tree.