[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmms-devel
Subject:    Re: [X11AMP-DEVEL] xmms on solaris 7
From:       John Riddoch <jr () scms ! rgu ! ac ! uk>
Date:       1999-08-05 8:11:48
[Download RAW message or body]

>John Riddoch wrote:
>
>> >Gdk-ERROR **: BadMatch (invalid parameter attributes)
>> >  serial 108 error_code 8 request_code 2 minor_code 0
>>
>
>
>
>> >glib-1.2.3
>> >gtk+-1.2.3
>> to 24-bit colour depth and restart X.  It's a known problem, and seems to 
be
>> related to glib/gtk.
>
>    I guess I should point out to the rest of the group here that this is an
>issue on the AIX port as well. The color depth of the video subsystem seems 
to
>cause gtk/xmms to corrupt something in the user process space of the X client
>libs. Stuff just fails that shouldn't (and normally doesn't). I've spent a
>couple hours messing with this and it seems to be some path that XMMS is 
walking
>that most gdk apps don't walk as the problem doesn't exist in any of the gdk
>test programs i've run. I assume this doesn't happen under Linux as someone
>would have made quite a stink about it. Of course I haven't been keeping the 
HW
>on my linux box at home very current ('94 era HW) so I don't even know if any 
of
>the new X servers support 32bit color which seems to be the trigger to the
>problem.

Some investigation has revealed that the GTK people have found this error on 
the mailing list; for those interested, subscribe to the mailing list (mail a 
message to gtk-list-request@redhat.com with subject 'subscribe') and get the 
following files (using the archive get command):
latest/2175
latest/2177
latest/2183
latest/2179
latest/2195

For those feeling lazy, the following patch was posted to the list and 
apparently works:

--- gtkpreview.c.orig	Tue Jan  5 08:09:32 1999
+++ gtkpreview.c	Tue Jan  5 08:09:39 1999
@@ -421,7 +421,7 @@
 
   widget->style = gtk_style_attach (widget->style, widget->window);
   gtk_style_set_background (widget->style, widget->window, GTK_STATE_NORMAL);
-  gdk_window_set_back_pixmap (widget->window, NULL, TRUE);
+  gdk_window_set_back_pixmap (widget->window, NULL, FALSE);
 }
 
 static gint
 
Message latest/2195 has a longer patch which I won't duplicate here; this 
patch dates from 5/1/99 so it may be in the distribution already.

FWIW, this problem also seems to occur under IRIX.  It seems to be caused by 
the program attempting to display 24-bit pixmaps on an 8-bit display; however, 
it works fine for me on a CG6 display which can only display 8 bit colour.  
Something seems to pick up that the frame buffer is capable of displaying 
24-bit colour and tries to use it. *shrug*

-- 
John Riddoch	Email: jr@scms.rgu.ac.uk	Telephone: (01224)262721
Room C6, School of Computer and Mathematical Science
Robert Gordon University, Aberdeen, AB25 1HG
I am Homer of Borg. Resistance is Fu... Ooooh! Donuts!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic