[DeepStream5.1] ERROR: No EGL Display

I am connecting to the JetBot from a Windows terminal using PowerShell via SSH. I am attempting to perform video recognition using a TensorRT-optimized YOLOv7-tiny
model with the following command:

deepstream-app -c deepstream_app_config.txt

However, I encountered the following error:

No EGL Display
nvbufsurftransform: Could not get EGL display connection

I have successfully used applications like Leafpad, indicating that the Xserver connection is functioning correctly.

Here is my environment:

  • Jetson Nano 2GB
  • Waveshare JetBot
  • Jetpack 4.5
  • DeepStream 5.1
  • CUDA 10.2
  • TensorRT 7.1.2
  • Python 3.6.9

I appreciate your assistance in resolving this issue.

Does this solution work for you? (Nano) nvbufsurftransform: Could not get EGL display connection - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums

Without setting the Display and with ForwardX11=no, it resulted in the following:

Using winsys: x11
0:00:11.213588884 1127 0x7f3c002270 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:1702> [UID = 1]: deserialized trt engine from :/opt/nvidia/deepstream/deepstream-5.1/sources/parser/yolov7-tiny.engine
INFO: [Implicit Engine Info]: layers num: 2
0 INPUT kFLOAT data 3x416x416
1 OUTPUT kFLOAT prob 6001x1x1

0:00:11.213852017 1127 0x7f3c002270 INFO nvinfer gstnvinfer.cpp:619:gst_nvinfer_logger:<primary_gie> NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:1806> [UID = 1]: Use deserialized engine model: /opt/nvidia/deepstream/deepstream-5.1/sources/parser/yolov7-tiny.engine
0:00:11.425767556 1127 0x7f3c002270 INFO nvinfer gstnvinfer_impl.cpp:313:notifyLoadModelStatus:<primary_gie> [UID 1]: Load new model:/opt/nvidia/deepstream/deepstream-5.1/sources/parser/config_infer_primary.txt successfully
** ERROR: main:675: Could not open X Display
Quitting
App run failed

Following the situation presented in the provided link, I made the following changes to the deepstream_app_config.txt file:

[sink0]
enable=1
type=4

Additionally, I connected via SSH using the command ssh -o ForwardX11=no user@ip and unset DISPLAY. After that, when I executed deepstream-app -c deepstream_app_config.txt, the following error occurred:

** ERROR: <create_udpsink_bin:671>: create_udpsink_bin failed
** ERROR: <create_sink_bin:776>: create_sink_bin failed
** ERROR: <create_processing_instance:802>: create_processing_instance failed
** ERROR: <create_pipeline:1294>: create_pipeline failed
** ERROR: main:636: Failed to create pipeline
Quitting

Can you upgrade to DS-6.0?

I tried that configuration and it works fine.

Can you use the following command to dump log for me?

GST_DEBUG_NO_COLOR=1 GST_DEBUG=3 your-app > log.log  2>&1 

The contents of the log.log file are as follows.

** ERROR: <create_udpsink_bin:671>: create_udpsink_bin failed
** ERROR: <create_sink_bin:776>: create_sink_bin failed
** ERROR: <create_processing_instance:802>: create_processing_instance failed
** ERROR: <create_pipeline:1294>: create_pipeline failed
** ERROR: main:636: Failed to create pipeline
Quitting
App run failed

Have you installed the dependencies correctly?

sudo apt install \
libssl1.0.0 \
libgstreamer1.0-0 \
gstreamer1.0-tools \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-libav \
libgstrtspserver-1.0-0 \
libjansson4=2.11-1

https://docs.nvidia.com/metropolis/deepstream/5.1/dev-guide/text/DS_Quickstart.html#

It was already installed.

I don’t know if this is related to this issue, but I thought I would share it with you.
When I checked to see if the CUDA sample code worked, I ran the make command and got the following error

/usr/bin/ld: cannot find -lEGL

There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one. Thanks

I’m not sure if you have fully installed Jetpack, are you able to run deepstream-test1-app normally?

You can try the solution of this topic

If it does not work, it is recommended to reinstall and burn Jetpack and reinstall DeepStream.

https://docs.nvidia.com/metropolis/deepstream/6.0/dev-guide/text/DS_Quickstart.html#install-latest-nvidia-bsp-packages

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