Tag Archives: gtk

Kinetis Design Studio crashes on Kubuntu 14.04

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.

kds3

Let’s try to run it and create a new project:

kds4

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:

kds5

(1) Bug 440660 – Several dialogs incompatible with GTK (Oxygen = default theme for Kubuntu)

Gtk-Message: Failed to load module “overlay-scrollbar”

On Ubuntu distro, if you see the error message in console as the following

Gtk-Message: Failed to load module "overlay-scrollbar"

whenever you run a Gnome-based applications, chances are you had ‘overlay-scrollbar’ package previously installed but now removed. However, the configuration file which came with that package remained on your system.

We can verify this with this command:

$ dpkg -l overlay-scrollbar
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                         Version             Architecture        Description
+++-============================-===================-===================-================
rc  overlay-scrollbar            0.2.16+r359+14.04.2 all                 Scrollbar overlay

rc : remove but config file still presents.

On my Ubuntu desktop, this config file resides at /etc/X11/Xsession.d/81overlay-scrollbar.

To correct this problem, we can purge ‘overlay-scrollbar’ package with this command:

# apt-get purge overlay-scrollbar

You would need to log out and log back in of your current X session (KDE, or Gnome) for the change to take effect.