After upgrading my Xavier NX to the new JetPack 5.1 from the 4.x release, I’m getting gstreamer errors after letting the system run for a while. Here’s what I’m seeing on the console:

CONSUMER: ERROR OCCURRED
(Argus) Error FileOperationFailed: Failed socket read: Connection reset by peer (in src/rpc/socket/common/SocketUtils.cpp, function readSocket(), line 79)
(Argus) Error FileOperationFailed: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 277)
(Argus) Error FileOperationFailed: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 350)
(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)
(Argus) Error FileOperationFailed: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 379)
(Argus) Error FileOperationFailed: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)
(Argus) Error FileOperationFailed:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
(Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
(Argus) Error InvalidState:  (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
CONSUMER: Done Success

There have been no changes to the pipeline except exposure compensation. Here’s the pipeline:

#define GST_CAM_PIPELINE   "nvarguscamerasrc exposurecompensation=-1 sensor_id=0 ! " \
                           "video/x-raw(memory:NVMM), width=%d, height=%d, format=(string)NV12, framerate=(fraction)%d/1 ! " \
                           "nvvidconv flip-method=0 ! " \
                           "video/x-raw, format=(string)RGBA ! queue max-size-time=%lu leaky=2 ! appsink name=sinkL " \
                              "caps=\"video/x-raw,format=RGBA,pixel-aspect-ratio=1/1\" " \
                           "nvarguscamerasrc exposurecompensation=-1 sensor_id=1 ! " \
                           "video/x-raw(memory:NVMM), width=%d, height=%d, format=(string)NV12, framerate=(fraction)%d/1 ! " \
                           "nvvidconv flip-method=0 ! " \
                           "video/x-raw, format=(string)RGBA ! queue max-size-time=%lu leaky=2 ! appsink name=sinkR " \
                              "caps=\"video/x-raw,format=RGBA,pixel-aspect-ratio=1/1\""

Thanks for any help on this one.

Kris

1 Like

Hi,
It looks like the camera sensors are not stable on Jetpack 5.1. Please try gst-launch-1.0 command ad check if the issue is present:

$ gst-launch-1.0 nvarguscamerasrc exposurecompensation=-1 sensor_id=0 ! fakesink nvarguscamerasrc exposurecompensation=-1 sensor_id=1 ! fakesink

Which cameras are you using? @KerseyFabrications
How much is the framerate?

@DaneLLL
I’ll run that overnight.

@Gorgo90
1920x1080 @60FPS

@DaneLLL That hasn’t produced the failure yet. Next I’ll try to reproduce more of the pipeline with it ending in a fakesink instead of an appsink.

Hi @KerseyFabrications
I also experienced some errors with my IMX219 and a pipeline that saves images in the SSD.

For example this is my last test at 1280x720@120FPS

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM),width=1280, height=720, framerate=120/1, format=NV12’ ! nvvidconv flip-method=2 ! nvjpegenc ! multifilesink location=%05d_cam$0.jpeg

After 9 minutes It crashed with:

PosixMemMap:84 mmap failed : Cannot allocate memory
(Argus) Error InsufficientMemory: (propagating from src/eglstream/ImageImpl.cpp, function initialize(), line 455)
(Argus) Error InsufficientMemory: (propagating from src/eglstream/ImageImpl.cpp, function copyToNvBuffer(), line 496)
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:653 IImageNativeBuffer not supported by Image.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)

After creating 64968 frames.

Which camera model are you using? Arducam Sony?

Yeah, the stability comes and goes here. Sometimes it runs overnight without issues. Sometimes it crashes in a couple of hours. Your error looks different than mine, like you’re forgetting to release the buffers and you actually run out of memory. I’m running IMX477 from Arducam.

1 Like

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