XIQueryDevicePointer generates an XIO error

Mark Dokter mark.dokter at icg.tugraz.at
Sat May 16 08:11:07 PDT 2009


On Thursday 14 May 2009 13:48:30 Peter Hutterer wrote:
> On Wed, May 13, 2009 at 07:12:42PM +0200, Mark Dokter wrote:
> > I am playing around with the XI2 stuff and always get an error when using
> > XIQueryDevicePointer(). The function seems to do what its supposed to and
> > gives me the pointer coordinates, but as soon as I call it again or
> > another function like XCloseDisplay() I get an error like this:
> >
> > XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server
> > ":0.0 after 13 requests (12 known processed) with 0 events remaining.
>
> this is most likely the  wrong length field in the reply. I just
> encountered this yesterday with the XIPassiveGrabDevice request and it
> looks like XIQueryDevicePointer suffers from the same.
> it's a one-line fix in Xi/querydp.c, change to "rep.length = 2;"
>

I tried that. Now I get an assertion:

xiquery: xcb_io.c:445: _XReply: Assertion `!dpy->xcb->reply_data' failed.
Aborted

By the way: XIQueryDevicePointer should return a bool value iirc. I got -112 
(!?) This behaviour is independent from the rep.length change.

> This function has changed a bit here already, so please bear with me for a
> few more days then I'll push a set of fixes.
>

I'll be looking forward to that ;-)

> thanks a lot for testing.
>


have a  nice weekend,

Mark


More information about the xorg-devel mailing list