I am trying to run the examples using the Deepstream 6.1 docker image for dGPU. (link) [Docker Containers — DeepStream 6.1.1 Release documentation]
I’m running Ubuntu20.04LTS
The steps I have taken are as follows:
- Run docker image:
$ nvidia-docker run -it --env DISPLAY --env XAUTHORITY --volume /tmp/.X11-unix:/tmp/.X11-unix --volume /run/user/1000/gdm/Xauthority:/run/user/1000/gdm/Xauthority --volume /tmp/.X11-unix:/tmp/.X11-unix --volume /dev/dri/card0:/dev/dri/card0 --gpus all nvcr.io/nvidia/deepstream:6.1-samples /bin/bash
- Change to bin directory and run the sample app with the config file:
$ pwd
/opt/nvidia/deepstream/deepstream-6.1
$ cd bin
$ ./deepstream-app -c $(find / -name "dstest1_pgie_config.txt")
(gst-plugin-scanner:16): GStreamer-WARNING **: 09:47:42.080: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so': libtritonserver.so: cannot open shared object file: No such file or directory
(gst-plugin-scanner:16): GStreamer-WARNING **: 09:47:42.081: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_udp.so': librivermax.so.0: cannot open shared object file: No such file or directory
(gst-plugin-scanner:16): GStreamer-WARNING **: 09:47:42.086: Failed to load plugin '/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_ucx.so': libucs.so.0: cannot open shared object file: No such file or directory
** ERROR: <main:716>: Failed to set pipeline to PAUSED
Quitting
ERROR from src_bin_muxer: Output width not set
Debug info: gstnvstreammux.c(2794): gst_nvstreammux_change_state (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstNvStreamMux:src_bin_muxer
App run failed
- Verify that the display is reachable
$ apt install x11-apps
$ xeyes
This creates the expected xeyes window so I know the display is reachable using the current DISPLAY env var
I can’t help but wonder why I’m getting issues with shared libraries missing…? Isn’t that the point of the docker image?
- Running step2 with GST_DEBUG=4:
$ GST_DEBUG=4 ./deepstream-app -c $(find / -name "dstest1_pgie_config.txt")
0:00:00.000036910 308 0x55c6e127c400 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.16.2
0:00:00.000059167 308 0x55c6e127c400 INFO GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib/x86_64-linux-gnu
0:00:00.000064973 308 0x55c6e127c400 INFO GST_INIT gst.c:605:init_pre: Linux b3cb12cd2595 5.15.0-43-generic #46~20.04.1-Ubuntu SMP Thu Jul 14 15:20:17 UTC 2022 x86_64
0:00:00.000323643 308 0x55c6e127c400 INFO GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages
0:00:00.000723424 308 0x55c6e127c400 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.000913811 308 0x55c6e127c400 INFO GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000989142 308 0x55c6e127c400 INFO GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.001015246 308 0x55c6e127c400 INFO GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.001035328 308 0x55c6e127c400 INFO GST_REGISTRY gstregistry.c:1720:ensure_current_registry: reading registry cache: /root/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.007791306 308 0x55c6e127c400 INFO GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /root/.cache/gstreamer-1.0/registry.x86_64.bin in 0.006740 seconds
0:00:00.007863241 308 0x55c6e127c400 INFO GST_REGISTRY gstregistry.c:1579:scan_and_update_registry: Validating plugins from registry cache: /root/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.008782903 308 0x55c6e127c400 INFO GST_REGISTRY gstregistry.c:1678:scan_and_update_registry: Registry cache has not changed
0:00:00.008789390 308 0x55c6e127c400 INFO GST_REGISTRY gstregistry.c:1755:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.008814269 308 0x55c6e127c400 INFO GST_INIT gst.c:806:init_post: GLib runtime version: 2.64.6
0:00:00.008818206 308 0x55c6e127c400 INFO GST_INIT gst.c:808:init_post: GLib headers version: 2.63.1
0:00:00.008820843 308 0x55c6e127c400 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.008937133 308 0x55c6e127c400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:358:gst_element_factory_create: creating element "pipeline" named "pipeline"
0:00:00.009017644 308 0x55c6e127c400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:358:gst_element_factory_create: creating element "bin" named "multi_src_bin"
0:00:00.054995624 308 0x55c6e127c400 INFO GST_PLUGIN_LOADING gstplugin.c:902:_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.055034815 308 0x55c6e127c400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:358:gst_element_factory_create: creating element "nvstreammux" named "src_bin_muxer"
0:00:00.055358859 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstNvStreamMux@0x55c6e1542040> adding pad 'src'
0:00:00.055449014 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:915:gst_element_get_static_pad: found pad src_bin_muxer:src
0:00:00.055563392 308 0x55c6e127c400 INFO GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link src_bin_muxer:src and src:proxypad0
0:00:00.055590882 308 0x55c6e127c400 INFO GST_PADS gstpad.c:2585:gst_pad_link_full: linked src_bin_muxer:src and src:proxypad0, successful
0:00:00.055608539 308 0x55c6e127c400 INFO GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
0:00:00.055623844 308 0x55c6e127c400 INFO GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked:<src_bin_muxer:src> Received event on flushing pad. Discarding
0:00:00.055649835 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<multi_src_bin> adding pad 'src'
0:00:00.056567273 308 0x55c6e127c400 INFO GST_PLUGIN_LOADING gstplugin.c:902:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.056588293 308 0x55c6e127c400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:358:gst_element_factory_create: creating element "tee" named "tiler_tee"
0:00:00.056672413 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstTee@0x55c6e154f000> adding pad 'sink'
0:00:00.056716383 308 0x55c6e127c400 INFO GST_ELEMENT_FACTORY gstelementfactory.c:358:gst_element_factory_create: creating element "nvstreamdemux" named "demuxer"
0:00:00.056811699 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:668:gst_element_add_pad:<GstNvStreamDemux@0x55c6e1552010> adding pad 'sink'
0:00:00.056840742 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:915:gst_element_get_static_pad: found pad demuxer:sink
0:00:00.056855399 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstutils.c:1771:gst_element_link_pads_full: trying to link element multi_src_bin:(any) to element demuxer:(any)
0:00:00.056872059 308 0x55c6e127c400 INFO GST_PADS gstutils.c:1034:gst_pad_check_link: trying to link multi_src_bin:src and demuxer:sink
0:00:00.056955443 308 0x55c6e127c400 INFO GST_PADS gstutils.c:1587:prepare_link_maybe_ghosting: multi_src_bin and demuxer in same bin, no need for ghost pads
0:00:00.056977881 308 0x55c6e127c400 INFO GST_PADS gstpad.c:2377:gst_pad_link_prepare: trying to link multi_src_bin:src and demuxer:sink
0:00:00.057000253 308 0x55c6e127c400 INFO GST_PADS gstpad.c:2585:gst_pad_link_full: linked multi_src_bin:src and demuxer:sink, successful
0:00:00.057009231 308 0x55c6e127c400 INFO GST_EVENT gstevent.c:1579:gst_event_new_reconfigure: creating reconfigure event
0:00:00.057018585 308 0x55c6e127c400 INFO GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked:<multi_src_bin:src> Received event on flushing pad. Discarding
0:00:00.071070352 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<demuxer> current NULL pending VOID_PENDING, desired next READY
0:00:00.071115832 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2675:gst_element_continue_state:<demuxer> completed state change to READY
0:00:00.071136310 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed:<demuxer> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.071203864 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<pipeline> child 'demuxer' changed state to 2(READY) successfully
0:00:00.071243364 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<multi_src_bin> current NULL pending VOID_PENDING, desired next READY
0:00:00.071301625 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<src_bin_muxer> current NULL pending VOID_PENDING, desired next READY
0:00:00.071687505 308 0x55c6e127c400 WARN nvstreammux gstnvstreammux.c:2794:gst_nvstreammux_change_state:<src_bin_muxer> error: Output width not set
0:00:00.071737425 308 0x55c6e127c400 INFO GST_ERROR_SYSTEM gstelement.c:2140:gst_element_message_full_with_details:<src_bin_muxer> posting message: Output width not set
0:00:00.071800054 308 0x55c6e127c400 INFO GST_ERROR_SYSTEM gstelement.c:2167:gst_element_message_full_with_details:<src_bin_muxer> posted error message: Output width not set
0:00:00.071820892 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2960:gst_element_change_state:<src_bin_muxer> have FAILURE change_state return
0:00:00.071844945 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2547:gst_element_abort_state:<src_bin_muxer> aborting state from NULL to READY
0:00:00.071864092 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2968:gst_bin_change_state_func:<multi_src_bin> child 'src_bin_muxer' failed to go to state 2(READY)
0:00:00.072198006 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2675:gst_element_continue_state:<src_bin_muxer> completed state change to NULL
0:00:00.072233627 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2960:gst_element_change_state:<multi_src_bin> have FAILURE change_state return
0:00:00.072259211 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2968:gst_bin_change_state_func:<pipeline> child 'multi_src_bin' failed to go to state 2(READY)
0:00:00.072299871 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2675:gst_element_continue_state:<demuxer> completed state change to NULL
0:00:00.072319895 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2575:_priv_gst_element_state_changed:<demuxer> notifying about state-changed READY to NULL (VOID_PENDING pending)
0:00:00.072363291 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<src_bin_muxer> current NULL pending VOID_PENDING, desired next NULL
0:00:00.072383345 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2621:gst_bin_element_set_state:<src_bin_muxer> skipping transition from NULL to NULL
0:00:00.072401558 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<multi_src_bin> child 'src_bin_muxer' changed state to 1(NULL) successfully
0:00:00.072424950 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2675:gst_element_continue_state:<multi_src_bin> completed state change to NULL
0:00:00.072454639 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2675:gst_element_continue_state:<tiler_tee> completed state change to NULL
0:00:00.072473986 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2960:gst_element_change_state:<pipeline> have FAILURE change_state return
** ERROR: <main:716>: Failed to set pipeline to PAUSED
Quitting
0:00:00.072566513 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:915:gst_element_get_static_pad: found pad demuxer:sink
0:00:00.072588784 308 0x55c6e127c400 INFO GST_EVENT gstpad.c:5812:gst_pad_send_event_unchecked:<demuxer:sink> Received event on flushing pad. Discarding
ERROR from src_bin_muxer: Output width not set
Debug info: gstnvstreammux.c(2794): gst_nvstreammux_change_state (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstNvStreamMux:src_bin_muxer
0:00:00.173355015 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<demuxer> current NULL pending VOID_PENDING, desired next NULL
0:00:00.173400572 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2621:gst_bin_element_set_state:<demuxer> skipping transition from NULL to NULL
0:00:00.173433582 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<pipeline> child 'demuxer' changed state to 1(NULL) successfully
0:00:00.173458379 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<multi_src_bin> current NULL pending VOID_PENDING, desired next NULL
0:00:00.173497371 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<src_bin_muxer> current NULL pending VOID_PENDING, desired next NULL
0:00:00.173517700 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2621:gst_bin_element_set_state:<src_bin_muxer> skipping transition from NULL to NULL
0:00:00.173533301 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<multi_src_bin> child 'src_bin_muxer' changed state to 1(NULL) successfully
0:00:00.173551322 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2675:gst_element_continue_state:<multi_src_bin> completed state change to NULL
0:00:00.173584435 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<pipeline> child 'multi_src_bin' changed state to 1(NULL) successfully
0:00:00.173609074 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2503:gst_bin_element_set_state:<tiler_tee> current NULL pending VOID_PENDING, desired next NULL
0:00:00.173625712 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2621:gst_bin_element_set_state:<tiler_tee> skipping transition from NULL to NULL
0:00:00.173645242 308 0x55c6e127c400 INFO GST_STATES gstbin.c:2952:gst_bin_change_state_func:<pipeline> child 'tiler_tee' changed state to 1(NULL) successfully
0:00:00.173675724 308 0x55c6e127c400 INFO GST_STATES gstelement.c:2675:gst_element_continue_state:<pipeline> completed state change to NULL
0:00:01.072694584 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstpad.c:2132:gst_pad_unlink: unlinking multi_src_bin:src(0x55c6e1548180) and demuxer:sink(0x55c6e1544630)
0:00:01.072715447 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstpad.c:2187:gst_pad_unlink: unlinked multi_src_bin:src and demuxer:sink
0:00:01.072721626 308 0x55c6e127c400 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<pipeline> removed child "demuxer"
0:00:01.072730778 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose:<demuxer> 0x55c6e1552010 dispose
0:00:01.072733768 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:784:gst_element_remove_pad:<demuxer> removing pad 'sink'
0:00:01.072738207 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose:<demuxer> 0x55c6e1552010 parent class dispose
0:00:01.072742370 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize:<demuxer> 0x55c6e1552010 finalize
0:00:01.072746657 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize:<demuxer> 0x55c6e1552010 finalize parent
0:00:01.072752083 308 0x55c6e127c400 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<pipeline> removed child "tiler_tee"
0:00:01.072756178 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose:<tiler_tee> 0x55c6e154f000 dispose
0:00:01.072759949 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:784:gst_element_remove_pad:<tiler_tee> removing pad 'sink'
0:00:01.072788283 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose:<tiler_tee> 0x55c6e154f000 parent class dispose
0:00:01.072792870 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize:<tiler_tee> 0x55c6e154f000 finalize
0:00:01.072795475 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize:<tiler_tee> 0x55c6e154f000 finalize parent
0:00:01.072800430 308 0x55c6e127c400 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<pipeline> removed child "multi_src_bin"
0:00:01.072828834 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstpad.c:2132:gst_pad_unlink: unlinking src_bin_muxer:src(0x55c6e1544190) and src:proxypad0(0x55c6e154a130)
0:00:01.072855984 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstpad.c:2187:gst_pad_unlink: unlinked src_bin_muxer:src and src:proxypad0
0:00:01.072860273 308 0x55c6e127c400 INFO GST_PARENTAGE gstbin.c:1801:gst_bin_remove_func:<multi_src_bin> removed child "src_bin_muxer"
0:00:01.072864702 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose:<multi_src_bin> 0x55c6e14b8130 dispose
0:00:01.072867934 308 0x55c6e127c400 INFO GST_ELEMENT_PADS gstelement.c:784:gst_element_remove_pad:<multi_src_bin> removing pad 'src'
0:00:01.072874614 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose:<multi_src_bin> 0x55c6e14b8130 parent class dispose
0:00:01.072879751 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize:<multi_src_bin> 0x55c6e14b8130 finalize
0:00:01.072907945 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize:<multi_src_bin> 0x55c6e14b8130 finalize parent
0:00:01.072913409 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3251:gst_element_dispose:<pipeline> 0x55c6e14b60c0 dispose
0:00:01.072934401 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3296:gst_element_dispose:<pipeline> 0x55c6e14b60c0 parent class dispose
0:00:01.072938935 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3328:gst_element_finalize:<pipeline> 0x55c6e14b60c0 finalize
0:00:01.072941604 308 0x55c6e127c400 INFO GST_REFCOUNTING gstelement.c:3333:gst_element_finalize:<pipeline> 0x55c6e14b60c0 finalize parent
App run failed
0:00:01.074480055 308 0x55c6e127c400 INFO GST_INIT gst.c:1083:gst_deinit: deinitializing GStreamer
0:00:01.075571216 308 0x55c6e127c400 INFO GST_INIT gst.c:1232:gst_deinit: deinitialized GStreamer
For reference, this command run inside the container:
$ nvidia-smi
Sun Aug 7 09:54:47 2022
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 515.65.01 Driver Version: 515.65.01 CUDA Version: 11.7 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 On | N/A |
| N/A 48C P5 20W / N/A | 105MiB / 6144MiB | 20% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
+-----------------------------------------------------------------------------+