Timeout error with IMX477

While streaming, I am getting this error:
CONSUMER: ERROR OCCURRED
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: TIMEOUT
Additional debug info:
Argus Error Status
Execution ended after 0:01:46.354991328
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 91)
(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 91)
Freeing pipeline …
(Argus) Error InvalidState: Argus client is exiting with 2 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)

SOM: Orin nx
Jetpack: 5.1.4

Hi @Shine.d,

Just to rule out some possibilites, is this issue happening with a minimal gstreamer pipeline? Perhaps something like this:

gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1280, height=720, framerate=30/1' ! nvvidconv ! nvvideosink

Have you ruled out any hardware issues? Perhaps by repositioning the camera ribbon?

Regards,
Francis Guindon

Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: http://www.ridgerun.com/

sending pipeline:
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM),width=1920,height=1080,framerate=30/1’ ! nvvidconv ! nvv4l2h264enc ! rtph264pay ! udpsink host=192.168.55.100 port=4000 sync=false
receiving pipeline:
gst-launch-1.0 udpsrc port=4000 ! application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96 ! rtpjitterbuffer latency=100 ! rtph264depay ! avdec_h264 ! autovideoconvert ! autovideosink sync=false

I actually checked by repositioning the camera ribbon, but still same issue is there.

Hi @Shine.d,

My initial thoughts on seeing the timeout error is that there is some communication issue with the IMX477 sensor.

However to be sure I properly understand the issue I have some follow up questions:

  • Does the nvarguscamerasrc debug log show some other error that might help understand what the issue is? Try running the your sending pipeline with GST_DEBUG=*argus*:DEBUG gst-launch-1.0 nvarguscamerasrc ...
  • Are you able to stream at all before seeing this error? Or does it occur right when you start running the pipeline and before any streaming has happened?

Regards,
Francis Guindon

Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: http://www.ridgerun.com/

Sometimes I am able to take stream and sometimes this issue happens.

When I see log using journalctl, it shows SCF timeout error

Hi @Shine.d,

Thanks for the info, I find it interesting that the stream sometimes works.

I am still interested in whether you see this issue with a minimal pipeline (one that does not involve rtpsink/rtpsrc). This is mostly to rule out that it is argus directly that is causing the issue, and not something that involves other gstreamer elements.

Could you please test this pipeline and share the output?

GST_DEBUG=*argus*:DEBUG gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! nvvidconv ! nvvideosink

In case you don’t see the timeout issue with this minimal pipeline, you can maybe test your original pipelines, but perhaps using host=127.0.0.1 and running both pipelines on the Jetson.

Regards,
Francis Guindon

Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com/
Website: http://www.ridgerun.com/

I can see this after running the minimal pipeline:

$ GST_DEBUG=*argus*:DEBUG gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1' ! nvvidconv ! nvvideosink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNvVideoSink:nvvideosink0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesink.c(5367): gst_base_sink_change_state (): /GstPipeline:pipeline0/GstNvVideoSink:nvvideosink0:
Failed to start
Setting pipeline to NULL ...
Freeing pipeline ...
0:00:00.421452832  2933 0xaaaaec89ce70 DEBUG       nvarguscamerasrc gstnvarguscamerasrc.cpp:2199:gst_nv_argus_camera_src_finalize:<nvarguscamerasrc0> finalize

Here is the journalctl log of nvargus-daemon.service for my previous pipelines:
sending pipeline:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM),width=1920,height=1080,framerate=30/1’ ! nvvidconv ! nvv4l2h264enc ! rtph264pay ! udpsink host=192.168.55.100 port=4000 sync=false

receiving pipeline:

gst-launch-1.0 udpsrc port=4000 ! application/x-rtp, media=video, clock-rate=90000, encoding-name=H264, payload=96 ! rtpjitterbuffer latency=100 ! rtph264depay ! avdec_h264 ! autovideoconvert ! autovideosink sync=false

timeout_error_log.txt (7.7 KB)

In that log, there were some erros related to nvphs service, this is the status of it:

$ sudo systemctl status nvphs.service
● nvphs.service - PHS daemon
Loaded: loaded (/etc/systemd/system/nvphs.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 1969-12-31 19:17:11 EST; 7s ago
Process: 2859 ExecStartPre=/usr/sbin/nvphsd_setup.sh (code=exited, status=0/SUCCESS)
Main PID: 2949 (nvphsd)
Tasks: 2 (limit: 18280)
Memory: 424.0K
CGroup: /system.slice/nvphs.service
├─2949 /usr/sbin/nvphsd
└─2950 /usr/sbin/nvphsd

Dec 31 19:17:11 ubuntu systemd[1]: Starting PHS daemon…
Dec 31 19:17:11 ubuntu systemd[1]: Started PHS daemon.
Dec 31 19:17:11 ubuntu phs[2950]: E/ nvphs: Failed to initialize sysfs readers. Exiting.
Dec 31 19:17:11 ubuntu phs[2950]: E/ nvphs: Initialization Failed! Entering Zombie mode

Add event-wait and acquire-wait to try.

gst-launch-1.0 -v -e nvarguscamerasrc event-wait=5000000000 acquire-wait=6000000000 ! 'video/x-raw(memory:NVMM)' ! nvvidconv ! ...

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.