[Gen5] GPU Hang with any gtk4 application
System information
- OS: Fedora Linux 35 (Workstation Edition Prerelease)
- GPU:
lspci -nn | grep VGA
:00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor Integrated Graphics Controller [8086:0042] (rev 12)
- Kernel version:
5.14.10-300.fc35.x86_64 #1 SMP Thu Oct 7 20:48:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
- Mesa version: 2.1 Mesa 21.2.3
- Xserver version (if applicable): - (applications are running on wayland)
- Desktop manager and compositor: GNOME shell on wayland
gnome-shell-41.0-3.fc35.x86_64 gtk3-3.24.30-4.fc35.x86_64 gtk4-4.4.0-4.fc35.x86_64 glib2-2.70.0-4.fc35.x86_64 mutter-41.0-3.fc35.x86_64 libwayland-server-1.19.0-2.fc35.x86_64
If applicable
- DXVK version: ?
- Wine/Proton version: -
Describe the issue
Every time I start any gtk4 based application and interact with the GUI (often just basic stuff like hover the mouse over the "x" close button, clicking into a GtkStack once or resizing the window), I get GPU Hangs. I am often seeing rendering artifacts or incompletely rendered windows. In case of gnome-extensions-app and easyeffects, the top window bar is being rendered incompletely, i.e. missing controls (minimize and close button), see screenshot below.
The issue is 100% reproducible with different applications using Gtk4. In fact, any of the 4 applications based on gtk4 I've tested so far shows this issue.
Regression
When I tried this last on Fedora 34 (with mesa 21.1, gtk4 4.2.1, an older kernel and probably other software older than now) it worked fine. I don't know whether the code path in gtk4 changed in a way that it triggers this issue now or whether this is an actual regression in mesa 21.2 compared to 21.1.
Log files as attachment
- Output of
dmesg
: dmesg.log - Backtrace: I don't know how to get a backtrace for the GPU hangs. You can find backtraces for a few potentially related crashes below.
- Gpu hang details: As the log indicates, there is no error state being saved.
Screenshots/video files (if applicable)
Any extra information would be greatly appreciated
Other graphical applications using gtk3 or qt5 work fine.
Issue does not affect more modern GPUs
This issue is not present with more recent GPUs. On another system with identical software (packages and versions) but a newer CPU model (Intel Core i5 2450M, with Intel HD Graphics 3000 (SNB GT2)) for example, all tested gtk4 applications work fine, including the ones crashing at the first computer. From that computer the only difference regarding System information:
$ 00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0126] (rev 09)
Potentially related crashes
Sometimes running gtk4 applications also triggers an abort()
in _crocus_batch_flush()
which I can reliably reproduce on my machine when starting the gnome-extensions-app (bug report with backtrace), easyeffects and sometimes even with gtk4-demo (bug report with backtrace). Some of these applications don't cause the abort, e.g. gnome-todo. Shall I report the abort separately?