Deepstream6.4 docker run test1.py issue

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) : NVIDIA A30
• DeepStream Version : 6.4
• JetPack Version (valid for Jetson only)
• TensorRT Version :8.6.1.6-1+cuda12.0
• NVIDIA GPU Driver Version (valid for GPU only) : 525.85.12
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

docker container : docker pull nvcr.io/nvidia/deepstream:6.4-triton-multiarch
how to run docker : docker run -it --net=host --gpus all -e DISPLAY=$DISPLAY --device /dev/snd -v /tmp/.X11-unix/:/tmp/.X11-unix 4864f9e145d5
base machine : Ubuntu 18.04

python3 deepstream_test_1.py …/…/…/…/samples/streams/sample_720p.h264
sometimes :
0:00:00.016109103 928 0x5613d8228780 ERROR GST_PLUGIN_LOADING gstpluginloader.c:442:gst_plugin_loader_try_helper: Spawning gst-plugin-scanner helper failed: Failed to close file descriptor for child ted)

(python3:928): GStreamer-WARNING **: 07:01:42.159: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GSvariable if your setup is unusual. This should normally not be required though.
0:00:00.019809793 928 0x5613d8228780 WARN GST_PLUGIN_LOADING gstplugin.c:875:_priv_gst_plugin_load_file_for_registry: module_open failed: librivermax.so.1: cannot open shared object file: No such fi

(python3:928): GStreamer-WARNING **: 07:01:42.163: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so’: librivermax.so.1: cannot open shared object file: No such fi
Creating Pipeline

Creating Source
And no longer continue .

but sometimes:
0:00:00.003293502 849 0x5650ec070890 ERROR GST_PLUGIN_LOADING gstpluginloader.c:442:gst_plugin_loader_try_helper: Spawning gst-plugin-scanner helper failed: Failed to close file descriptor for child process (Operation not permitted)

(python3:849): GStreamer-WARNING **: 06:43:43.536: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.
0:00:00.019984275 849 0x5650ec070890 WARN ladspa gstladspa.c:508:plugin_init: no LADSPA plugins found, check LADSPA_PATH
0:00:03.069344325 849 0x5650ec070890 ERROR nvenc gstnvenc.c:641:gst_nv_enc_register: NvEncOpenEncodeSessionEx failed: codec h264, device 0, error code 2
0:00:03.074206174 849 0x5650ec070890 ERROR nvenc gstnvenc.c:641:gst_nv_enc_register: NvEncOpenEncodeSessionEx failed: codec h265, device 0, error code 2
0:00:03.222031798 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0x120000: ‘AVR (Audio Visual Research)’ is not mapped
0:00:03.222056970 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0x180000: ‘CAF (Apple Core Audio File)’ is not mapped
0:00:03.222065138 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0x100000: ‘HTK (HMM Tool Kit)’ is not mapped
0:00:03.222070996 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0xc0000: ‘MAT4 (GNU Octave 2.0 / Matlab 4.2)’ is not mapped
0:00:03.222076339 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0xd0000: ‘MAT5 (GNU Octave 2.1 / Matlab 5.0)’ is not mapped
0:00:03.222080866 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0x210000: ‘MPC (Akai MPC 2k)’ is not mapped
0:00:03.222086544 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0xe0000: ‘PVF (Portable Voice Format)’ is not mapped
0:00:03.222092302 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0x160000: ‘SD2 (Sound Designer II)’ is not mapped
0:00:03.222100415 849 0x5650ec070890 WARN default gstsfelement.c:97:gst_sf_create_audio_template_caps: format 0x190000: ‘WVE (Psion Series 3)’ is not mapped
0:00:03.425879409 849 0x5650ec070890 WARN vadisplay gstvadisplay_drm.c:141:gst_va_display_drm_create_va_display: Failed to open /dev/dri/renderD128: No such file or directory
0:00:03.461078751 849 0x5650ec070890 WARN msdk msdk.c:303:msdk_init_msdk_session: Failed to initialize a MFX session (undeveloped feature)
0:00:03.668229126 849 0x5650ec070890 WARN GST_PLUGIN_LOADING gstplugin.c:875:_priv_gst_plugin_load_file_for_registry: module_open failed: librivermax.so.1: cannot open shared object file: No such file or directory

