gnome-shell hangs after rapid login + logout
I'm seeing this hang, since the changes to move most of the session setup to systemd (I think), which is why I'm filing this issue here.
I can reproduce this 100% by logging in under GDM (to a GNOME on Wayland session) and then immediately logging out again. I believe 1 login/logout is enough to trigger this, 2 cycles definitely trigger it. The trick to trigger it is to logout again ASAP.
Running journalctl -b -1 after power-cycling my system to recover from the hang (black screen with unmoving mouse pointer) the following stands out:
org.gnome.Shell.desktop[2720]: could not connect to wayland server
org.gnome.Shell.desktop[2720]: (EE)
org.gnome.Shell.desktop[2720]: Fatal server error:
org.gnome.Shell.desktop[2720]: (EE) Couldn't add screen
org.gnome.Shell.desktop[2720]: (EE)
This is Xwayland complaining that it cannot connect to the Wayland compositor (so to mutteR) I believe I was already seeing this before the on demand Xwayland changes, not 100% sure though.
Edited by Benjamin Berg