X11 XTEST Error when starting Xine
Jim Duda
jim at duda.tzo.com
Wed Dec 30 10:31:10 PST 2009
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;
}
>
> main: probing<aadxr3> video output plugin
> main: probing<dxr3> video output plugin
> video_out_dxr3: Failed to open control device /dev/em8300-0 (No such file or
> directory)
> main: probing<xv> video output plugin
> video_out_xv: using Xv port 355 from adaptor NV17 Video Texture for hardware
> colour space conversion and scaling.
> video_out_xv: this adaptor supports the yuy2 format.
> video_out_xv: this adaptor supports the yv12 format.
> main: probing<pulseaudio> audio output plugin
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> video_out_xv: VO_PROP_ASPECT_RATIO(0)
> osd: can't find out current locale character set
> osd: can't find out current locale character set
> 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 used Xscope to dump the debug information (see below).
>
> Can anyone help me decode the output?
>
> Is this a problem with Xine or Xorg?
>
> Thanks,
>
> Jim
>
> X.Org X Server 1.6.3.901 (1.6.4 RC 1)
> Release Date: 2009-8-25
> X Protocol Version 11, Revision 0
> Build Operating System: Linux 2.6.18-164.el5 i686
> Current Operating System: Linux lroom 2.6.30.5-tftp #2 PREEMPT Sun Sep 6 20:27:56 EDT 2009 i686
> Kernel command line: rw root=/dev/ram0 initrd=initramfs.gz BOOT_IMAGE=bzImage-2.6.30.5-tftp auto
> Build Date: 09 September 2009 11:25:24AM
> Build ID: xorg-x11-server 1.6.4-0.1.fc11
> Before reporting problems, check http://wiki.x.org
> to make sure that you have the latest version.
>
>
> ............REQUEST: XTEST-Request
> sequence number: 000008b6
> minor opcode: 02
> request length: 0009
> data: (8)
> 00600003 ---
> 00000000 ---
> 00600118 ---
> 00020036 ---
> 0060011b ---
> 0002013c ---
> 0060011c ---
> 0001032b ---
> ............REQUEST: GetInputFocus
> sequence number: 000008b7
> request length: 0001
> 2.70: 448 bytes<-- X11 Server 2
> ..............EVENT: DestroyNotify
> sequence number: 08b4
> event: WIN 00600118
> window: WIN 00600118
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom:<WM_HINTS>
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom:<WM_CLASS>
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom: ATM 000000f2
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom: ATM 00000126
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom: ATM 000000f4
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom: ATM 00000125
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom:<WM_NORMAL_HINTS>
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom:<WM_CLIENT_MACHINE>
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom:<WM_ICON_NAME>
> time: TIM 000343d1
> state: Deleted
> ..............EVENT: PropertyNotify
> sequence number: 08b4
> window: WIN 00600118
> atom:<WM_NAME>
> time: TIM 000343d1
> state: Deleted
> ..............ERROR: Value
> sequence number: 08b5
> bad value: 0
> minor opcode: 0002
> major opcode: 91
> ..............ERROR: Value
> sequence number: 08b6
> bad value: 0
> minor opcode: 0002
> major opcode: 91
> ..............REPLY: GetInputFocus
> revert-to: None
> sequence number: 08b7
> reply length: 00000000
> focus: PointerRoot
> 2.74: Client 2 --> EOF
More information about the xorg
mailing list