Gnome-shell freezes with NVIDIA (Wayland)
When using an NVIDIA card on Wayland the session will freeze at some point. It happens with a single monitor setup, but is easier to reproduce with 2 monitors:
- Start Gnome on Wayland with NVIDIA.
- Connect second monitor to NVIDIA card.
- Start gnome-terminal
When gnome-terminal starts (or sometimes before the window is shown) the session freezes. It is not possible to switch to a tty. Only hard reset works.
journalctl prints sometimes (when this happens):
kernel: [drm:nv_drm_internal_framebuffer_create [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to create NvKmsKapiSurface gnome-shell: Failed to flip EGL stream (An EGLStreamKHR argument is not in a valid state), relying on clock from now on
Sometimes it doesn't show anything in journalctl when the session freezes. Trying to freeze Gnome-shell 2-3 times this way should however print this error in journalctl in one try.
Arch Linux mutter-3.29.2+45+g435b3c4b-1 gnome-shell-3.29.2+13+g68b01a8f5-1