On Kubuntu 14.04, Kinetis Design Studio (KDS) could be started, but when I tried to create a new project, it’d crash with the following message displayed in the terminal:
$ kinetis-design-studio java: /build/buildd/gtk2-engines-oxygen-1.4.5/src/animations/oxygencomboboxdata.cpp:87: void Oxygen::ComboBoxData::setButton(GtkWidget*): Assertion `!_button._widget' failed.
KDS is a Eclipse-based IDE. So I suspect the issue is related to Eclipse IDE itself. (I can’t confirm this as I’m not running the Eclipse IDE on this machine. I know I could have just downloaded and test it; but I don’t have time.)
The (error) message above gave us some hints where the problem was originated from. According to this Eclipse bug report1, yes this bug is caused by a bug in gtk2 theme oxygen.
To change the GTK themes on Kubuntu 14.04, open System Settings window by clicking on: K -> Computer -> System Settings. Then under “Common Appearance and Behavior”, click on “Application Appearance”. Look for GTK on left window pane and click on it.
On the right side on GTK – System Settings window, you should be able to select a different theme for GTK2 from the drop down list. In my case, I selected “Raleigh”. Then click on “Apply” button.
Let’s try to run it and create a new project:
Voila, it worked! The only downside is that now it makes all applications that depends on GTK2 look ugly. 🙁
Is there anything we can do about it? Well, as it turned out we can actually ask Eclipse based applications to use GTK3 theme instead of GTK2.
$ export SWT_GTK3=1 $ kinetis-design-studio
Here’s KDS running using GTK3 theme: