Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46888 - Gtk apps cannot view images after update to gnome 2.6
Summary: Gtk apps cannot view images after update to gnome 2.6
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-05 12:21 UTC by Robert Andersson
Modified: 2009-09-25 01:19 UTC (History)
0 users

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 Robert Andersson 2004-04-05 12:21:22 UTC
I did an emerge world yesterday (KEYWORDS=~x86)
This updated gnome to 2.6. It seems like no gtk apps may view images
anymore. Sometimes they show some default and sometimes nothing att all
and sometimes the correct picture. e.g. no icons is shown in the program
menu in gnome or in the startup splash screen or whatever it is called.
All file icons in nautilus (including directories) show the same default icon.
In eog and gthumb the icons in the menus show up but I may not view any pictures.





Reproducible: Always
Steps to Reproduce:
standing in /usr/share/pixmaps and running eog xmms.xpm.
This is just an example. The behavior is similar with other apps. Including
nautilus. It is also similar when loading an png. It even says xpm not
supported.

Actual Results:  
output:
bash-2.05b$ eog xmms.xpm 

(eog:31383): GdkPixbuf-WARNING **: Error loading XPM image loader: Image type
'xpm' is not supported

(eog:31383): GdkPixbuf-WARNING **: Error loading XPM image loader: Image type
'xpm' is not supported

(eog:31383): GdkPixbuf-CRITICAL **: file gdk-pixbuf-io.c: line 761
(gdk_pixbuf_new_from_file): assertion `filename != NULL' failed


Expected Results:  
Show the image...

At least there is nothing wrong with the files. I may view them with
display. I very unsure about what information is needed.
Since it complains about xpm not supported even when trying to load
png the problem seems to be with the XPM image loader.
Comment 1 Robert Andersson 2004-04-05 14:13:51 UTC
I have managed to fix the problem. The problem is/was that
gdk-pixbuf-query-loaders segfaults when I run as root, but it
works as an ordinary user. That ment that the line
gdk-pixbuf-query-loaders >      /etc/gtk-2.0/gdk-pixbuf.loaders
in x11-libs/gtk+/gtk+-2.4.0.ebuild failed. When I run it
as an ordinary user and moved the file to /etc/gtk-2.0/gdk-pixbuf.loaders
the pixbuf problem disappeared. I have no idea yet why it
segfaults when I run as root but I will look into it.

Comment 2 foser (RETIRED) gentoo-dev 2004-04-06 10:45:28 UTC
your 'emerge info' ?
Comment 3 Robert Andersson 2004-04-06 10:50:57 UTC
Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.4.19-gentoo-r10)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13p1
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/misc/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.uninett.no/pub/linux/Gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/misc/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apache2 apm arts avi berkdb bonobo crypt cups encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml guile imlib java jpeg ldap libg++ libwww mad mikmod mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 4 foser (RETIRED) gentoo-dev 2004-04-06 10:54:27 UTC
can you get a backtrace from the pixbuf loader crash ? (with debugging info)
Comment 5 Robert Andersson 2004-04-06 15:02:32 UTC
This is the backtrace with debugging information (just gtk+).
This was compiled directly from the clean gtk+-2.4.0.tar.bz2 with
./configure --prefix=/usr/ --enable-debug=yes
The problem seems the same though.

Program received signal SIGSEGV, Segmentation fault.
0x404787bc in ?? ()
(gdb) bt
#0  0x404787bc in ?? ()
#1  0x40475285 in ?? ()
#2  0x40474ce4 in ?? ()
#3  0x4000b92e in _dl_catch_error () from /lib/ld-linux.so.2
#4  0x4000baca in _dl_init () from /lib/ld-linux.so.2
#5  0x4023af1e in getutmpx () from /lib/libc.so.6
#6  0x4000b776 in _dl_catch_error () from /lib/ld-linux.so.2
#7  0x4023b399 in _dl_open () from /lib/libc.so.6
#8  0x40046fab in _fini () from /lib/libdl.so.2
#9  0x4000b776 in _dl_catch_error () from /lib/ld-linux.so.2
#10 0x40047456 in dlerror () from /lib/libdl.so.2
#11 0x40046ff4 in dlopen () from /lib/libdl.so.2
#12 0x4002f080 in _init () from /usr//lib/libgmodule-2.0.so.0
#13 0x4002f8b0 in g_module_open () from /usr//lib/libgmodule-2.0.so.0
#14 0x08048c24 in query_module (
    dir=0xffffffff <Address 0xffffffff out of bounds>,
    file=0x804a8b3 "svg_loader.so") at queryloaders.c:162
#15 0x08048e45 in main (argc=134517072, argv=0xbffff444) at queryloaders.c:272
#16 0x4014bcb9 in __libc_start_main () from /lib/libc.so.6
(gdb) frame 14
#14 0x08048c24 in query_module (
    dir=0xffffffff <Address 0xffffffff out of bounds>,
    file=0x804a8b3 "svg_loader.so") at queryloaders.c:162
162             module = g_module_open (path, 0);
(gdb) p path
$6 = 0x804c8c0 "/usr//lib/gtk-2.0/2.4.0/loaders/svg_loader.so"
(gdb)

Nothing wrong so far it seems.
How can I get debugging symbols in glib using emerge? I thought
I could just set CFLAGS to "-g" but it seems you have to give
--enable-debug=yes in configure.
Comment 6 Robert Andersson 2004-04-06 23:26:04 UTC
gdk-pixbuf-query-loaders only fails on svg_loader.so which is the only
library that is not from gtk+.

$ for f in $(ls *.so); do echo -n "$f: ";qpkg -f $f;done
libpixbufloader-ani.so: x11-libs/gtk+ *
libpixbufloader-bmp.so: x11-libs/gtk+ *
libpixbufloader-gif.so: x11-libs/gtk+ *
libpixbufloader-ico.so: x11-libs/gtk+ *
libpixbufloader-jpeg.so: x11-libs/gtk+ *
libpixbufloader-pcx.so: x11-libs/gtk+ *
libpixbufloader-png.so: x11-libs/gtk+ *
libpixbufloader-pnm.so: x11-libs/gtk+ *
libpixbufloader-ras.so: x11-libs/gtk+ *
libpixbufloader-tga.so: x11-libs/gtk+ *
libpixbufloader-wbmp.so: x11-libs/gtk+ *
libpixbufloader-xbm.so: x11-libs/gtk+ *
libpixbufloader-xpm.so: x11-libs/gtk+ *
svg_loader.so: gnome-base/librsvg *
Comment 7 Robert Andersson 2004-04-07 02:48:49 UTC
librsvg version is 2.6.4
Comment 8 Mike Gardiner (RETIRED) gentoo-dev 2004-12-08 20:13:31 UTC
Still a problem? Try the newest librsvg etc. Reopen if the problem remains.
Comment 9 John Masinter 2009-09-25 01:19:29 UTC
Thanks guys! This bug ticket gave me the hint needed to solve a similar issue in bug #286148 "gnome-base/gdm-2.20.9-r1: fails with gdk-pixbuf-csource: Couldn't recognize the image file format for file png"

In summary, when building gdm, a utility gdk-pixbuf-csource would fail with:
"""
failed to load "./preferences-desktop-locale.png": Couldn't recognize the image file format for file './preferences-desktop-locale.png'
"""

"emerge librsvg" fixed the issue. More detail in my bug above.