(python3:849): GStreamer-WARNING **: 06:43:47.201: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so’: librivermax.so.1: cannot open shared object file: No such file or directory
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

Creating EGLSink

Playing file …/…/…/…/samples/streams/sample_720p.h264
Adding elements to Pipeline

Linking elements in the Pipeline

/opt/nvidia/deepstream/deepstream-6.4/sources/deepstream_python_apps/apps/deepstream-test1/deepstream_test_1.py:220: DeprecationWarning: Gst.Element.get_request_pad is deprecated
sinkpad = streammux.get_request_pad(“sink_0”)
Starting pipeline

0:00:03.915327273 849 0x5650ec070890 WARN v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:nvv4l2-decoder:sink Unable to try format: Unknown error -1
0:00:03.915358807 849 0x5650ec070890 WARN v4l2 gstv4l2object.c:2985:gst_v4l2_object_probe_caps_for_format:nvv4l2-decoder:sink Could not probe minimum capture size for pixelformat MJPG
0:00:03.915368510 849 0x5650ec070890 WARN v4l2 gstv4l2object.c:3100:gst_v4l2_object_get_nearest_size:nvv4l2-decoder:sink Unable to try format: Unknown error -1
0:00:03.915375347 849 0x5650ec070890 WARN v4l2 gstv4l2object.c:2991:gst_v4l2_object_probe_cap

=============================================
Due to the Deepstream6.2 container running on the machine I am currently running, I did not upgrade the driver and Linux version of the machine. Therefore, the Linux version of my container is Ubuntu 22.04, but the host is 18.04, and the driver is 525.85.12 . Can this be the cause of the problem? Do I need to replace the machine with a new one for testing?
In addition, will the patch update_rtpmanager.sh released in Deepstream 6.4 be released in other versions? I seem to have encountered similar issues on DS6.2, but currently it seems that the only solution to this problem is to upgrade to 6.4.

DS-6.4 requires CUDA 12.2 to work, which may be related. You only need to upgrade the GPU driver. DS-6.2 can work on the new version of the driver.

This is not necessary, DS-6.2 and DS-6.4 depend on different versions of gstreamer.

I installed Docker on the new machine and followed the documentation:
https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_docker_containers.html
After following the instructions in the document, execute: Docker run - it – net=host – gpus all - e DISPLAY=$DISPLAY – device/dev/snd - v/tmp/ X11 unix/:/tmp/ X11 unix
There will be an error:
root@runone-PowerEdge-R750:/home/runone/test# docker run -it --net=host --gpus all -e DISPLAY=$DISPLAY --device /dev/snd -v /tmp/.X11-unix/:/tmp/.X11-unix test_ds64
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as ‘legacy’
nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown.
ERRO[0000] error waiting for container: context canceled

Do I need to follow this part of the execution document?
Quickstart Guide — DeepStream documentation 6.4 documentation -Setup for Ubuntu
I thought I could skip it.
But when I install the driver, there are also errors.
Error: An error occurred while performing the step: “Building kernel modules” See/var/log/nvidia installer.log for details
Error: An error occurred while performing the step: “Checking to see which NVIDIA kernel module was successfully built.” See/var/log/nvidia installer.log for details
Error: Installation has failed Please see the file ‘/var/log/nvidia installer. log’ for details You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

The Ubuntu version of the new machine is 22.04, the driver version is NVIDIA-Linux-x86_64-535.104.12, and the kernel version of Linux is 6.5.0-18-generic

the Error:

Error: An error occurred while performing the step: “Building kernel modules” See/var/log/nvidia installer.log for details
Error: An error occurred while performing the step: “Checking to see which NVIDIA kernel module was successfully built.” See/var/log/nvidia installer.log for details
Error: Installation has failed Please see the file ‘/var/log/nvidia installer. log’ for details You may find suggestions on fixing installation problems in the README available on the Linux driver download page at [www.nvidia.com](http://www.nvidia.com/).

Solved the problem through the following methods

sudo apt install gcc-12
sudo apt install g++-12

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 1 --slave /usr/bin/g++ g++ /usr/bin/g++-12

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