Gtk apps are crashing due to missing icons

Bug #669572 reported by czheng
26
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Unassigned
catfish (Ubuntu)
Invalid
Undecided
Unassigned
gedit (Ubuntu)
Invalid
Low
Unassigned
inkscape (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Since upgrading to 10.10 from 10.04, various Gtk apps (gedit, inkscape) are crashing in KDE, and the error messages are always something like this:

- Could not load theme icon gtk-home: Icon 'gtk-home' not present in theme
- glib.GError: Icon 'gtk-justify-left' not present in theme
- Icon 'gtk-properties' not present in theme

If I change my icon theme from Oxygen to gnome, they work fine of course. But somehow Oxygen is no longer falling back on gtk icons elsewhere when they don't exist in that theme. Is this a configuration issue?

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: kubuntu-desktop 1.205
ProcVersionSignature: Ubuntu 2.6.35-22.35-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Mon Nov 1 14:24:10 2010
InstallationMedia: Kubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427)
ProcEnviron:
 LANGUAGE=
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: kubuntu-meta

Revision history for this message
czheng (czheng-deactivatedaccount) wrote :
Revision history for this message
Victor Vargas (kamus) wrote :

I have reassigned this issue to oxygen-icon-theme package for now, maybe something happens with release included in Maverick

affects: ubuntu → oxygen-icons (Ubuntu)
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

These apps shouldn't be using non-standard icon names, and certainly shouldn't crash when they can't find them.

affects: oxygen-icons (Ubuntu) → ubuntu
Revision history for this message
tsg1zzn (tsg1zzn) wrote :

The icon names mentioned are not non-standard, they are stock icons which can be assumed to be present. See: http://library.gnome.org/devel/gtk/stable/gtk-Stock-Items.html

However, I can't confirm this problem when using the Oxygen icon theme from gnome.

Revision history for this message
James (james-ellis-gmail) wrote :
Download full text (3.3 KiB)

I had this problem with nm-applet which I use for network management as the KDE network manager plasma thing won't work with my Mobile Broadband (tethered N900).

After updating to 10.10 nm-applet wouldn't load and the KDE widget still didn't work with 3G.

The problem is missing gtk-* icons in the oxygen theme, which were present in 10.04 as symbolic links I think.

$ nm-applet
** (nm-applet:2336): WARNING **: Fallback icon ‘gtk-dialog-error’ missing: (0) Icon ‘gtk-dialog-error’ not present in theme
**
ERROR:applet.c:2932:nma_icons_reload: assertion failed: (applet->fallback_icon)
Aborted

I did this to fix nm-applet at least, it seems a pretty easy fix for the package.

sudo ln -s /usr/share/icons/oxygen/16x16/status/dialog-authentication.png /usr/share/icons/oxygen/16x16/status/gtk-dialog-authentication.png
sudo ln -s /usr/share/icons/oxygen/22x22/status/dialog-authentication.png /usr/share/icons/oxygen/22x22/status/gtk-dialog-authentication.png
sudo ln -s /usr/share/icons/oxygen/32x32/status/dialog-authentication.png /usr/share/icons/oxygen/32x32/status/gtk-dialog-authentication.png
sudo ln -s /usr/share/icons/oxygen/48x48/status/dialog-authentication.png /usr/share/icons/oxygen/48x48/status/gtk-dialog-authentication.png

sudo ln -s /usr/share/icons/oxygen/16x16/status/dialog-error.png /usr/share/icons/oxygen/16x16/status/gtk-dialog-error.png
sudo ln -s /usr/share/icons/oxygen/22x22/status/dialog-error.png /usr/share/icons/oxygen/22x22/status/gtk-dialog-error.png
sudo ln -s /usr/share/icons/oxygen/32x32/status/dialog-error.png /usr/share/icons/oxygen/32x32/status/gtk-dialog-error.png
sudo ln -s /usr/share/icons/oxygen/48x48/status/dialog-error.png /usr/share/icons/oxygen/48x48/status/gtk-dialog-error.png

