Gtk-WARNING **: cannot open display: localhost:10.0

I am on the new end of learning remote connections and I ran into a rather strange issue when connecting remotely to a machine.

Host: Jetson Nano - Ubuntu Client: Asus desktop - Linux Mint

I am using SSH to connect to the host machine. Once I'm in, I run my program which should open the camera that the host machine has connected via mipi connection... but it does not show a display window. Rather it displays:

Gtk-WARNING **: cannot open display: lcocalhost:10.0
CONSUMER: Done Success 
(Argus)Error InvalidState: Argus client is exiting with 2 outstanding client threads

If run the program in the machine without SSH connection, it works and the display shows what the camera is capturing. I tried changing the X11forwarding and agent to YES, and I tried export DISPLAY=localhost:10.0. That did not work as well.

Any help would be appreciated. Thanks, GM

1 answer

  • answered 2022-05-06 20:41 Michael Gruner

    Bear in mind that many GPU-related stuff won't work without a working display. Sadly, X11 forwarding doesn't work in those cases. At this point, it is not clear if this is your case, or if it is simply that you have the wrong DISPLAY number. You may try:

    1. Connecting a physical monitor and keyboard to the board, opening a terminal and running echo $DISPLAY. (in the keyboard/monitor session, not the SSH session). Then set that on your remote session as export DISPLAY=:X (where X is what was printed before).
    2. If you are using GStreamer then use nvoverlaysink which doesn't require X. You will need a monitor connected to the board though.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum