Cannot run deepstream-test1 on Nano via ssh session

(I remembered I ever ran it successfully, but don’t know why it failed now and then. I noticed x11 forwarding falls into working and not working without any change as time goes)

I’m running Deepstream 5.0 samples on Nano device. It can run successfully on local session, insider or outside docker. Yet I cannot run it via ssh session, though ‘xclock’ showed result via ssh session which demonstrated the x11 forwarding is working.

ssh session, outside docker:

/deepstream-5.0/deepstream_python_v0.9.orig/python/apps/deepstream-test1$ ./deepstream_test_1.py …/sample_720p.h264
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbuf_utils: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection

ssh session, insider docker:
sudo nvidia-docker run -it --rm --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" -v /deepstream-5.0/:/root/ds-dp-5.0 -v /usr/lib/python3.6/dist-packages/tensorrt:/usr/lib/python3.6/dist-packages/tensorrt -v /usr/local/cuda-10.0:/usr/local/cuda -v /opt/nvidia/deepstream/deepstream/source:/opt/nvidia/deepstream/deepstream/sources -w /root/ds-dp-5.0/deepstream_python_v0.9.orig/python/apps/ --name dsdp_nano nvcr.io/nvidia/deepstream-l4t:5.0-dp-20.04-samples

root@nano-desktop:~/ds-dp-5.0/deepstream_python_v0.9.orig/python/apps/deepstream-test1# ./deepstream_test_1.py …/sample_720p.h264
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
2020-06-18 15:54:29.975443: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.2
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
2020-06-18 15:54:31.503357: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcudart.so.10.2
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbufsurftransform: Could not get EGL display connection
Creating Pipeline

Creating Source

Creating H264Parser

Creating Decoder

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

libEGL warning: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri)

nvbuf_utils: Could not get EGL display connection
Unable to create NvStreamMux
Unable to create pgie
Unable to create nvvidconv
Unable to create nvosd
Creating EGLSink

Playing file …/sample_720p.h264
Traceback (most recent call last):
File “./deepstream_test_1.py”, line 266, in
sys.exit(main(sys.argv))
File “./deepstream_test_1.py”, line 199, in main
streammux.set_property(‘width’, 1920)
AttributeError: ‘NoneType’ object has no attribute ‘set_property’

xrandr result:

xrandr

xrandr: Failed to get size of gamma for output default
Screen 0: minimum 640 x 480, current 1680 x 1028, maximum 3360 x 2100
default connected 1680x1028+0+0 0mm x 0mm
2880x1800 60.00
1440x900 60.00
3360x2100 60.00
2560x1600 60.00
2048x1280 60.00
1650x1050 60.00
1280x800 60.00
1152x720 60.00
1024x768 60.00
840x524 60.00
800x600 60.00
640x480 60.00
1680x1028 1.00*
1680x1050 2.00

Hi
You issue is similar with this thread, correct?

Similar issue, different result.

This one it failed to run regardless insider or outside docker via ssh session.
That one failed with segmentation fault outside docker, successful with outputting to a wrong window insider docker.

It seems you indicated DS5.0 doesn’t support x11 forwarding via ssh session. That’s why it gets “unpredictable” behaviour?

On Jetson, running a DeepStream application over SSH (via putty) with X11 forwarding does not work.

under ssh,if you want to render to display, you need to “export DISPLAY=:0” or “export DISPLAY=:1”

1 Like

Is there any alternative? Does it mean it won’t work with putty and jetson only, or won’t work with windows system (I tried windows with xterm moba and deep stream container hosted on linux server (not on jetson), wont work either) or simply won’t work with SSH+X11?

If you want to view the output, you can use sink type 4=RTSPStreaming, then you can view the output by vlc player.