This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

guile-gtk images on remote X display


Does anyone have any insight as to why Scwm, when using guile-gtk and
displaying on a remote X server, would generate these X errors when
trying to display X images (which end up looking very wrong-- largely
garbage)?

X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  129 (MIT-SHM)
  Minor opcode of failed request:  1 (X_ShmAttach)
  Serial number of failed request:  738
  Current serial number in output stream:  739
X Error of failed request:  BadShmSeg (invalid shared segment parameter)
  Major opcode of failed request:  129 (MIT-SHM)
  Minor opcode of failed request:  3 (X_ShmPutImage)
    Segment id in failed request:  0xc00072
Serial number of failed request:  748
  Current serial number in output stream:  750
X Error of failed request:  BadShmSeg (invalid shared segment parameter)
  Major opcode of failed request:  129 (MIT-SHM)
  Minor opcode of failed request:  2 (X_ShmDetach)
    Segment id in failed request:  0xc00072

Seems like gdk is trying to do an optimization using an X11 shared
memory extension, but I don't see this problem with other Gtk
applications, even with other guile-gtk applications (e.g., Galway).

Here's the relevant part of the Scwm backtrace:

#0  ScwmErrorHandler (dpy=0x8169f40, event=0xbfffdda0) at scwm.c:1491
#1  0x4009a9e9 in _XError ()
#2  0x40099251 in _XReply ()
#3  0x40094cf1 in XSync ()
#4  0x40c274b0 in gdk_flush ()
#5  0x40c2c336 in gdk_image_destroy ()
#6  0x40c2dc96 in _gdk_pixmap_create_from_xpm ()
#7  0x40c2ddec in gdk_pixmap_colormap_create_from_xpm ()
#8  0x40c2de38 in gdk_pixmap_create_from_xpm ()
#9  0x40ac4b13 in gtk_pixmap_new_interp (file=0x825f1f0 "/usr/contrib/share/scwm/pixmaps/mini-term.xpm", 
    intended_parent=0x823e260) at gtk-compat.c:53
#10 0x40ad7427 in sgtk_gtk_pixmap_new_interp (p_xpm_file=1083878544, p_intended_parent=1083879936)
    at gtk-glue.c:8310

And here's what Scwm is linked against (pretty typical RH6 box):

% ldd scwm
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40019000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40022000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40037000)
        libXtst.so.6 => /usr/X11R6/lib/libXtst.so.6 (0x40043000)
        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40048000)
        libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x4005a000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40067000)
        libguile.so.5 => /usr/contrib/lib/libguile.so.5 (0x40104000)
        libdl.so.2 => /lib/libdl.so.2 (0x40171000)
        libm.so.6 => /lib/libm.so.6 (0x40175000)
        libcassowary.so.0 => /usr/contrib/lib/libcassowary.so.0 (0x40191000)
        libstdc++-libc6.1-1.so.2 => /usr/lib/libstdc++-libc6.1-1.so.2 (0x40234000)
        libGTL.so.3 => /usr/contrib/lib/libGTL.so.3 (0x40276000)
        libImlib.so.1 => /usr/lib/libImlib.so.1 (0x402ea000)
        libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40315000)
        libtiff.so.3 => /usr/lib/libtiff.so.3 (0x40335000)
        libungif.so.4 => /usr/lib/libungif.so.4 (0x40362000)
        libpng.so.2 => /usr/lib/libpng.so.2 (0x4036a000)
        libz.so.1 => /usr/lib/libz.so.1 (0x40387000)
        libc.so.6 => /lib/libc.so.6 (0x40396000)
        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40484000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

I'd like to get this worked out before Scwm-0.99.2, so any help is
appreciated immensely!  I'm willing to go looking, but there's gotta be
some accumulated wisdom that could reduce my search dramatically....

Thanks,
Greg

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]