GNOME Bugzilla – Bug 351993
Gok won't start (X11 error)
Last modified: 2006-08-23 19:58:36 UTC
Gok was build with GARNOME 2.15.91 on Ubuntu 6.06 for x86. compukid@thinkpad:~$ gok /dev/js0: No such file or directory Gdk-ERROR **: The program 'gok' received an X Window System error. This probably reflects a bug in the program. The error was 'BadDevice, invalid or uninitialized input device'. (Details: serial 162 error_code 168 request_code 145 minor_code 3) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) aborting... Trace/breakpoint trap compukid@thinkpad:~$ gok --sync /dev/js0: No such file or directory Gdk-ERROR **: The program 'gok' received an X Window System error. This probably reflects a bug in the program. The error was 'BadDevice, invalid or uninitialized input device'. (Details: serial 253 error_code 168 request_code 145 minor_code 3) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) aborting... Trace/breakpoint trap compukid@thinkpad:~$ gok --version Gnome gok 1.1.1
compukid@thinkpad:~$ gdb --args gok --sync GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". (gdb) r Starting program: /home/compukid/garnome/bin/gok --sync [Thread debugging using libthread_db enabled] [New Thread -1226164544 (LWP 32685)] /dev/js0: No such file or directory Gdk-ERROR **: The program 'gok' received an X Window System error. This probably reflects a bug in the program. The error was 'BadDevice, invalid or uninitialized input device'. (Details: serial 253 error_code 168 request_code 145 minor_code 3) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) aborting... Program received signal SIGTRAP, Trace/breakpoint trap.
+ Trace 70691
Thread NaN (LWP 32685)
Daniel, thanks for the report. Could you please try: 1. rm -r $HOME/.gconf/apps/gok 2. gconftool-2 --shutdown 3. gok 4. report back here.
too bad about the stuff that got "optimized out", since that would tell us more about the xinput device. The message "/dev/js0: no such file or directory" may be a hint. Basically GOK is trying to check your XInput devices. I believe it gets the xinput device list from X itself, and one of them seems to be bogus. This could be memory corruption or gconf key corruption somewhere causing the bad xinput device handle, or it could be a problem with the xserver or even the kernel.
I checked my own ubuntu machine and found that the xorg.conf file included wacom drivers though I have no wacom devices. This seems to be part of the problem. THis bug is a duplicate of #350356 *** This bug has been marked as a duplicate of 350356 ***