[SDL] X error BadDevice

Sami Näätänen sn.ml at keijukammari.fi
Tue Apr 28 05:50:50 PDT 2009


On Tuesday 28 April 2009 14:19:12 Donny Viszneki wrote:
> I feel a bit like I'm falling behind with SDL. It's been a while since
> I was able to build and run an SDL program using SVN HEAD!!!
>
> Here is an example:
>
> donny at teamspace:~/SDL/test$ ./testsprite2
> X Error of failed request:  BadDevice, invalid or uninitialized input
> device Major opcode of failed request:  147 (XInputExtension)
>   Minor opcode of failed request:  3 (X_OpenDevice)
>   Serial number of failed request:  16
>   Current serial number in output stream:  16
>
> Here is the stack trace at the moment the message is being printed:
>
> Breakpoint 3, 0xb7e5b7d0 in write () from /lib/tls/i686/cmov/libc.so.6
> (gdb) bt
> #0  0xb7e5b7d0 in write () from /lib/tls/i686/cmov/libc.so.6
> #1  0xb7dfe674 in _IO_file_write () from /lib/tls/i686/cmov/libc.so.6
> #2  0xb7dfe385 in _IO_file_seek () from /lib/tls/i686/cmov/libc.so.6
> #3  0xb7dfe5f1 in _IO_file_xsputn () from /lib/tls/i686/cmov/libc.so.6
> #4  0xb7dd9ceb in cuserid () from /lib/tls/i686/cmov/libc.so.6
> #5  0xb7dda88f in vfprintf () from /lib/tls/i686/cmov/libc.so.6
> #6  0xb7de32e2 in fprintf () from /lib/tls/i686/cmov/libc.so.6
> #7  0xb7cc6a51 in _XDefaultError () from /usr/lib/libX11.so.6
> #8  0xb7cc71ef in _XError () from /usr/lib/libX11.so.6
> #9  0xb7cc8dcb in _XReply () from /usr/lib/libX11.so.6
> #10 0xb7c6c6dc in XOpenDevice () from /usr/lib/libXi.so.6
> #11 0xb7f9e9a1 in X11_InitMouse (_this=0x804f090) at
> src/video/x11/SDL_x11mouse.c:77
> #12 0xb7fa24a3 in X11_VideoInit (_this=0x804f090) at
> src/video/x11/SDL_x11video.c:242
> #13 0xb7f8e75c in SDL_VideoInit (driver_name=0x0, flags=0) at
> src/video/SDL_video.c:264
> #14 0x0804b885 in CommonInit ()
> #15 0x08049beb in main ()
>
> Here is the top stack frame of SDL:
>
> (gdb) down
> #11 0xb7f9e9a1 in X11_InitMouse (_this=0x804f090) at
> src/video/x11/SDL_x11mouse.c:77
> 77                          data->device = XOpenDevice(display,
> DevList[i].id); (gdb) print DevList[i]
> $4 = {id = 3, type = 122, name = 0x805cd46 "wacom_stylus_pen_tip",
> num_classes = 3, use = 2,
>   inputclassinfo = 0x805cb48}
> (gdb) print *DevList[i].inputclassinfo
> $6 = {class = 0, length = 16}
>
> I've never done any X hacking! Someone please save me!

So it dies when it tries to init your stylus as a mouse.
Are you using HAL or xorg.conf?




More information about the SDL mailing list