X11 XTEST Error when starting Xine

Benjamin Close Benjamin.Close at clearchain.com
Sat Jan 2 06:45:25 PST 2010


On 31/12/09 05:01, Jim Duda wrote:
> On 12/29/2009 06:49 AM, Jim Duda wrote:
>    
>> Hello,
>>
>> This is a repeat of an older post.  My reported problem has returned.
>> I never really understood how I accidentally resolve it.
>>
>> I'm running an up-to-date installation of fedora 11.
>>
>> xine-lib.i586                       1.1.16.3-2.fc11
>> xine-lib-extras.i586                1.1.16.3-2.fc11
>> xine-lib-extras-freeworld.i586      1.1.16.3-1.fc11
>> xine-lib-pulseaudio.i586            1.1.16.3-2.fc11
>> xine-plugin.i586                    1.0.2-2.fc11
>> xine-ui.i586                        0.99.5-16.fc11
>>
>> I'm getting this error when attempting to play a dvd://
>>
>> Can anyone explain how to debug what xine is looking for?
>>
>> xine dvd:// --verbose
>>
>> X Error of failed request:  BadValue (integer parameter out of range for
>> operation)
>>       Major opcode of failed request:  144 (XTEST)
>>       Minor opcode of failed request:  2 (X_XTestFakeInput)
>>       Value in failed request:  0x0
>>       Serial number of failed request:  2229
>>       Current serial number in output stream:  2231
>>
>>      
> I have some more information to add.  I found the snipet
> of code below while researching this issue.  If I compile
> this code on two different fedora 11 installations, I get
> different results.
>
> On the machine I'm having trouble with I get these results:
>
> lroom>  ./keycode
> keycode: 0
> keycode: 0
> keycode: 0
>
> On working machines I get this results:
>
> jim>  ./keycode
> keycode: 111
> keycode: 50
> keycode: 37
>
> So clearly I have an issue with one of the X libraries.
> Can anyone tell me library could be this issue?
> I have reinstalled libXtst, based on a guess.
>
> I've compared /usr/share/X11 between the good and bad
> machines.  I don't see anything obviously different or
> missing.
>
> Any ideas?
>
> Thanks,
>
> Jim
>
> Here is the code:
>
> #include<X11/Xlib.h>
> #include<X11/keysym.h>
> #include<X11/extensions/XTest.h>
> #include<stdio.h>
>
> #define PRESS_UP 0
> #define PRESS_DOWN 1
> #define PRESS_LEFT 2
> #define PRESS_RIGHT 3
> #define PRESS_ENTER 4
> #define PRESS_ESC 5
> #define PRESS_HOME 6
> #define PRESS_SHIFT_L 7
> #define PRESS_CTL_L 8
>
> Display *display;
> unsigned int keycode;
>
> int press(int key) {
>
>    display = XOpenDisplay(NULL);
>
>    if (key == PRESS_UP)
>      keycode = XKeysymToKeycode(display, XK_Up);
>    else if(key == PRESS_DOWN)
>      keycode = XKeysymToKeycode(display, XK_Down);
>    else if(key == PRESS_LEFT)
>      keycode = XKeysymToKeycode(display, XK_Left);
>    else if(key == PRESS_RIGHT)
>      keycode = XKeysymToKeycode(display, XK_Right);
>    else if(key == PRESS_ENTER)
>      keycode = XKeysymToKeycode(display, XK_Return);
>    else if(key == PRESS_ESC)
>      keycode = XKeysymToKeycode(display, XK_Escape);
>    else if(key == PRESS_HOME)
>      keycode = XKeysymToKeycode(display, XK_Home);
>    else if(key == PRESS_SHIFT_L)
>      keycode = XKeysymToKeycode(display, XK_Shift_L);
>    else if(key == PRESS_CTL_L)
>      keycode = XKeysymToKeycode(display, XK_Control_L);
>
>    printf ("keycode: %d\n", keycode);
>
>    XTestFakeKeyEvent(display, keycode, True, 0);
>    XTestFakeKeyEvent(display, keycode, False, 0);
>    XFlush(display);
>
>    return 0;
>
> }
>    

I'd suggest you try reinstalling libXi and libX11
The XTest code has had changes to it caused by the update to the XInput 
layer (libXi) which also may affect libX11.

Cheers,
     Benjamin



More information about the xorg mailing list