Nviargus daemon is failing on jetson xavier

Hi, We are trying to run gstream pipeline using 4 usb camera. But we frequently face the issue of “nviargus daemon” failure.

And also, we see this on terminal logs…

CONSUMER: ERROR OCCURRED
CONSUMER: ERROR OCCURRED
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 266)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 368)

Kindly help,

Thank you

What’s the gstreamer command line?
Does the system only have USB camera?

@ShaneCCC yes system only has USB cameras.

PIPELINE_DESC = ‘’’

webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302
nvarguscamerasrc sensor-id=0 sensor-mode=0 ! video/x-raw(memory:NVMM), width=1948, height=1096, format=NV12, framerate=30/1 ! nvv4l2vp9enc bitrate=2000000 ! rtpvp9pay ! sendrecv.

nvarguscamerasrc sensor-id=1 sensor-mode=0 ! video/x-raw(memory:NVMM), width=1948, height=1096, format=NV12, framerate=30/1 ! nvv4l2vp9enc bitrate=2000000 ! rtpvp9pay ! sendrecv.

v4l2src device=/dev/video2 ! video/x-raw,width=640,height=360,framerate=30/1,format=YUY2 ! nvvidconv ! nvv4l2vp9enc bitrate=2000000 ! rtpvp9pay ! sendrecv.

v4l2src device=/dev/video4 ! video/x-raw,width=640,height=360,framerate=30/1,format=YUY2 ! nvvidconv ! nvv4l2vp9enc bitrate=2000000 ! rtpvp9pay ! sendrecv.

autoaudiosrc device=/dev/hidraw3 ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay !
queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv.

‘’’

Your command line involve nvarguscamerasrc that only use for CSI camera but your system only have USB camera that could cause the error.

Confirm the camera connect to system by below command.

v4l2-ctl --list-devices

@ShaneCCC

We currently use 2 mipi cameras and 2 usb cameras, inside docker enviornment.

Did you verify CSI camera working individually?

Yes, they are working fine we get the window popup witht he video when we run it on terminal locally.

What’s if one CSI and one USB camera. Or Two CSI + one USB?

@ShaneCCC Yes that works. Do you have any docker file which can used for running the above pipeline and can import the necessary NVIDIA plugins?

Sorry I don’t have any docker file for that.
Could you verify 4 USB camera without CSI camera?

Yes they work fine with out using docker enviorment, when used inside docker its breaking…with this

‘’’
CONSUMER: ERROR OCCURRED
CONSUMER: ERROR OCCURRED
(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 266)
(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 368)
‘’’

Suppose launch USB camera shouldn’t involve Argus. It could be the docker configure problem.

Maybe…Can you help me in configuring the necessary commands for docker file and also for docker run…?

To clarify: Do you able to run any of CSI camera inside docker?

Yes…but after sometime it crashes…