Deepstream 5.1 docker/dGPU sample apps not working

Nvidia RTX 2080 Ti
Driver Version: 460.39
Docker nvcr.io/nvidia/deepstream 5.1-21.02-triton
(my only addition to base image is installing jupyter)
docker run --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 --gpus all -p 8889:8888 ds_jupyter

Hi, I’m new to Deepsteam and trying to run test applications on docker images.
deepstream-test-1 app compiles but always crashes after a couple of frames:

root@1570352bebc7:/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/deepstream-test1# ./deepstream-test1-app …/…/…/…/samples/streams/sample_720p.h264
Now playing: …/…/…/…/samples/streams/sample_720p.h264
0:00:14.631360471 1312 0x560add511830 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1702> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.1/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
INFO: …/nvdsinfer/nvdsinfer_model_builder.cpp:685 [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:14.631436166 1312 0x560add511830 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1806> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-5.1/samples/models/Primary_Detector/resnet10.caffemodel_b1_gpu0_int8.engine
0:00:14.632187343 1312 0x560add511830 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus: [UID 1]: Load new model:dstest1_pgie_config.txt sucessfully
Running…
Frame Number = 0 Number of objects = 6 Vehicle Count = 4 Person Count = 2
0:00:14.828886955 1312 0x560add03f540 WARN nvinfer gstnvinfer.cpp:1984:gst_nvinfer_output_loop: error: Internal data stream error.
0:00:14.828926130 1312 0x560add03f540 WARN nvinfer gstnvinfer.cpp:1984:gst_nvinfer_output_loop: error: streaming stopped, reason not-negotiated (-4)
Frame Number = 1 Number of objects = 6 Vehicle Count = 4 Person Count = 2
ERROR from element primary-nvinference-engine: Internal data stream error.
Error details: gstnvinfer.cpp(1984): gst_nvinfer_output_loop (): /GstPipeline:dstest1-pipeline/GstNvInfer:primary-nvinference-engine:
streaming stopped, reason not-negotiated (-4)
Returned, stopping playback
Frame Number = 2 Number of objects = 5 Vehicle Count = 3 Person Count = 2
Deleting pipeline


Similar problems occur when I try to run test-2 and other sample apps.

Can anyone help me understand what is the root cause of the problem?

Did you export DISPLAY=:0 or 1? //xrandr to check if display exported success
xhost + //before run docker

1 Like

Yeah, thanks, the problem was with display!

Either your solution or replacing egslink with fakesink worked.
Thanks!