X11 Display is not available

Hello, I’ve just installed openSUSE Tumbleweed and so far I’m enjoying it so much that I definetle want to overcome this problem which is harming me so heavily.

I use snap to keep up to date several softwares, like slack, skype, phpstorm, godot engine.

On openSUSE I’ve been facing this strange behaviour that when opening godot engine from app laucher it just fails to launch with no messages (the label on the bottom bar just disappers after some sseconds) and from command line it prints the following

leggy@new-host-2:~> godot
No protocol specified
ERROR: initialize: X11 Display is not available

phpstorm seems not to be affected by this problem, while slack and skype also fail to start but with no messages at all (launching them from command line)

trying to nail down into it it seems that there are too many processes keeping X11 display busy (maybe it has n pipelins available… unfortunately this is kinda a new topic for me) and looking at the processes I have this output:

leggy@new-host-2:~> ps aux|grep X
root      2284  1.5  1.1 368104 94512 tty7     Ssl+ 09:46   0:16 /usr/bin/X -nolisten tcp -auth /run/sddm/{a493d0d3-ae3c-4b70-b7e1-e2ad15627146} -background none -noreset -displayfd 17 -seat seat0 vt7
leggy     2422  0.0  0.0   5680   460 ?        Ss   09:46   0:00 /usr/bin/ssh-agent /usr/bin/gpg-agent --sh --daemon --keep-display /etc/X11/xinit/xinitrc
leggy     2423  0.0  0.0 154724  2736 ?        Ss   09:46   0:00 /usr/bin/gpg-agent --sh --daemon --keep-display /etc/X11/xinit/xinitrc
leggy     4319  0.0  0.0   6200   732 pts/0    S+   10:04   0:00 grep --color=auto X

this optput points me into the direction of thinking that somehow xorg configuration could sort this problem out because of the two processes with that suspicious --keep-display options.

is there anyone who could help me out?

leggy

HI, welcome

If your desktop environment is running fine, apart from the snaps, I’d suspect the snap configuration.

Just throwing out a highly speculative possibility since you didn’t post anything specific pointing to the following issue…

If you’re configured to use Wayland, you might want to re-configure to use xorg instead.
If an application tries to access your X server by some “external” method (even if the application is running on the same machine), I imagine the application needs to know how to access using a socket instead of an X server.

An common example of where this is documented is when you set up a VNC server (Remote Administration) on LEAP 15/TW.
There is a good chance Skype could be affected by this, but I wonder about Slack which AFAIK is a collection of web parts so I’d be surprised if affected…

TSU

thanks for your reply.
unfortunately I’m running xorg already.
as @knurpht supposed, desktop environment is running fine, apparently. but also snap looks all right.

considering the situation from a different point of view, what does the above error message mean? could anybody explain me how does xorg work and/or guess why it could throw that error out?

leggy

I interpreted the error to mean that the application isn’t “talking” to the X11 server in a way both app and X11 both understand, that’s why I speculated that the API or sockets each assume should be using aren’t matching.

The easiest cause I could think of was as I described, but maybe there’s another possibility.
If communication is through a network socket (or other external means), besides the X server used for your local GUI, you may need to have a 2nd X server running to handle external connections. As I described in my earlier post, connections from another machine (like ssh -X) would absolutely require this, but an application installed on the same machine might or might not require a 2nd X server.

TSU

in this situation, what would you suggest? to run a second X server? I’d like to ask you how since it is quite new to me.

I have a new detail to add, that is when I’m at work (different network) everything seems to works just fine.

leggy

You can run a second X server, that’s one of the recommended options for Wayland users who don’t want to learn “native” ways to access.

Are you logged in differently at work?
Using your machine in a different way?
Although I would have expected a different error, it may again be relevant for how your problem apps are connecting (through an external connection or not)

TSU