Run deepstream-app samples error

• Hardware Platform (Jetson / GPU)
Docker Desktop with WSL 2 backend
• DeepStream Version
5.0.0
• JetPack Version (valid for Jetson only)
• TensorRT Version
7.0.0-1+cuda10.2
• NVIDIA GPU Driver Version (valid for GPU only)
470.14
• Issue Type( questions, new requirements, bugs)
Bug, Unable to successfully run samples provided in README using eglsink.
• 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)

Step 1: Install “Docker Desktop with WSL 2 backend” and “X server (VcXsrv)” on Window 10 (with Insider Programme).
Step 2: Run docker run --gpus all -it -e DISPLAY=192.168.1.100:0.0 -v ~/directory_name/deep_stream:/home/deepstream nvcr.io/nvidia/deepstream:5.0-20.07-samples /bin/bash on elevated PowerShell7.
Step 3: Run deepstream-app -c configs/deepstream-app/source4_1080p_dec_infer_resnet_tracker_sgie_tiled_display_int8.txt inside docker container.
Step 4: Bug happened where the “XLaunch is blackscreen” and ERROR message: “ERROR from secondary_gie_bin_queue: Internal data stream error.” appeared.

•Debugging Process which had been carried out

Process: Run apt-get install nano and nano configs/deepstream-app/source4_1080p_dec_infer_resnet_tracker_sgie_tiled_display_int8.txt to modify type of [sink0] from Type=2 (EglSink) to Type=1 (FakeSink).
Result: The deepstream-app -c configs/deepstream-app/source4_1080p_dec_infer_resnet_tracker_sgie_tiled_display_int8.txt run without any error or bugs.

Process: Run docker run --rm -it -e DISPLAY=192.168.1.100:0.0 aliustaoglu/firefox on elevated PowerShell7.
Result: The Firefox installed in the docker run without any error. Desktop display is set into the Docker container.

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

• Debugging Process which had been carried out

Process:

  1. Run docker run --gpus all -it -e DISPLAY=192.168.1.100:0.0 -v ~/directory_name/deep_stream:/home/deepstream nvcr.io/nvidia/deepstream:5.0-20.07-samples /bin/bash on elevated PowerShell7.
  2. Then, run apt-get install x11-apps
  3. Next, run xeyes

Result:

Display is successfully import to Docker container loaded with deepstream5.0 image.

Hi,
Which GPU you are using?

Hi,

I am using Docker Desktop on Windows 10 with WSL 2 as backends to run DS5.0. For my Windows 10, I am using NVIDIA GeForce GTX 1660 Ti version 470.14 as my GPU.

Can you get the whole error log here?

Sure. By the way, I would like to show my appreciation for your help by saying Thank you.
This is the error log files with debug level set to 1 by using --gst-debug-level=1.

Runtime commands:

    h: Print this help
    q: Quit

    p: Pause
    r: Resume

NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
To go back to the tiled display, right-click anywhere on the window.

** INFO: <bus_callback:181>: Pipeline ready

cuGraphicsGLRegisterBuffer failed with error(304) gst_eglglessink_cuda_init texture = 1
0:00:01.039525700 1690 0x563b302c7230 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2784:gst_eglglessink_configure_caps:<sink_sub_bin_sink1> Cuda Init failed
0:00:01.039555500 1690 0x563b302c7230 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2795:gst_eglglessink_configure_caps:<sink_sub_bin_sink1> Configuring caps failed
0:00:01.039597800 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.039688400 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
** INFO: <bus_callback:167>: Pipeline running

0:00:01.046448500 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046497800 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046537800 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046548500 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046585300 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046700200 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046750200 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046793800 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046830400 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.046864200 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
0:00:01.060380500 1690 0x563b302c6d40 ERROR nveglglessink ext/eglgles/gsteglglessink.c:2840:gst_eglglessink_setcaps:<sink_sub_bin_sink1> Failed to configure caps
ERROR from qtdemux2: Internal data stream error.
Debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin2/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin2/GstQTDemux:qtdemux2:
streaming stopped, reason not-negotiated (-4)
Quitting
ERROR from sink_bin_queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstQueue:sink_bin_queue:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux3: Internal data stream error.
Debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin3/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin3/GstQTDemux:qtdemux3:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux0: Internal data stream error.
Debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin0/GstQTDemux:qtdemux0:
streaming stopped, reason not-negotiated (-4)
ERROR from qtdemux1: Internal data stream error.
Debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin1/GstURIDecodeBin:src_elem/GstDecodeBin:decodebin1/GstQTDemux:qtdemux1:
streaming stopped, reason not-negotiated (-4)
App run failed

This is the complete error log that appeared on the screen.

cuGraphicsGLRegisterBuffer failed with error(304) gst_eglglessink_cuda_init texture = 1
0:00:01.039525700 1690 0x563b302c7230 ERROR nveglglessink

CUDA_ERROR_OPERATING_SYSTEM = 304

This indicates that an OS call failed.

Can you specify how you install display driver?

Hi,

I install the display driver NVIDIA GeForce GTX 1660 Ti version 470.14 by using CUDA Driver provided from CUDA on WSL | NVIDIA Developer and following the instruction given in CUDA on WSL :: CUDA Toolkit Documentation .

Display driver required for nveglglessink to work.
you can use 4=RTSPStreaming or 3=File for the output.

Thank you.

However, as attached,


it is clear that the display driver NVIDIA GeForce GTX 1660 Ti version 470.14 is correctly installed into my Windows 10.

However, the error persists. Any suggestions to resolve this?

You are using windows, linux process can not access and communicate to windows binary.