FS#15890 - [gtk2] gdk-pixbuf can't load XPM images

Attached to Project: Arch Linux
Opened by Denis Martinez (denis) - Monday, 10 August 2009, 21:31 GMT
Last edited by Jan de Groot (JGC) - Tuesday, 11 August 2009, 00:35 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Gdk-Pixbuf is unable to load xpm images, but should, because the package contains /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so.
The error message is: Couldn't recognize the image file format for file '...'
One affected application is ardour.

Additional info:
* package version(s)
Arch64
gtk2 2.16.5-1
ardour 2.8-1

Steps to reproduce:

Test case, compile with: gcc `pkg-config gtk+-2.0 --cflags` gtk.c `pkg-config gtk+-2.0 --libs` -o gtk
   gtk.c (0.2 KiB)
This task depends upon

Closed by  Jan de Groot (JGC)
Tuesday, 11 August 2009, 00:35 GMT
Reason for closing:  Works for me
Comment by Jan de Groot (JGC) - Monday, 10 August 2009, 23:16 GMT
Works fine here. Is your gdk-pixbuf loader config correct and do you have shared-mime-info installed?

BTW: your testcase segfaults, you need to run g_type_init() first ;)
Comment by Denis Martinez (denis) - Monday, 10 August 2009, 23:44 GMT
I have shared-mime-info.
I have tried the following as well
1) reinstall
2) rebuild and install from abs
3) /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
/usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
None of these worked. I'm attaching the loader conf and updated gtk.c.
Sorry I hardly do any GTK programming at all :)

Are you using Arch64 as well ?
Comment by Denis Martinez (denis) - Monday, 10 August 2009, 23:51 GMT
And it's not a MIME problem, either.
The database is up to date and GTK can identify the file as image/x-xpixmap.
I will continue to debug that later.
Comment by Denis Martinez (denis) - Tuesday, 11 August 2009, 00:07 GMT
I figured it out.
The file actually identifies as application/x-shaman-package.
If I remove kdemod-shaman, it works.
Comment by Jan de Groot (JGC) - Tuesday, 11 August 2009, 00:35 GMT
Then it's a bug in kdemod-shaman, as it installs mimetypes which cause incorrect file detection.

Loading...