Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 518352 - x11-libs/gtk+-3.12.x: apps complain about missing gtk-edit and other stock icons
Summary: x11-libs/gtk+-3.12.x: apps complain about missing gtk-edit and other stock icons
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
: 518310 518586 519546 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-27 23:39 UTC by Leho Kraav (:macmaN @lkraav)
Modified: 2015-01-02 11:53 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leho Kraav (:macmaN @lkraav) 2014-07-27 23:39:28 UTC
Example apps: gthumb, remmina

(gthumb:28055): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion 'G_IS_LOADABLE_ICON (icon)' failed

(gthumb:28055): Gtk-WARNING **: Error loading theme icon 'gtk-edit' for stock: Failed to load icon

(gthumb:28055): Gtk-CRITICAL **: render_fallback_image: assertion 'pixbuf != NULL' failed

(gthumb:28055): GLib-GObject-CRITICAL **: g_object_ref: assertion 'G_IS_OBJECT (object)' failed

(gthumb:28055): Gdk-CRITICAL **: gdk_cairo_surface_create_from_pixbuf: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gthumb:28055): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

https://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html says this stuff is deprecated. I also did not become particularly smarter about the subject after finding https://bugzilla.gnome.org/show_bug.cgi?id=668074

Either way, some of these apps are a bit broken on 3.12. What's the remedy?

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2014-08-02 10:07:55 UTC
What gtk+ version are you using?
Comment 2 Leho Kraav (:macmaN @lkraav) 2014-08-02 10:10:00 UTC
$ [-] eix gtk+ -c
[I] x11-libs/gtk+
     Available versions:  
     (1)    1.2.10-r12
     (2)    2.24.23{tbz2} ~2.24.23-r2 2.24.24{tbz2}
     (3)    3.4.4 3.10.8{tbz2} 3.12.2{tbz2}
       {X aqua cloudprint colord cups debug examples +introspection nls packagekit test vim-syntax wayland xinerama ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" LINGUAS="az ca cs da de el es et eu fi fr ga gl hr hu it ja ko lt nl nn no pl pt pt_BR ro ru sk sl sr sv tr uk vi"}
     Installed versions:  2.24.24(2){tbz2}(10:55:01 26.07.2014)(cups introspection vim-syntax -aqua -debug -examples -test -xinerama ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32") 3.12.2(3){tbz2}(11:05:23 26.07.2014)(X colord cups introspection vim-syntax -aqua -cloudprint -debug -examples -test -wayland -xinerama)
     Homepage:            http://www.gtk.org/
     Description:         Gimp ToolKit +
Comment 3 Pacho Ramos gentoo-dev 2014-08-02 10:36:01 UTC
It only reports 2.24.24(2){tbz2} as installed... but gthumb needs gtk3 :/
Comment 4 Leho Kraav (:macmaN @lkraav) 2014-08-02 11:07:13 UTC
(In reply to Pacho Ramos from comment #3)
> It only reports 2.24.24(2){tbz2} as installed... but gthumb needs gtk3 :/

I was 99% that eix output is gonna be confusing :) but did it anyway.

Look carefully on Installed mid-line. 3.12.2 is there too.
Comment 5 Pacho Ramos gentoo-dev 2014-08-02 12:30:14 UTC
Right, I think this is the same as https://bugzilla.gnome.org/show_bug.cgi?id=733731 

Are you running them from a gnome session? (looks to not be reproducible there, I guess some fallback icon is being used when running under gnome)
Comment 6 Leho Kraav (:macmaN @lkraav) 2014-08-02 12:40:53 UTC
I'm am using gnome-session but running i3 as wm https://faq.i3wm.org/question/4126/sessions-environment-variables/?answer=4331#post-id-4331
Comment 7 Yury Gavrilovich 2014-08-19 09:51:03 UTC
Have the same problem with gtk applications (missing icons and spam in the console like this http://dpaste.com/12BBG5P). After some gooling found this topic https://forums.gentoo.org/viewtopic-t-997190-highlight-gnomeicontheme.html and in my case emerging gnome-icon-theme helped: icons appeared, spam is gone.

I use Xmonad as DE.
emerge --info

Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.19-r1, 3.12.13-gentoo x86_64)
=================================================================
System uname: Linux-3.12.13-gentoo-x86_64-Intel-R-_Core-TM-_i5-3337U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     3766564 total,    574680 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 15 Aug 2014 09:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.7, 3.2.5-r6, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo ezod
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core-avx-i -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx-i -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.fi.muni.cz/pub/linux/gentoo/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/ezod"
SYNC="rsync://rsync2.ru.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 avx bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr chm cli color consolekit cracklib crypt curl cxx dbus djvu dri dts dvd dvdr emacs emboss encode exif fam ffmpeg firefox flac fontconfig fortran ftp gdbm gif git gpm gtk gzip iconv inotify ipv6 irc jabber jit jpeg jpeg2k lcms ldap libnotify mad mime mmx mng modules mp3 mp4 mpeg mplayer multilib mysql ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit postgre postgres ppds pulseaudio python qt3support qt4 readline sdl session spell sql sqlite sse sse2 sse4 ssl ssse3 startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb v4l vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip 

eix -I gtk+
[I] x11-libs/gtk+
     Available versions:  
     (1)    1.2.10-r12
     (2)    2.24.23 ~2.24.23-r2 2.24.24
     (3)    3.4.4 3.10.8 3.12.2
     Installed versions:  2.24.24(2)(02:38:48 PM 07/29/2014)(introspection -aqua -cups -debug -examples -test -vim-syntax -xinerama ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32") 3.12.2(3)(02:44:30 PM 07/29/2014)(X introspection -aqua -cloudprint -colord -cups -debug -examples -test -vim-syntax -wayland -xinerama)
     Homepage:            http://www.gtk.org/
     Description:         Gimp ToolKit +
Comment 8 Leho Kraav (:macmaN @lkraav) 2014-08-19 10:37:48 UTC
Re-emerging gnome-icon-theme does nothing to improve the situation here. Remmina still complains about missing gtk-edit. I think @mgorny already knows what's going on here, but he probably hasn't had the time to come up with anything.
Comment 9 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-12-27 01:45:38 UTC
*** Bug 519546 has been marked as a duplicate of this bug. ***
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-12-27 01:45:44 UTC
*** Bug 518310 has been marked as a duplicate of this bug. ***
Comment 11 Leho Kraav (:macmaN @lkraav) 2014-12-27 01:48:12 UTC
Is this solved with the 3.14 bump?
Comment 12 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-12-27 02:04:44 UTC
According to upstream, yes.
Comment 13 Gilles Dartiguelongue (RETIRED) gentoo-dev 2014-12-27 12:47:39 UTC
*** Bug 518586 has been marked as a duplicate of this bug. ***
Comment 14 Rafał Mużyło 2014-12-27 13:12:00 UTC
(In reply to Gilles Dartiguelongue from comment #12)
> According to upstream, yes.

Well, in a very particular way it is.
Namely, as I've said in bug 518586, in gtk+ 3.14 gnome-icon-theme became pretty much mandatory and its presence 'fixes' missing icon problem as they're no longer missing.

Let's say I don't quite agree with with such solution being the right way to fix this.
Comment 15 Leho Kraav (:macmaN @lkraav) 2014-12-27 16:02:24 UTC
(In reply to Rafał Mużyło from comment #14)
> (In reply to Gilles Dartiguelongue from comment #12)
> > According to upstream, yes.
> 
> Well, in a very particular way it is.
> Namely, as I've said in bug 518586, in gtk+ 3.14 gnome-icon-theme became
> pretty much mandatory and its presence 'fixes' missing icon problem as
> they're no longer missing.
> 
> Let's say I don't quite agree with with such solution being the right way to
> fix this.

There's no updated gnome-icon-theme ebuild in the tree yet. Should there be? I'm updating gtk+:3 and gnome-themes-standard to 3.14 to see if I can hold off upgrading the rest for now but still silence the log spam.
Comment 16 Pacho Ramos gentoo-dev 2014-12-28 20:23:49 UTC
Does this patch fix the issue on 3.12 for you?
https://bug733731.bugzilla-attachments.gnome.org/attachment.cgi?id=282151
Comment 17 Rafał Mużyło 2014-12-29 12:41:47 UTC
(In reply to Pacho Ramos from comment #16)
> Does this patch fix the issue on 3.12 for you?
> https://bug733731.bugzilla-attachments.gnome.org/attachment.cgi?id=282151

It should - it was the commit I've asked for on #gnome - I just missed it only works with '--enable-gtk2-dependency', so it was reverted shortly after.
Comment 18 Rafał Mużyło 2014-12-29 12:50:54 UTC
...looking at the dates in that upstream bug, looks like several people came to the same conclusion independently - I didn't see that bugzilla entry before my chat.
Comment 19 Pacho Ramos gentoo-dev 2014-12-30 14:33:35 UTC
Per https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-12&id=6f703f828b4d35e2a3a09904844c7ae66ef14214 looks like that option doesn't exist with gtk+-3.12.x :(
Comment 20 Pacho Ramos gentoo-dev 2014-12-30 14:36:33 UTC
(In reply to Pacho Ramos from comment #19)
> Per
> https://git.gnome.org/browse/gtk+/commit/?h=gtk-3-
> 12&id=6f703f828b4d35e2a3a09904844c7ae66ef14214 looks like that option
> doesn't exist with gtk+-3.12.x :(

Oops, you are true, it wouldn't affect us as we rely on gtk2 for that ;)

I cannot look at this just now but will try as soon as possible. Sorry for the delays :S
Comment 21 Pacho Ramos gentoo-dev 2015-01-02 11:53:47 UTC
+*gtk+-3.12.2-r2 (02 Jan 2015)
+
+  02 Jan 2015; Pacho Ramos <pacho@gentoo.org>
+  +files/gtk+-3.12.2-builtin-icon.patch, +gtk+-3.12.2-r2.ebuild,
+  gtk+-3.14.6.ebuild:
+  Include image data in the builtin icon cache (#518352 by Leho Kraav, Rafał
+  Mużyło and more), newer gdbus-codegen needed (#500216 by Vladimir Dolzhenko),
+  unset DISPLAY to make tests work in more environments (#527682 by Gangræna
+  Gorgeous, Mark Wright and Alexander Tsoy).
+

Please try with this revision (that we should be able to stabilize sooner than 3.14.x)