Deepstream 5.1 - Error: gst-stream-error-quark

Hello guys,

I’m trying to run deepstream-test1 on a Jetson TX2 and I get this error:

Error: gst-stream-error-quark: Internal data stream error. (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(1984): gst_nvinfer_output_loop (): /GstPipeline:pipeline0/GstNvInfer:primary-inference:
streaming stopped, reason error (-5)

I’m using this setup:

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU): Jetson TX2 Jetpack 4.5
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) Jetpack 4.5
• TensorRT Version 7.1.3
• NVIDIA GPU Driver Version (valid for GPU only)

Please try connect one display to the device, you can either run from desktop or by before run app, export DISPLAY=:0 or 1 first // xrandr to check if display exported success