After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 398315 - Transparent background aborts with X11 protocol error when MIT-SHM doesn't support shared pixmaps
Transparent background aborts with X11 protocol error when MIT-SHM doesn't su...
Status: RESOLVED FIXED
Product: xchat-gnome
Classification: Other
Component: general
0.16
Other Linux
: Normal major
: ---
Assigned To: xchat-gnome maintainers
xchat-gnome maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-19 09:56 UTC by Michel Dänzer
Modified: 2007-01-20 02:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Check for shared pixmap support (2.27 KB, patch)
2007-01-19 10:17 UTC, Michel Dänzer
committed Details | Review

Description Michel Dänzer 2007-01-19 09:56:32 UTC
I tried enabling transparent background, and xchat-gnome aborted with

The program 'xchat-gnome' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadImplementation (server does not implement operation)'.
  (Details: serial 998 error_code 17 request_code 144 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

xdpyinfo -queryExt | grep 144 gave

    MIT-SHM  (opcode: 144, base event: 94, base error: 170)

so the error was from XShmCreatePixmap. Indeed, xtext calls that function without checking that the MIT-SHM extension actually supports shared pixmaps. I'm going to attach a patch to fix this.
Comment 1 Michel Dänzer 2007-01-19 10:17:00 UTC
Created attachment 80684 [details] [review]
Check for shared pixmap support

When the MIT-SHM extension doesn't support shared pixmaps, don't use XShmCreatePixmap but use XShmPutImage instead of XPutImage.
Comment 2 David Trowbridge 2007-01-20 02:28:56 UTC
Awesome patch!

I've applied it to svn.  Thanks a bunch.