Using Nvidia containers fail with sink to X Display

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) dGPU GTX1080i
• DeepStream Version deepstream-6.0_6.0.0-1_amd64.deb
• TensorRT Version nv-tensorrt-repo-ubuntu1804-cuda11.3-trt8.0.1.6-ga-20210626_1-1_amd64.deb
• NVIDIA GPU Driver Version (valid for GPU only) 510.39.01
• Issue Type( questions, new requirements, bugs) question?
**• How to reproduce the issue ? **

Start by running

xhost +si:localuser:root

or even

xhost +

Then load the Samples docker (Or the development docker):

docker run --gpus all -it --rm -w /opt/nvidia/deepstream/deepstream/samples nvcr.io/nvidia/deepstream:6.0-samples

Then run the deepstream-app with a sample config:

deepstream-app -c configs/deepstream-app/source30_1080p_dec_infer-resnet_tiled_display_int8.txt

Results in error:

** ERROR: <main:675>: Could not open X Display
deepstream-app -c configs/deepstream-app/source30_1080p_dec_infer-resnet_tiled_display_int8.txt
0:00:00.853381057   488 0x55568e018470 INFO                 nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1900> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/../../models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
INFO: ../nvdsinfer/nvdsinfer_model_builder.cpp:610 [Implicit Engine Info]: layers num: 3
0   INPUT  kFLOAT input_1         3x368x640       
1   OUTPUT kFLOAT conv2d_bbox     16x23x40        
2   OUTPUT kFLOAT conv2d_cov/Sigmoid 4x23x40         

0:00:00.853455990   488 0x55568e018470 INFO                 nvinfer gstnvinfer.cpp:638:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2004> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/../../models/Primary_Detector/resnet10.caffemodel_b30_gpu0_int8.engine
0:00:00.855641721   488 0x55568e018470 INFO                 nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-6.0/samples/configs/deepstream-app/config_infer_primary.txt sucessfully
** ERROR: <main:675>: Could not open X Display
Quitting
App run failed

This occurs with sink type 4 and 2

Thanks for the help!

eglglessink needs X11. When you run the docker, please add “-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY” options with you docker command line.

1 Like

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