After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 782307 - gresource icons in easytag broken since 2.36.1
gresource icons in easytag broken since 2.36.1
Status: RESOLVED DUPLICATE of bug 781583
Product: gdk-pixbuf
Classification: Platform
Component: loaders
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gdk-pixbuf-maint
gdk-pixbuf-maint
Depends on:
Blocks:
 
 
Reported: 2017-05-07 23:04 UTC by James Cowgill
Modified: 2017-07-05 20:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description James Cowgill 2017-05-07 23:04:40 UTC
https://bugs.launchpad.net/ubuntu/+source/easytag/+bug/1689033

When gdk-pixbuf >= 2.36.1 is installed, all the icons stored in the gresources of easytag show up as the "image missing" icon. There is an image in the above Ubuntu bug. I checked the released versions of gdk-pixbuf. Using 2.36.0 works properly and all versions since then are broken.

If I remove all the "preprocess='to-pixdata'" attributes from the resources xml file and rebuild easytag, the images work again.
https://git.gnome.org/browse/easytag/tree/data/org.gnome.EasyTAG.gresource.xml

While looking at this I noticed that all the images in /org/gtk/libgtk/theme/Adwaita/assets in the GtkInspector look broken as well (all displaying the "image missing" icon).
Comment 1 Bastien Nocera 2017-06-21 00:35:40 UTC
Please test with the current stable version, this problem has been fixed in 2.36.2 (bug 776105).
Comment 2 David King 2017-06-21 09:14:03 UTC
It is not working on F26 with gdk-pixbuf2-2.36.6-1.fc26.x86_64 installed, nor in master (jhbuild environment built yesterday). All the easytag image resources created using to-pixdata show up as the "image missing" icon in the inspector, although the inspector's resources (under /org/gtk/libgtk/theme/Adwaita/assets) work fine.
Comment 3 Bastien Nocera 2017-06-21 09:33:30 UTC
The test for this is working fine:
https://git.gnome.org//browse/gdk-pixbuf/tree/tests/resources.gresource.xml
https://git.gnome.org//browse/gdk-pixbuf/tree/tests/pixbuf-resource.c

So we'd need a minimal reproducer. Running:
G_MESSAGES_DEBUG=all easytag
should show you GdkPixbuf-DEBUG messages related to loading pixdata, but it seems that easytag eats envvars.

You can also try adding debug to gdk-pixbuf's _gdk_pixbuf_new_from_resource_try_pixdata() especially the gdk_pixdata_deserialize() and gdk_pixbuf_from_pixdata() calls to see if they throw errors.
Comment 4 Bastien Nocera 2017-07-03 13:11:48 UTC
I'm guessing it's used via GTK+, not in gdk-pixbuf directly, so might be bug 781583. Same request about a test case though.
Comment 5 James Cowgill 2017-07-05 19:41:15 UTC
I tested a slightly different patch to yours for bug 781583 and the icons worked again, so it does look likely to be that bug in GTK+.
Comment 6 Bastien Nocera 2017-07-05 20:42:05 UTC

*** This bug has been marked as a duplicate of bug 781583 ***