'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
Solution 1:[1]
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:
- 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 asexport DISPLAY=:X
(where X is what was printed before). - If you are using GStreamer then use nvoverlaysink which doesn't require X. You will need a monitor connected to the board though.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Michael Gruner |