Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

QXcbConnection: Could not connect to display #38

Open
MetallicMonkeyu opened this issue Dec 8, 2020 · 7 comments
Open

QXcbConnection: Could not connect to display #38

MetallicMonkeyu opened this issue Dec 8, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@MetallicMonkeyu
Copy link

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
Copy link
Owner

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

@MetallicMonkeyu
Copy link
Author

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

@joelspadin
Copy link
Owner

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.

@joelspadin joelspadin added the bug Something isn't working label Dec 10, 2020
@jiangchaokang
Copy link

How did you solve this problem later?

@MetallicMonkeyu
Copy link
Author

How did you solve this problem later?

Sorry I failed to figure it out :(

@joelspadin
Copy link
Owner

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
Copy link
Author

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants