• Hardware Platform (Jetson / GPU)
Jetson Xavier NX
• DeepStream Version
6.0
• JetPack Version (valid for Jetson only)
4.6
• TensorRT Version
8.0.1.6
• Issue Type( questions, new requirements, bugs)
Questions
Hi there, I’m trying to run a Gstreamer/Deepstream pipeline on Nvidia Jetson and getting the following error in the gst-nvinfer module which stops the pipeline from running:
ERROR: from element /GstPipeline:pipeline0/GstNvInfer:nvinfer0: NvBufSurfTransform failed with error -2 while converting buffer
The pipeline I’m trying to run is:
gst-launch-1.0 -v filesrc location=all.mp4 ! decodebin ! nvvideoconvert ! m.sink_0 nvstreammux name=m batch_size=1 width=1920 height=1080 ! nvvideoconvert src-crop="960:540:960:540" ! nvinfer config-file-path=vi_jetson_dstest3_pgie_config.txt ! nvvideoconvert ! nvvidconv ! nvv4l2h264enc ! h264parse ! mux.video_0 qtmux name=mux ! filesink location=test.mp4
If I take out the inference module then the pipeline runs okay, though it does throw a ton of the following warnings (these appear with and without the inference module):
0:00:06.229914624 4855 0x7f3400ca30 WARN bufferpool gstbufferpool.c:1239:default_reset_buffer:<nvv4l2decoder0:pool:sink> Buffer 0x7f3c02fd80 without the memory tag has maxsize (0) that is smaller than the configured buffer pool size (4194304). The buffer will be not be reused. This is most likely a bug in this GstBufferPool subclass
I’m not sure if this is impacting the inference module or not, and I haven’t been able to find a solution to this warning either. They both reference the buffer so maybe?
I’m able to run the following pipeline on a dGPU Linux machine with Deepstream in one of the Nvidia docker containers without issue:
gst-launch-1.0 -v filesrc location=/home/DockerVolumeMount/all.mp4 ! decodebin ! nvvideoconvert ! m.sink_0 nvstreammux name=m batch_size=1 width=1920 height=1080 ! nvvideoconvert src-crop="960:540:960:540" ! nvinfer config-file-path=vi_dstest3_pgie_config.yml ! nvvideoconvert ! ximagesink
The pipelines are very similar though I’ve changed the output since the Jetson doesn’t have an xdisplay to work with.
Any idea where I’m going wrong? I think I must have something off with the pipeline though it’s been hard to tell exactly what.
Thanks for the help