[gupnp-tools] doesn't start without gnome-icon-theme installed, hidden/implicit dependency

Bug #390011 reported by Zorael
40
This bug affects 7 people
Affects Status Importance Assigned to Milestone
gupnp-tools (Debian)
Fix Released
Unknown
gupnp-tools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: gupnp-tools

On a Kubuntu 9.04 system where gnome-icon-theme isn't installed per default, gupnp-tools' apps fail with errors output to the terminal.

      $ gupnp-universal-cp

      ** (gupnp-universal-cp:4948): WARNING **: Failed to load icon gtk-missing-image: Icon 'image-missing' not present in theme

      ** (gupnp-universal-cp:4948): WARNING **: Failed to load icon gtk-network: Icon 'network-workgroup' not present in theme

      ** (gupnp-universal-cp:4948): WARNING **: Failed to load icon (null): Icon 'audio-x-generic' not present in theme
      **
      ERROR:icons.c:313:init_icons: assertion failed: (icons[i] != NULL)
      Aborted

Installing gnome-icon-theme makes the gupnp tools work, though as a side-effect other GTK programs (like Firefox, Midori) then happily use the now-installed gnome icons instead of inheriting KDE's. To explain, Midori outputs similar errors when gnome-icon-theme isn't installed, but it starts properly and inherits the KDE icons for the icons it complained were not present. For instance, the "new tab" icon (stock_new-tab).

Optimally the tools should start and use KDE's icons when gnome's aren't installed. Installing gnome's breaks icon consistency in other GTK apps, that *did* use KDE's icons before.

KDE icon theme in use was Oxygen from the Jaunty kde-icons-oxygen package in the kubuntu-ppa/experimentals ppa (https://launchpad.net/~kubuntu-ppa/+archive/experimental)

      $ apt-cache policy gupnp-tools
      gupnp-tools:
        Installed: 0.7-0ubuntu1
        Candidate: 0.7-0ubuntu1
        Version table:
       *** 0.7-0ubuntu1 0
              500 http://se.archive.ubuntu.com jaunty/universe Packages
              100 /var/lib/dpkg/status

      $ apt-cache policy kde-icons-oxygen
      kde-icons-oxygen:
        Installed: 4:4.2.85-0ubuntu2~jaunty1~ppa2
        Candidate: 4:4.2.85-0ubuntu2~jaunty1~ppa2
        Version table:
       *** 4:4.2.85-0ubuntu2~jaunty1~ppa2 0
              500 http://ppa.launchpad.net jaunty/main Packages
              100 /var/lib/dpkg/status

Revision history for this message
Mike Pontillo (mpontillo) wrote :

Note, I was working with someone on #ubuntu+1 last night who had the same issue, but had icons installed already. He had to install the "gtk2-engines" package to allow the 'gupnp-universal-cp' application to start.

Changed in gupnp-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
jose perez (pp342) wrote :

I'm having the same problem (Kubuntu lucid). gupnp-universal-cp was working fine in karmic.
As Mike Pontillo said, I had to install "gtk2-engines", but if "gnome-control-center" is not installed, the app throws the error. "gnome-control-center" (and its long list of dependencies) was installed when Mike and I were testing. I think there are missing dependencies, but I don't really know what the problem is. Other gnome app's are working fine.

These are the dependencies for "gnome-control-center":
alacarte capplets-data desktop-file-utils evolution-data-server gnome-about gnome-applets gnome-applets-data gnome-control-center gnome-desktop-data gnome-media gnome-media-common gnome-menus gnome-mime-data gnome-panel gnome-panel-data gnome-session-bin gnome-settings-daemon gnome-system-monitor gnome-user-guide gstreamer0.10-pulseaudio indicator-applet indicator-application indicator-messages metacity metacity-common mousetweaks python-gmenu python-gnome2 python-gnomeapplet python-gnomecanvas rarian-compat rtkit screen-resolution-extra scrollkeeper ubuntu-system-service zenity nautilus nautilus-data pulseaudio pulseaudio-esound-compat pulseaudio-module-x11 pulseaudio-utils evolution-data-server-common gnome-session indicator-sound
libatspi1.0-0 libbonobo2-0 libbonoboui2-0 libbonoboui2-common libcamel1.2-14 libdevkit-power-gobject1 libebackend1.2-0 libebook1.2-9 libecal1.2-7 libedata-book1.2-2 libedata-cal1.2-6 libedataserver1.2-11 libedataserverui1.2-8 libegroupwise1.2-13 libgdata-google1.2-1 libgdata1.2-1 libgnome-desktop-2-17 libgnome-media0 libgnome-menu2 libgnome-window-settings1 libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomekbd-common libgnomekbd4 libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgucharmap7 libgweather-common libgweather1 libido-0.1-0 libmetacity-private0 libnautilus-extension1 libpanel-applet2-0 libpulse-browse0 libunique-1.0-0

I purged "gnome-control-center" and then installed only the lib* ones, but this did not help.

Revision history for this message
jose perez (pp342) wrote :

problem solved for me:
after searching on google I've found this: http://bugs.gentoo.org/219278
and indeed, the solution found there works:

$ LANG=en_US.utf8 gupnp-universal-cp
** (gupnp-universal-cp:11652): WARNING **: Failed to load icon gtk-missing-image: Icon 'image-missing' not present in theme
** (gupnp-universal-cp:11652): WARNING **: Failed to load icon gtk-network: Icon 'network-workgroup' not present in theme
** (gupnp-universal-cp:11652): WARNING **: Failed to load icon (null): Icon 'audio-x-generic' not present in theme
**
ERROR:icons.c:317:init_icons: assertion failed: (icons[i] != NULL)

$ cat ~/.gtkrc-2.0-kde4
include "/usr/share/themes/QtCurve/gtk-2.0/gtkrc"
$ mv ~/.gtkrc-2.0-kde4 ~/.gtkrc-2.0-kde4_
$ echo -e "gtk-icon-theme-name=\"gnome\"" >>~/.gtkrc-2.0
$ LANG=en_US.utf8 gupnp-universal-cp # <- program runs!

so it's a problem with the themes...

Revision history for this message
Andreas Henriksson (andreas-fatal) wrote :

Fixed (in 0.7.1-1, see http://bugs.debian.org/518920 )

Changed in gupnp-tools (Debian):
status: Unknown → Fix Released
Revision history for this message
Adam Reeve (adreeve) wrote :

I've come across the same bug again in Ubuntu 12.04, and fixed the issue by installing the "gnome-icon-theme-full" package. Do I need to create a new Launchpad bug for this one? Or should I report it to Debian?

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi Adam,

Could you please check if the same thing happens in Debian? If so, please open a bug report in Debian too.

thanks,
Fabrice

Revision history for this message
Gunni (fgunni) wrote :

Bug is still present in (K)Ubuntu 15.04. Installing gnome-icon-theme-full still helps

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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