Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178566 - Gtk-1.2 apps crash when displaying images if a pixmap skin engine is used.
Summary: Gtk-1.2 apps crash when displaying images if a pixmap skin engine is used.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-14 20:53 UTC by Walther
Modified: 2008-07-04 12:47 UTC (History)
1 user (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 Walther 2007-05-14 20:53:13 UTC
It appears that since the last update (some weeks ago) to several X11 packages, there is some kind of error when loading images in Gtk-1.2 apps when using a pixmap based theme.
I know there are few Gtk-1.2 apps left (I only know of two which I use: Dillo & Gentoo the file manager, the later I use a lot still), so this is what happens:
- Gentoo: As soon as it opens the main window, it closes right away printing:

Gdk-ERROR **: BadMatch (invalid parameter attributes)
  serial 3814 error_code 8 request_code 62 minor_code 0
(I always get those exact numbers when it crashes)

- Dillo: It loads. But as soon as I try to open a page which contains an image,  I get:
Gdk-ERROR **: BadMatch (invalid parameter attributes)
  serial 5111 error_code 8 request_code 149 minor_code 3
Gdk-ERROR **: BadMatch (invalid parameter attributes)
  serial 5150 error_code 8 request_code 149 minor_code 3
(the serial changes on every crash, but the other 3 numbers remain constant)

I know the problem is displaying images, because I can use Dillo to browse my home directory, and as soon as I click in an image file it will go bad. If I changed my Gtk-1 engine to something else the crash is gone. It only happens with the 2 pixmap engines I have at hand (the stock one called 'Pixmap' and one I made long ago).

Is there any hope this can be fixed? Or will the answer is "Gtk-1.2 is obsolete and no one in their right mind will support it"? :/

Reproducible: Always

Steps to Reproduce:
1. Open a Gtk-1.2 app (such as Dillo)
2. Try to display an image (file:~/some-file.jpg)
3. Program is aborted.

Actual Results:  
Program closes after printing these errors:
Gdk-ERROR **: BadMatch (invalid parameter attributes)
  serial 9801 error_code 8 request_code 149 minor_code 3
Gdk-ERROR **: BadMatch (invalid parameter attributes)
  serial 9802 error_code 8 request_code 149 minor_code 3


Expected Results:  
The images should be displayed properly.

According to my ebuild log, the packages updated right before my Gentoo crashes started showing up were:
1177167505:  >>> emerge (1 of 16) media-sound/alsa-headers-1.0.14_rc2 to /
1177167685:  >>> emerge (2 of 16) sys-apps/man-1.6e-r3 to /
1177167782:  >>> emerge (3 of 16) sys-kernel/gentoo-sources-2.6.20-r6 to /
1177168351:  >>> emerge (4 of 16) x11-libs/libXfixes-4.0.3 to /
1177168405:  >>> emerge (5 of 16) x11-proto/inputproto-1.4 to /
1177168417:  >>> emerge (6 of 16) x11-libs/libXi-1.1.0 to /
1177168462:  >>> emerge (7 of 16) dev-db/mysql-5.0.38 to /
1177169799:  >>> emerge (8 of 16) x11-proto/randrproto-1.2.0 to /
1177169812:  >>> emerge (9 of 16) x11-libs/libXrandr-1.2.1 to /
1177169845:  >>> emerge (10 of 16) media-libs/id3lib-3.8.3-r5 to /
1177170010:  >>> emerge (11 of 16) x11-proto/damageproto-1.1.0 to /
1177170022:  >>> emerge (12 of 16) x11-libs/libXdamage-1.1.1 to /
1177170050:  >>> emerge (13 of 16) x11-libs/libXcomposite-0.3.1 to /
1177170078:  >>> emerge (14 of 16) dev-libs/dbus-glib-0.73 to /
1177170143:  >>> emerge (15 of 16) media-fonts/dejavu-2.15 to /
1177170174:  >>> emerge (16 of 16) x11-plugins/noscript-1.1.4.6.070304 to /
Which explain why I think the problem was introduced with an X-api type of update.

emerge info:
 # emerge --info
Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7 i686)
=================================================================
System uname: 2.6.20-gentoo-r7 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 12 May 2007 09:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -momit-leaf-frame-pointer -fno-ident -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo http://ftp.du.se/pub/os/gentoo http://mirrors.acm.cs.rpi.edu/gentoo/ http://gentoo.ccccom.com"
LINGUAS="en en_US en_GB es"
MAKEOPTS="-j2 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/etc/portage/overlay"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="3dnow X aac acpi alsa avi berkdb bitmap-fonts boundschecking bzip2 cairo canna cjk cli cracklib crypt cscope cups dbus dedicated dga divx4linux dlloader dri dts dvd dvdr dvdread encode fam fbcon ffmpeg flac foomaticdb fortran freewnn gd gdbm gif gimp ginac gpm gtk gtk2 gtkhtml hal howl iconv imap imlib innodb ipv6 isdnlog jabber java jikes jpeg libg++ libwww mad matroska mbox midi mikmod mmx mng mp3 mpeg musepack ncurses nls nptl nptlonly nvidia ogg opengl pam pcre pdf pdflib perl png ppds pppd python quicktime readline reflection scanner sdl session speex spell spl sse ssl svg svga tcltk tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vidix vorbis win32codecs wma wmf x86 xcomposite xface xine xml xml2 xorg xv xvid zlib" ALSA_CARDS="emu10k1 intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB es" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pacho Ramos gentoo-dev 2008-07-03 18:32:51 UTC
It works ok for me (just emerged dillo for testing), do you still suffer this? 
Comment 2 Walther 2008-07-04 08:36:03 UTC
I gave up on Gtk1.2 some time ago. I no longer have dillo nor gentoo, the file-manager (changed to emelFM2), yet, to retest the bug, I reemerged gentoo, however, now I can't find the pixmap engine anywhere in portage!

Was the pixmap engine removed from the portage tree? If so, then isn't this setup no longer supported, as you can't reach this crash from installing the packages officially supported by portage?

Or how did you get a pixmap engine? gtk-1.2 does not includes that theme engine, and the gtk-engines package no longer exists for 1.2.
Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2008-07-04 12:47:55 UTC
We removed all but the most important gtk-engines. I think the only ones left are the ones that were officially bundled with gtk.

And in any case, we barely care about gtk1 anymore, except maybe for build fixes :)

Thanks for the follow up