Python3 deepstream_test1_rtsp_in_rtsp_out.py get stuck and won't quit

Please provide complete information as applicable to your setup.

• Hardware Platform ( GPU):GPU
**• deepstream-app version 7.0.0
DeepStreamSDK 7.0.0
CUDA Driver Version: 12.1
CUDA Runtime Version: 12.2
TensorRT Version: 8.6
cuDNN Version: 8.9
libNVWarp360 Version: 2.0.1d3

**• Issue Type: 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):

root@vas-desktop:/opt/nvidia/deepstream/deepstream-7.0/sources/deepstream_python_apps/apps/deepstream-rtsp-in-rtsp-out# python3 deepstream_test1_rtsp_in_rtsp_out.py -i rtsp://admin:XXXX@192.168.102.200:554/Streaming/Channels/103

(python3:196): GStreamer-WARNING **: 01:51:05.990: 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.

(python3:196): GStreamer-WARNING **: 01:51:05.993: 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 streamux

^C^C^C^C

the program is stucked there, it won’t quit even when I press ctrl+C

1.Try to clean the cache

sudo /opt/nvidia/deepstream/deepstream/install.sh

2.If it doesn’t work, can you share the log file use the following command line ?

GST_DEBUG=4 python3 deepstream_test1_rtsp_in_rtsp_out.py -i rtsp://admin:XXXX@192.168.102.200:554/Streaming/Channels/103  > log.log 2>&1

Thanks, after sudo /opt/nvidia/deepstream/deepstream/install.sh, it worked just 1 time, then got stucked again.

detail log :

root@vas-desktop:/opt/nvidia/deepstream/deepstream-7.0/sources/deepstream_python_apps/apps/deepstream-rtsp-in-rtsp-out# GST_DEBUG=4 python3 deepstream_test1_rtsp_in_rtsp_out.py -i rtsp://admin:XXXX@192.168.102.200:554/Streaming/Channels/101
0:00:00.000037058 340 0x55b2015698b0 INFO GST_INIT gst.c:592:init_pre: Initializing GStreamer Core Library version 1.20.3
0:00:00.000059749 340 0x55b2015698b0 INFO GST_INIT gst.c:593:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu
0:00:00.000066809 340 0x55b2015698b0 INFO GST_INIT gst.c:611:init_pre: Linux vas-desktop 5.15.0-69-generic #76~20.04.1-Ubuntu SMP Mon Mar 20 15:54:19 UTC 2023 x86_64
0:00:00.000216514 340 0x55b2015698b0 INFO GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages
0:00:00.000357351 340 0x55b2015698b0 INFO GST_INIT gstcontext.c:86:_priv_gst_context_initialize: init contexts
0:00:00.000502398 340 0x55b2015698b0 INFO GST_PLUGIN_LOADING gstplugin.c:324:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000563375 340 0x55b2015698b0 INFO GST_PLUGIN_LOADING gstplugin.c:232:gst_plugin_register_static: registered static plugin “staticelements”
0:00:00.000574679 340 0x55b2015698b0 INFO GST_PLUGIN_LOADING gstplugin.c:234:gst_plugin_register_static: added static plugin “staticelements”, result: 1
0:00:00.000594893 340 0x55b2015698b0 INFO GST_REGISTRY gstregistry.c:1827:ensure_current_registry: reading registry cache: /root/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.008193060 340 0x55b2015698b0 INFO GST_REGISTRY gstregistrybinary.c:683:priv_gst_registry_binary_read_cache: loaded /root/.cache/gstreamer-1.0/registry.x86_64.bin in 0.007585 seconds
0:00:00.008234193 340 0x55b2015698b0 INFO GST_REGISTRY gstregistry.c:1693:scan_and_update_registry: Validating plugins from registry cache: /root/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.010637228 340 0x55b2015698b0 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)
0:00:00.010652686 340 0x55b2015698b0 INFO GST_PLUGIN_LOADING gstpluginloader.c:617:gst_plugin_loader_spawn: No gst-plugin-scanner available, or not working

(python3:340): GStreamer-WARNING **: 10:34:39.240: 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.013073495 340 0x55b2015698b0 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:340): GStreamer-WARNING **: 10:34:39.243: 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
0:00:00.013454007 340 0x55b2015698b0 INFO GST_REGISTRY gstregistry.c:1785:scan_and_update_registry: Registry cache has not changed
0:00:00.013462899 340 0x55b2015698b0 INFO GST_REGISTRY gstregistry.c:1862:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.013478202 340 0x55b2015698b0 INFO GST_INIT gst.c:833:init_post: GLib runtime version: 2.76.6
0:00:00.013482924 340 0x55b2015698b0 INFO GST_INIT gst.c:835:init_post: GLib headers version: 2.72.1
0:00:00.013486362 340 0x55b2015698b0 INFO GST_INIT gst.c:837:init_post: initialized GStreamer successfully
Creating Pipeline

Creating streamux

0:00:00.016627119 340 0x55b2015698b0 INFO GST_PLUGIN_LOADING gstplugin.c:987:_priv_gst_plugin_load_file_for_registry: plugin “/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_multistream.so” loaded
0:00:00.016741016 340 0x55b2015698b0 INFO GST_ELEMENT_FACTORY gstelementfactory.c:489:gst_element_factory_create_with_properties: creating element “nvstreammux”
0:00:00.016770648 340 0x55b2015698b0 INFO GST_ELEMENT_PADS gstelement.c:759:gst_element_add_pad:GstNvStreamMux@0x55b2018ba530 adding pad ‘src’

1.This error seems to be caused by system permissions, perhaps because you are using the root user.

2.Are you running the sample in docker?
Can you share the command line you used to start docker?

Usually it should be like this

docker run --gpus all -it --rm --net=host --privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-7.0 nvcr.io/nvidia/deepstream:7.0-gc-triton-devel

3.If you use docker, what is the version of docker? Try updating the version of docker

Thanks,this command line works:
docker run --gpus all -it --rm --net=host –privileged -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-7.0 nvcr.io/nvidia/deepstream:7.0-gc-triton-devel

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