sudo ln -s /usr/share/icons/oxygen/16x16/status/dialog-info.png /usr/share/icons/oxygen/16x16/status/gtk-dialog-info.png
sudo ln -s /usr/share/icons/oxygen/22x22/status/dialog-info.png /usr/share/icons/oxygen/22x22/status/gtk-dialog-info.png
sudo ln -s /usr/share/icons/oxygen/32x32/status/dialog-info.png /usr/share/icons/oxygen/32x32/status/gtk-dialog-info.png
sudo ln -s /usr/share/icons/oxygen/48x48/status/dialog-info.png /usr/share/icons/oxygen/48x48/status/gtk-dialog-info.png

sudo ln -s /usr/share/icons/oxygen/16x16/status/dialog-question.png /usr/share/icons/oxygen/16x16/status/gtk-dialog-question.png
sudo ln -s /usr/share/icons/oxygen/22x22/status/dialog-question.png /usr/share/icons/oxygen/22x22/status/gtk-dialog-question.png
sudo ln -s /usr/share/icons/oxygen/32x32/status/dialog-question.png /usr/share/icons/oxygen/32x32/status/gtk-dialog-question.png
sudo ln -s /usr/share/icons/oxygen/48x48/status/dialog-question.png /usr/share/icons/oxygen/48x48/status/gtk-dialog-question.png

sudo ln -s /usr/share/icons/oxygen/16x16/status/dialog-warning.png /usr/share/icons/oxygen/16x16/status/gtk-dialog-warning.png
sudo ln -s /usr/share/icons/oxygen/22x22/status/dialog-warning.png /usr/share/icons/oxygen/22x22/status/gtk-dialog-warning.png
sudo ln -s /usr/share/icons/oxygen/32x32/status/dialog-warning.png /usr/share/icons/oxygen/32x32/status/gtk-dialog-warning.png
sudo ln -s /usr/share/icons/oxygen/48x48/status/dialog-warning.png /usr/share...

Read more...

Revision history for this message
Robert (robrwo) wrote :

I'm having this problem with Catfish on Meverick:

Traceback (most recent call last):
  File "/usr/share/catfish/catfish.py", line 695, in find
    icon = [None, self.get_icon_pixbuf(status_icon)][message == messages[0][0]]
  File "/usr/share/catfish/catfish.py", line 709, in get_icon_pixbuf
    icon = self.icon_theme.load_icon(name, icon_size, 0)
glib.GError: Icon 'gtk-info' not present in theme

Revision history for this message
Thomas (teoverton) wrote :

This is a real issue and is now fairly widespread as a search for "gtk icon oxygen" will show. This seems to definitely be an oxygen issue. On one of my boxes which is running kubuntu, it effects gedit, inscape and cairo-dock so far. There are several bugs open about this addressing the symptoms, but there seems to ba an over-arching problem in that oxygen is not finding the gtk named icons (gtk-home) etc. and bringing down the programs. Is there anyone in the Oxygen team that can do something about this by packaging in the necessary links?

Shimi Chen (shimi-chen)
affects: ubuntu → kcm-gtk (Ubuntu)
affects: kcm-gtk (Ubuntu) → ubuntu
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Oxygen is not related. Even with the default GTK+ theme Raleigh, if a program tries to load an icon that is not in either the current theme or the fallback theme, it won't be able to load it. (Catfish is a good example)

Programs suffering from this bug need to use a spec-approved icon name common to all icon themes, or the icon will not appear in the program. For example, if Catfish tried to load the "dialog-information" icon rather than the "gtk-info" icon only found in the Humanity icon theme, Catfish would work with all spec-compliant icon themes.

affects: ubuntu → catfish (Ubuntu)
Changed in catfish (Ubuntu):
status: New → Triaged
Revision history for this message
Jonathan Thomas (echidnaman) wrote :
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Hi czheng,

Please could you let me know which version of the Inkscape package you are using?

Changed in inkscape (Ubuntu):
status: New → Incomplete
Changed in gedit (Ubuntu):
status: New → Confirmed
Changed in gedit (Ubuntu):
status: Confirmed → Invalid
importance: Undecided → Low
Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Closing this because we have not received the requested information. Please feel free to reopen the report if you still experience the problem with a recent version of Inkscape in Ubuntu.

Changed in inkscape (Ubuntu):
status: Incomplete → Invalid
Changed in inkscape:
status: New → Invalid
Revision history for this message
Sean Davis (bluesabre) wrote :

Marking as invalid for catfish. gtk_image_set_from_stock should handle setting the icon, or load a missing-image icon. Please try again with the latest build and reopen the report if you still have this problem.

Changed in catfish (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.