[Xcb] [Bug 26545] xcb_io.c: extension error handler is not called

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 13 01:05:24 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=26545

--- Comment #3 from Rami Ylimaki <rami.ylimaki at vincit.fi> 2010-04-13 01:05:24 PDT ---
Created an attachment (id=34959)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=34959)
Minimal test case to test DRI2 extension error handling

Test case attached. You are right that not many extensions define error
handlers, however at least DRI2 does so.

The test case contains a minimal DRI2 implementation. I took dri2.h & dri2.c
from Mesa and removed everything that isn't necessary for the test case. This
was done to keep things simple so that it's possible to concentrate on DRI2
extension itself and not complicate things with GL stuff.

EXPECTED OUTCOME:
without-xcb# ./test-exterr 
dri2.c: filtered BadDrawable from DRI2DestroyDrawable

ACTUAL OUTCOME:
with-xcb# ./test-exterr 
X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
  Major opcode of failed request:  134 (DRI2)
  Minor opcode of failed request:  4 (DRI2DestroyDrawable)
  Resource id in failed request:  0x2400001
  Serial number of failed request:  15
  Current serial number in output stream:  17

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Xcb mailing list