Mutter segfaults on wayland
Affected version
OS: Gentoo Version: 40.2 Wayland
Bug summary
Mutter segfaults after trying to load Minecraft.
Jun 28 15:46:34 TimeMachine kernel: [drm] PCIE GART of 256M enabled (table at 0x000000F400000000). Jun 28 15:46:34 TimeMachine kernel: [drm] UVD and UVD ENC initialized successfully. Jun 28 15:46:34 TimeMachine kernel: [drm] VCE initialized successfully. Jun 28 15:47:01 TimeMachine kernel: [drm:dm_plane_helper_prepare_fb [amdgpu]] *ERROR* Failed to pin framebuffer with error -22 Jun 28 15:47:01 TimeMachine kernel: gnome-shell[10039]: segfault at ffffffffffffff58 ip 00007f7f99ed67a7 sp 00007fff34cc90b8 error 5 in libmutter-clutter-8.so.0.0.0[7f7f99e63000+97000] Jun 28 15:47:01 TimeMachine kernel: Code: e8 9e 0c f9 ff 48 89 ef 5d 48 89 c6 e9 22 0b f9 ff 66 90 48 8b 47 28 5d c3 66 2e 0f 1f 84 00 00 00 00 00 48 63 05 e1 82 07 00 <48> 8b 44 38 28 c3 0f 1f 00 48 63 05 d1 82 07 00 48 01 c7 4c 8b 47
This bug occurs only on dGPU and i could not reproduce it on iGPU.
dGPU is Radeon RX560X iGPU is Radeon Vega 8 in Ryzen 5 2500U.
I tried to reproduce this also on X11 gnome-shell and Sway both of which worked and i could play just fine.
From what i looked its trying to pin a framebuffer but it gets invalid argument and crashes mutter. Mutter most likely crashed as it was expecting to be given the pointer to the framebuffer.
This does not happen on iGPU where the game loads without an issue.
It is also from what i can guess a kernel bug as i tried to go back to version im sure i played on without an issue and the same issue still occured.
Steps to reproduce
- Open minecraft launcher
- Load game on dGPU with DRI_PRIME=1
Other way i found to crash it was with unplugging my secondary monitor. Simply unplug the HDMI cable and gnome crashes the same way.
What happened
Segfault.
What did you expect to happen
Well not crashing
Relevant logs, screenshots, screencasts etc.
Have not built mutter or gnome with debug symbols. Will try to and attach them here later.