Gst-resource-error-quark: Could not read from resource

Hardwar: Jetson Xavier Nx
JetPcak: 4.6
deepstream: 6.0

Connected two usb camera to NX, during inferring error happened, logs as bellow:
943 - Gst.MessageType.ERROR
Error: gst-resource-error-quark: Could not read from resource. (9): gstv4l2bufferpool.c(1040): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:source-bin-0:
poll error 1: Success (0)
2024-05-07 15:22:11.554 | DEBUG | server.pipeline:bus_call:943 - Gst.MessageType.ERROR
Error: gst-resource-error-quark: Failed to allocate a buffer (14): gstv4l2src.c(998): gst_v4l2src_create (): /GstPipeline:pipeline0/GstV4l2Src:source-bin-0
2024-05-07 15:22:11.556 | DEBUG | server.pipeline:bus_call:943 - Gst.MessageType.ERROR
Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:source-bin-0:
streaming stopped, reason error (-5)

Moving to Xaiver NX forum for better support.

Hi,
Please refer to the steps:

Jetson Xavier NX FAQ
Q: I have a USB camera. How can I launch it on Xavier NX?

Furthermore, please clean gstreamer cache:

$ rm .cache/gstreamer-1.0/registry.aarch64.bin

and try the steps.

Thanks.

First of all, most of time the usb camera works fine, some time error happens.

Second, even if I run “rm ~/.cache/gstreamer-1.0/registry.aarch64.bin” every time before start, error doesn’t disappear.

Any other method to fix this issue?

Hi,
It is more like an issue in the camera source. It is unstable sometimes and does not generate frame data. Suggest check how to improve stability of the camera source.

Hi,

It is more like not camera issue, because when error happens, I can’t launch the python app again, and shows:
"(Argus) Error FileOperationFailed: Connecting to nvargus-daemon failed: No such file or directory (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 205)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 106)
"
At this time, I can open the camera using opencv.

Could you give some suggestion for this?

Found some older posts with similar issues, it seems a issue of libnvodm_imager.so, maybe need a patch to fix it, I am on L4T 32.6.1.

Latest log:

(Argus) Error EndOfFile: Unexpected error in reading socket (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 266)

(Argus) Error EndOfFile: Receive worker failure, notifying 1 waiting threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 340)

(Argus) Error InvalidState: Argus client is exiting with 1 outstanding client threads (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadCore(), line 357)

(Argus) Error EndOfFile: Receiving thread terminated with error (in src/rpc/socket/client/ClientSocketManager.cpp, function recvThreadWrapper(), line 368)

(Argus) Error EndOfFile: Client thread received an error from socket (in src/rpc/socket/client/ClientSocketManager.cpp, function send(), line 145)

(Argus) Error EndOfFile: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function dispatch(), line 91)

Hi,
The error looks expected since USB cameras are not supported in Argus. USB cameras use v4l2src plugins.

Hi,

Thanks for response.

Ignore the argus log, still error log like following:
NvMMLiteOpen : Block : BlockType = 277
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 277
NvMapMemCacheMaint Bad parameter
nvbusurface: NvBufSurfaceSyncForCpu: Error(4) in sync
libnvosd (127):(ERROR) : Cache sync failed
0:00:08.345355376 18 0x1e2a38a0 WARN nvinfer gstnvinfer.cpp:2288:gst_nvinfer_output_loop: error: Internal data stream error.
0:00:08.345429459 18 0x1e2a38a0 WARN nvinfer gstnvinfer.cpp:2288:gst_nvinfer_output_loop: error: streaming stopped, reason error (-5)
2024-05-13 15:49:09.865 | DEBUG | server.pipeline:bus_call:945 - Gst.MessageType.ERROR
Error: gst-resource-error-quark: Unable to draw text (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvdsosd/gstnvdsosd.c(546): gst_nvds_osd_transform_ip (): /GstPipeline:pipeline0/GstNvDsOsd:onscreendisplay
2024-05-13 15:49:09.869 | DEBUG | server.pipeline:bus_call:945 - Gst.MessageType.ERROR
Error: gst-stream-error-quark: Internal data stream error. (1): gstnvinfer.cpp(2288): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference:
streaming stopped, reason error (-5)
2024-05-13 15:49:09.896 | DEBUG | server.pipeline:bus_call:945 - Gst.MessageType.ERROR
Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:source-bin-0:
streaming stopped, reason error (-5)
2024-05-13 15:49:09.899 | DEBUG | server.pipeline:bus_call:945 - Gst.MessageType.ERROR
Error: gst-stream-error-quark: Internal data stream error. (1): gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:source-bin-1:
streaming stopped, reason error (-5)
2024-05-13 15:49:10.033 | DEBUG | server.pipeline:bus_call:950 - Gst.MessageType.ELEMENT
2024-05-13 15:49:10.040 | DEBUG | server.pipeline:bus_call:957 - Got EOS from stream 1
2024-05-13 15:49:10.042 | DEBUG | server.pipeline:bus_call:950 - Gst.MessageType.ELEMENT
2024-05-13 15:49:10.044 | DEBUG | server.pipeline:bus_call:957 - Got EOS from stream 0
2024-05-13 15:49:10.046 | DEBUG | server.pipeline:bus_call:937 - Gst.MessageType.EOS
End-of-stream

Could help find some clue from above?

Hi,
If it does not occur in each run, it is more like an issue in the camera source. Sometimes the camera source fails to generate frame data and the error is reported. Would suggest check how to improve stability of the camera.

The issue happened during whole yesterday afternoon, and, I can use opencv to read data from camera that time.

Hi,
You may break down the pipeline and see which plugin triggers the issue. Such as run a different model in nvinfer plugin, remove nvinfer plugin , or try non-Deepstream gstreamer commands. Or can clean gstreamer cache and try.

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