joelspadin / vscode-remote-x11

Visual Studio Code extension that sets the DISPLAY environment variable in remote workspaces
39 stars 9 forks source link

QXcbConnection: Could not connect to display #38

Open MetallicMonkeyu opened 3 years ago

MetallicMonkeyu commented 3 years ago

Hello everyone! Could someone take a look at my issue and help me out? It took me a long time but still got no solution... According to the log, it seems that the Remote-X11 is working properly; however, when I ran the program (with GUI feature) the terminal gives me the error "QXcbConnection: Could not connect to display Aborted (core dumped)".

The following is the output from log: Setting up display for remote "ssh-remote". Connecting with SSH. See Remote X11 (SSH) logs for more details. DISPLAY = localhost:12.0 LIBGL_ALWAYS_INDIRECT = 1

Does anyone know what is wrong? I really appreciate it if someone could give a hand...

joelspadin commented 3 years ago

I haven't seen that before. What OSes are the local and remote machines using, and what program are you trying to run?

MetallicMonkeyu commented 3 years ago

I am running labelImg on linux for remote machine and macOS is my local machine.

joelspadin commented 3 years ago

I think someone mentioned in another issue that the extension needs to be able to send to something other than localhost on the local machine to work on macOS. I started trying to fix that but the solution I was trying end up overcomplicating things, so I'll be trying a much simpler solution later instead.

jiangchaokang commented 3 years ago

How did you solve this problem later?

MetallicMonkeyu commented 3 years ago

How did you solve this problem later?

Sorry I failed to figure it out :(

joelspadin commented 3 years ago

I just published version 1.5.0, which changes to using a Unix socket to communicate with the X11 server on Linux and macOS. It is now working for me on Linux, but I don't have any way to test on macOS. Could you check if this is fixed now?

MetallicMonkeyu commented 3 years ago

I just published version 1.5.0, which changes to using a Unix socket to communicate with the X11 server on Linux and macOS. It is now working for me on Linux, but I don't have any way to test on macOS. Could you check if this is fixed now?

I just tried again and there was no error appeared as before, but the program hangs and cannot see its initialization process. The log from OUTPUT pane is as the following:

Setting up display for remote "ssh-remote". Connecting with SSH. See Remote X11 (SSH) logs for more details. DISPLAY = localhost:14.0 LIBGL_ALWAYS_INDIRECT = 1

Not sure what went wrong. Any hints?