Shell.BlurEffect makes the shell crash when taking a screenshot
Affected version
- gnome 3.36.4+ (not sure when the bug was introduced, it worked well in 3.36.1 I guess)
- fedora 3.32 (but seems to happen everywhere)
- happens on XOrg and Wayland
Bug summary
When a widget is blurred, taking a screenshot makes the shell lag and eventually crash.
Steps to reproduce
In the looking glass inspector (Alt+f2
, lg
):
- Create a widget:
blurred_widget = new St.Widget({
x: 0,
y: 0,
width: 100,
height: 100,
});
- Create a blur effect with mode 1 (blurs the background):
effect = new Shell.BlurEffect({
brightness: 0.6,
sigma: 30,
mode: 1
});
- Add the effect to the widget and place the widget:
blurred_widget.add_effect(effect);
Main.uiGroup.add_child(blurred_widget);
- Take a screenshot
What happened
The gnome shell lags a lot and crashes (although it does not crash under virtualbox, but simply lags a lot and return to normal under 10s).
Under virtualbox, the screenshot is taken, but not in my real machine (even with the same software version).
Relevant logs
journalctl /usr/bin/gnome-shell
shows:
sept. 25 17:16:49 main audit[86871]: ANOM_ABEND auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=86871 comm="gnome-shell" exe="/usr/bin/gnome-shell" sig=11 res=1
Edited by Aurélien Hamy