Blog of Raivo Laanemets

Stories about web development, freelancing and personal computers.

KDE oxygen-gtk theme crashes Firefox 42+


I had Firefox 42 crashing recently on file upload attempts. After debugging it through gdb I found that the crash is caused by the oxygen-gtk theme in KDE. It will also crash Firefox 43 and I have found two workarounds for it: use other theme in KDE for GTK apps or keep using Firefox 40.

There have been lots of crashes reported for different GTK-based software with the oxygen-gtk theme:

There is a chance that this is fixed in later versions of the theme (I'm currently on KDE 4.10) but I have not tested it yet and probably have no time for it before upgrading my Slackware installation.

Update 2016-05-07

As per comments, I have tried to rebuild oxygen-gtk. I obtained source from here and rebuilt it with ENABLE_INNER_SHADOWS_HACK 0 and invoked cmake with -DCMAKE_INSTALL_PREFIX=/usr.

Firefox 46 just crashes:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffded1a283 in Oxygen::render_frame(_GtkThemingEngine*,
    _cairo*, double, double, double, double) ()
from /usr/lib64/gtk-3.0/3.0.0/theming-engines/liboxygen-gtk.so

The crash happens on other (older) systems too:

Firefox 40 still works with the updated libraries tho.

I also tried to use oxygen-gtk latest source, from here, but was unable to build it due to unmet dependencies:

-- checking for module 'gtk+-3.0>=3.10.0'
--   package 'gtk+-3.0>=3.10.0' not found

Comments

Euan Thoms at 2016-04-28
There's one more option. Build your own oxygen-gtk2 with the following option disabled (set to 0): ENABLEINNERSHADOWS_HACK 0 This can be found in the file CMakeLists.txt.

RLa at 2016-05-07
@Euan Thoms, I tried it but Firefox 46 seems to have other issues with old GTK stuff. Added update to the article.

Email is not displayed anywhere.
URLs (max 3) starting with http:// or https:// can be used. Use @Name to mention someone.