Glitch when starting a game after login since GNOME Shell 40.1
Affected version
Fedora 34
gnome-shell-40.1-1.fc34.x86_64
Wayland (with AMD RX 550 and Mesa 21.0.3)
Bug summary
After updating to GNOME Shell 40.1 (from 40.0), the following glitch (see Relevant screencasts) started happening regularly when trying to run some game right (or few minutes) after login.
Game from the screencast is Xonotic from Flathub, but it happens with other games that I have as well. (I however have only Flatpak games installed.)
Sometimes, the glitch continues forever and takes focus from me, so it is difficult to even kill the game. When recording it, the glitch always stops after a moment for some reason and the game can be killed easily (also note that the game seems to have two windows at this point, not sure why).
Everything works fine when waiting a few minutes after killing the game and trying to run it again.
Steps to reproduce
- Use fully updated Fedora 34 system.
- Install some game (for example Xonotic from Flathub).
- Reboot your computer and try to run the game right after logging in.
Relevant logs, screenshots, screencasts etc.
This was in system journal:
gnome-shell[9387]: invalid (NULL) pointer instance
gnome-shell[9387]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
gnome-shell[9387]: Cannot grant Xwayland grab to surface 0x563e201a12d0
gnome-shell[9387]: invalid (NULL) pointer instance
gnome-shell[9387]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
gnome-shell[9387]: Cannot grant Xwayland grab to surface 0x563e201a1430
gnome-shell[9387]: invalid (NULL) pointer instance
gnome-shell[9387]: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
gnome-shell[9387]: Cannot grant Xwayland grab to surface 0x563e2019d200
However, the game should work natively on Wayland (it uses SDL2).