Nvidia nx读取imx477相机报错

I’m using a Jetson NX to simultaneously read from the IMX477 cameras on CAM0 and CAM1. The program runs normally at first, but after some time, an error occurs.

I’d like to know what factors are related to this error — whether it’s caused by the current supplied by the onboard power source or by an issue with the camera driver. If it’s a driver problem, then why did it initially run without any errors?

The following error is output.
CONSUMER: ERROR OCCURRED
[ WARN:0@582.008] global cap_gstreamer.cpp:1172 isPipelinePlaying OpenCV | GStreamer warning: unable to query pipeline state
[ WARN:0@582.009] global cap_gstreamer.cpp:2784 handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module nvarguscamerasrc0 reported: UNAVAILABLE
CONSUMER: ERROR OCCURRED
GST_ARGUS: Cleaning up

sudo systemctl status nvargus-daemon

nvargus-daemon.service - Argus daemon
Loaded: loaded (/etc/systemd/system/nvargus-daemon.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2000-01-01 09:15:32 CST; 12min ago
Main PID: 17660 (nvargus-daemon)
Tasks: 45 (limit: 17769)
Memory: 182.7M
CGroup: /system.slice/nvargus-daemon.service
└─17660 /usr/sbin/nvargus-daemon

Jan 01 09:25:17 ubuntu nvargus-daemon[17660]: SCF: Error InvalidState:  (propagating from src/components/stages/OrderedStage.cpp, function doExecute(), line 158)
Jan 01 09:25:17 ubuntu nvargus-daemon[17660]: Module_id 30 Severity 2 : (fusa) Error: ResourceAlreadyInUse  propagating from:/capture/src/fusaViHandler.cpp 470
Jan 01 09:25:17 ubuntu nvargus-daemon[17660]: SCF: Error InvalidState: Capture Scheduler not running (in src/services/capture/CaptureServiceDevice.cpp, function addNewItemToSchedule(), line 1004)
Jan 01 09:25:17 ubuntu nvargus-daemon[17660]: SCF: Error InvalidState:  (propagating from src/services/capture/CaptureService.cpp, function addRequest(), line 411)
Jan 01 09:25:17 ubuntu nvargus-daemon[17660]: SCF: Error InvalidState:  (propagating from src/components/stages/SensorCaptureStage.cpp, function doHandleRequest(), line 87)
Jan 01 09:25:17 ubuntu nvargus-daemon[17660]: SCF: Error InvalidState:  (propagating from src/components/stages/OrderedStage.cpp, function doExecute(), line 158)
Jan 01 09:25:26 ubuntu nvargus-daemon[17660]: SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Jan 01 09:25:26 ubuntu nvargus-daemon[17660]: Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc for sensor guid 1 count -1159236864
Jan 01 09:25:26 ubuntu nvargus-daemon[17660]: SCF: Error Timeout:  (propagating from src/services/capture/CaptureServiceEvent.cpp, function wait(), line 59)
Jan 01 09:25:26 ubuntu nvargus-daemon[17660]: Error: Camera HwEvents wait, this may indicate a hardware timeout occured,abort current/incoming cc for sensor guid 0 count -1159236864

sudo dmesg | grep imx
[ 73.591218] nv_imx477: loading out-of-tree module taints kernel.
[ 73.593552] nv_imx477: module verification failed: signature and/or required key missing - tainting kernel
[ 73.612225] imx477 9-001a: tegracam sensor driver:imx477_v2.0.6
[ 73.928884] imx477 9-001a: imx477_board_setup: invalid sensor model id: 44
[ 73.941537] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx477 9-001a bound
[ 73.961043] imx477 10-001a: tegracam sensor driver:imx477_v2.0.6
[ 74.262154] imx477 10-001a: imx477_board_setup: invalid sensor model id: 44
[ 74.266389] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx477 10-001a bound

hello wxc_xc,

may I double check which Jetpack public release version you’re working with?
besides.. please check you could recover this by restarting Argus daemon service.
for instance,
$ sudo pkill nvargus-daemon
$ sudo systemctl start nvargus-daemon

I’m using JetPack 5.1.4. Running the command sudo systemctl restart nvargus-daemon can restore normal operation, but this issue causes the detection program to be interrupted, which is very annoying. Is there any effective solution to prevent this problem?

hello wxc_xc,

please see-also Topic 316367 to apply the pre-built update for Argus stability fixes.