[gstreamer] gstCamera::Capture() -- an error occurred retrieving the next image buffer

Hello,

I’m running a camera program on NVIDIA’s Orin NX 16GB and have written it as a .service file for automatic startup. However, I’ve noticed that the program often restarts. This is information about exits in the syslog.

Blockquote
[gstreamer] gstCamera::Capture() – an error occurred retrieving the next image buffer
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: Failed socket read: Connection reset by peer (in src/rpc/socket/common/SocketUtils.cpp, function readSocket(), line 79)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 277)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: Receive worker failure, notifying 3 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 350)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error InvalidState: Argus client is exiting with 3 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 366)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 379)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error FileOperationFailed: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:12 nx4-desktop camera[17399]: (Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:12 nx4-desktop camera[17399]: CONSUMER: Done Success
4月 17 14:10:12 nx4-desktop camera[17399]: CONSUMER: Done Success
4月 17 14:10:12 nx4-desktop camera[17399]: CONSUMER: Done Success
4月 17 14:10:12 nx4-desktop camera[17399]: [gstreamer] gstCamera – stopping pipeline, transitioning to GST_STATE_NULL
4月 17 14:10:13 nx4-desktop camera[17399]: [gstreamer] gstCamera – end of stream (EOS)
4月 17 14:10:13 nx4-desktop camera[17399]: [gstreamer] gstCamera::Capture() – a timeout occurred waiting for the next image buffer
4月 17 14:10:13 nx4-desktop camera[17399]: [gstreamer] gstCamera – end of stream (EOS)
4月 17 14:10:13 nx4-desktop camera[17399]: [gstreamer] gstCamera::Capture() – a timeout occurred waiting for the next image buffer
4月 17 14:10:13 nx4-desktop camera[17399]: (Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
4月 17 14:10:13 nx4-desktop camera[17399]: (Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:13 nx4-desktop camera[17399]: (Argus) Error InvalidState: Receive thread is not running cannot send. (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 96)
4月 17 14:10:13 nx4-desktop camera[17399]: (Argus) Error InvalidState: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)
4月 17 14:10:14 nx4-desktop systemd[1]: YolosortAutoStart.service: Main process exited, code=killed, status=11/SEGV
4月 17 14:10:14 nx4-desktop systemd[1]: YolosortAutoStart.service: Failed with result ‘signal’.
4月 17 14:10:17 nx4-desktop systemd[1]: YolosortAutoStart.service: Scheduled restart job, restart counter is at 7.
4月 17 14:10:17 nx4-desktop systemd[1]: Stopped Start YoloSort Program.
4月 17 14:10:17 nx4-desktop systemd[1]: Started Start YoloSort Program.

I’m not sure why this issue is occurring and would appreciate any help in resolving it.

Thank you.

Hi,
For information, do you run jetson-inference and observe the issue? Which camera you are using? It looks like the camera source is not stable in the condition.

Hi,
I’m not running jetson-inference. I’m running model inference under the TensorRTX framework, and my camera is SONY IMX-327.

I reproduced the issue.
I uploaded the error messages before the program exited,
Ylog.log (5.4 KB)

as well as the logs of nvargus-daemon.service.
alog.log (17.5 KB)

Hi,
Please try the command and see if you hit same failure:

$ gst-launch-1.0 nvarguscamerasrc ! fakesink

Thank you!
I will try it in a few days.

Sorry, this issue was caused by a BUG in my code, and it has been resolved now.

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