Geary often crashes when switching between light and dark themes
Bug Summary
I have a couple of simple scripts that I run every now and then on my computer: lights-off
and lights-off
. These scripts adjust the brightness and contrast of my monitor using ddcutil
, and then switch to either the "Adwaita" or "Adwaita-dark" themes using gsettings
. I run these scripts to adjust my display according to the lighting conditions in the room.
#!/bin/bash
sudo ddcutil -d 1 setvcp 10 0
sudo ddcutil -d 1 setvcp 12 0
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark"
#!/bin/bash
sudo ddcutil -d 1 setvcp 10 80
sudo ddcutil -d 1 setvcp 12 50
gsettings set org.gnome.desktop.interface gtk-theme "Adwaita"
Almost every time when I run these scripts, Geary seems to crash. I doubt ddcutil
has anything to do with it, so I'm assuming that it's happening when the Adwaita theme is being switched between the light and dark versions.
Unfortunately I'm not able to easily reproduce this. It always seems to happen when I'm just looking to run the scripts for their intended purpose. But then when I notice Geary has crashed and attempt to reproduce it by following the same steps, it doesn't crash. Occasionally I can reproduce it, but it's very variable.
I've triggered this at least once when running Geary via the terminal, and unfortunately it doesn't seem to produce any terminal output when the crash occurs. So there is no error message, exception, or crash log as far as I can tell.
Please let me know if any further details are required.
My installation
- Geary version: 3.38.1
- Installation method: Flathub
- Desktop environment: GNOME 3.36.7
- Operating system and version: Fedora Silverblue 32
- Email provider: Gmail
Steps to reproduce
- Have Geary running in the background.
- Switch between the "Adwaita" and "Adwaita-dark" themes.
What happened?
Geary crashes.
What did you expect to happen?
Geary should continue to run.