Error in client communication with Xwayland on Alt-Tab
Affected version
OS: Running Arch Linux 5.15.4 kernel. Full update (pacman -Syu) yesterday (23rd of November)
Gnome version:
[jaap@Jaap-Desktop ~]$ gnome-shell --version
GNOME Shell 41.1
Does this issue appear in Xorg and/or Wayland: Happening on Wayland. Haven't tested Xorg
Bug summary
I am not sure exactly what is causing it. I use my computer mainly for gaming, and I usually have a browser open on my second monitor. I am not sure if these are requirements to trigger the bug, but I will do my best to describe what I am doing when it's happening.
Every time the bug has happened, I have been running a fullscreen application on my main monitor. I have had it trigger while playing WoW classic (Wine + DXVK) and while playing Shadow of the Tomb Raider (Native linux + Native vulkan). The bug has happened a total of close to ~10 times now, and happens about once or twice a day.
Sometimes when I try to alt-tab out of my fullscreen game to Firefox on my other monitor, the screen completely freezes. After a few seconds most of my applications are suddenly closed, but some of them are still open (I think those that are still open are native wayland). I am not sure if the issue is only triggered by Firefox, but that's the application I am most often alt-tabbing to, and it's been the situation that has triggered the bug.
Steps to reproduce
- Play a fullscreen game on your main monitor.
- Have Firefox open on your second monitor.
- Alt-tab from your game to Firefox. Note: Usually this works just fine. The bug only triggers very rarely (but often enough to be really annoying)
What happened
XWayland just died, taking my applications that were running with it. After a few seconds it would recover.
What did you expect to happen
I would expect Gnome not to crash on alt-tabbing.
Relevant logs, screenshots, screencasts etc.
Nov 24 14:24:51 Jaap-Desktop gnome-shell[1811]: Window manager warning: last_user_time (13302409) is greater than comparison timestamp (13302382). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around...
Nov 24 14:24:51 Jaap-Desktop gnome-shell[1811]: Window manager warning: 0x240002c appears to be one of the offending windows with a timestamp of 13302409. Working around...
Nov 24 14:25:22 Jaap-Desktop gnome-shell[1811]: Window manager warning: last_user_time (13332871) is greater than comparison timestamp (13332855). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around...
Nov 24 14:25:22 Jaap-Desktop gnome-shell[1811]: Window manager warning: 0x240002c appears to be one of the offending windows with a timestamp of 13332871. Working around...
Nov 24 14:29:52 Jaap-Desktop gnome-shell[1811]: Window manager warning: last_user_time (13603278) is greater than comparison timestamp (13603249). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around...
Nov 24 14:29:52 Jaap-Desktop gnome-shell[1811]: Window manager warning: 0x240002c appears to be one of the offending windows with a timestamp of 13603278. Working around...
Nov 24 14:30:35 Jaap-Desktop steam.desktop[12112]: [S_API WARN] SetStat() failed, stat FirstSteps_stat does not exist - needs to be first configured on the Steamworks site
Nov 24 14:30:35 Jaap-Desktop steam.desktop[14593]: src/common/pipes.cpp (787) : bReceivedSomething
Nov 24 14:30:35 Jaap-Desktop steam.desktop[14593]: src/common/pipes.cpp (787) : bReceivedSomething
Nov 24 14:30:35 Jaap-Desktop steam.desktop[14593]: [S_API WARN] SetStat() failed, stat FirstSteps_stat does not exist - needs to be first configured on the Steamworks site
Nov 24 14:34:00 Jaap-Desktop gnome-shell[1811]: Window manager warning: last_user_time (13851562) is greater than comparison timestamp (13851555). This most likely represents a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around...
Nov 24 14:34:00 Jaap-Desktop gnome-shell[1811]: Window manager warning: 0x240002c appears to be one of the offending windows with a timestamp of 13851562. Working around...
Nov 24 14:38:14 Jaap-Desktop gnome-shell[1811]: WL: error in client communication (pid 1811)
Nov 24 14:38:14 Jaap-Desktop gnome-shell[2825]: (EE) failed to read Wayland events: Connection reset by peer
Nov 24 14:38:14 Jaap-Desktop steam.desktop[12112]: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Nov 24 14:38:14 Jaap-Desktop gnome-shell[1811]: Connection to xwayland lost
Nov 24 14:38:14 Jaap-Desktop gnome-shell[1811]: Xwayland just died, attempting to recover
Nov 24 14:38:14 Jaap-Desktop gnome-shell[1811]: X Wayland crashed; attempting to recover
Nov 24 14:38:14 Jaap-Desktop systemd[1754]: Stopped target GNOME session X11 services.
Nov 24 14:38:14 Jaap-Desktop systemd[1754]: Stopping GNOME XSettings service...
Nov 24 14:38:15 Jaap-Desktop systemd[1754]: org.gnome.SettingsDaemon.XSettings.service: Main process exited, code=exited, status=1/FAILURE
Nov 24 14:38:15 Jaap-Desktop systemd[1754]: org.gnome.SettingsDaemon.XSettings.service: Failed with result 'exit-code'.
Nov 24 14:38:15 Jaap-Desktop systemd[1754]: Stopped GNOME XSettings service.
Nov 24 14:38:15 Jaap-Desktop systemd[1754]: Stopped target GNOME session X11 services.
Nov 24 14:38:15 Jaap-Desktop firefox.desktop[13964]: Exiting due to channel error.
Nov 24 14:38:15 Jaap-Desktop firefox.desktop[13530]: Exiting due to channel error.
Nov 24 14:38:15 Jaap-Desktop firefox.desktop[7512]: Exiting due to channel error.
Nov 24 14:38:15 Jaap-Desktop firefox.desktop[7468]: Exiting due to channel error.
Nov 24 14:38:15 Jaap-Desktop gnome-shell[1811]: Failed to launch ibus-daemon: Failed to execute child process “ibus-daemon” (No such file or directory)
Nov 24 14:38:15 Jaap-Desktop gnome-shell[1811]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Nov 24 14:38:15 Jaap-Desktop gnome-shell[1811]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Nov 24 14:38:15 Jaap-Desktop gnome-shell[1811]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Nov 24 14:38:15 Jaap-Desktop gnome-shell[1811]: Using public X11 display :0, (using :1 for managed services)
Nov 24 14:38:15 Jaap-Desktop appindicatorsupport@rgcjonas.gmail.com[1811]: unable to update icon for null
Nov 24 14:38:15 Jaap-Desktop systemd[1754]: app-gnome-signal\x2ddesktop-6658.scope: Consumed 12min 50.401s CPU time.
Nov 24 14:38:15 Jaap-Desktop systemd[1754]: app-gnome-firefox-7224.scope: Consumed 6min 57.927s CPU time.
Nov 24 14:38:18 Jaap-Desktop systemd[1754]: Started Application launched by gnome-shell.
Nov 24 14:38:18 Jaap-Desktop dbus-daemon[1770]: [session uid=1000 pid=1770] Activating via systemd: service name='org.gnome.Terminal' unit='gnome-terminal-server.service' requested by ':1.246' (uid=1000 pid=15749 comm="gnome-terminal ")
Nov 24 14:38:18 Jaap-Desktop systemd[1754]: Starting GNOME Terminal Server...
Nov 24 14:38:18 Jaap-Desktop dbus-daemon[1770]: [session uid=1000 pid=1770] Successfully activated service 'org.gnome.Terminal'
Nov 24 14:38:18 Jaap-Desktop systemd[1754]: Started GNOME Terminal Server.
Nov 24 14:38:18 Jaap-Desktop systemd[1754]: Started VTE child process 15773 launched by gnome-terminal-server process 15755.
Nov 24 14:38:28 Jaap-Desktop audit[15775]: USER_AUTH pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="jaap" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop kernel: audit: type=1100 audit(1637761108.453:280): pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="jaap" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop kernel: audit: type=1101 audit(1637761108.453:281): pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="jaap" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop kernel: audit: type=1110 audit(1637761108.453:282): pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop kernel: audit: type=1105 audit(1637761108.456:283): pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop audit[15775]: USER_ACCT pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="jaap" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop audit[15775]: CRED_REFR pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop audit[15775]: USER_START pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop dbus-daemon[816]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.142' (uid=0 pid=15775 comm="sudo dmesg ")
Nov 24 14:38:28 Jaap-Desktop dbus-daemon[816]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Nov 24 14:38:28 Jaap-Desktop sudo[15775]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Nov 24 14:38:28 Jaap-Desktop sudo[15775]: jaap : TTY=pts/0 ; PWD=/home/jaap ; USER=root ; COMMAND=/usr/bin/dmesg
Nov 24 14:38:28 Jaap-Desktop sudo[15775]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1000)
Nov 24 14:38:28 Jaap-Desktop sudo[15775]: pam_unix(sudo:session): session closed for user root
Nov 24 14:38:28 Jaap-Desktop audit[15775]: USER_END pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop audit[15775]: CRED_DISP pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop kernel: audit: type=1106 audit(1637761108.479:284): pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:28 Jaap-Desktop kernel: audit: type=1104 audit(1637761108.479:285): pid=15775 uid=1000 auid=1000 ses=4 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:51 Jaap-Desktop dbus-daemon[816]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.143' (uid=0 pid=15777 comm="sudo journalctl ")
Nov 24 14:38:51 Jaap-Desktop audit[15777]: USER_ACCT pid=15777 uid=1000 auid=1000 ses=4 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="jaap" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/0 res=success'
Nov 24 14:38:51 Jaap-Desktop dbus-daemon[816]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.home1.service': Unit dbus-org.freedesktop.home1.service not found.
Nov 24 14:38:51 Jaap-Desktop sudo[15777]: pam_systemd_home(sudo:account): systemd-homed is not available: Unit dbus-org.freedesktop.home1.service not found.
Nov 24 14:38:51 Jaap-Desktop sudo[15777]: jaap : TTY=pts/0 ; PWD=/home/jaap ; USER=root ; COMMAND=/usr/bin/journalctl