After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 351993 - Gok won't start (X11 error)
Gok won't start (X11 error)
Status: RESOLVED DUPLICATE of bug 350356
Product: gok
Classification: Deprecated
Component: general
1.1.x
Other Linux
: Normal major
: ---
Assigned To: David Bolter
David Bolter
Depends on:
Blocks:
 
 
Reported: 2006-08-18 22:54 UTC by Daniel van Eeden
Modified: 2006-08-23 19:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Daniel van Eeden 2006-08-18 22:54:28 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
Comment 1 Daniel van Eeden 2006-08-18 22:56:21 UTC
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.

Thread NaN (LWP 32685)

  • #0 IA__g_logv
    at gmessages.c line 503
  • #1 IA__g_log
    at gmessages.c line 517
  • #2 gdk_x_error
    at gdkmain-x11.c line 635
  • #3 bonobo_x_error_handler
    at bonobo-ui-main.c line 58
  • #4 _XError
    from /usr/lib/libX11.so.6
  • #5 _XReply
    from /usr/lib/libX11.so.6
  • #6 XOpenDevice
    from /usr/lib/libXi.so.6
  • #7 gok_input_open
    at gok-input.c line 243
  • #8 gok_input_get_device_list
    at gok-input.c line 306
  • #9 gok_input_init
    at gok-input.c line 367
  • #10 on_window1_realize
    at callbacks.c line 97
  • #11 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #12 IA__g_closure_invoke
    at gclosure.c line 490
  • #13 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #14 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #15 IA__g_signal_emit
    at gsignal.c line 2241
  • #16 IA__gtk_widget_realize
    at gtkwidget.c line 2486
  • #17 gtk_window_show
    at gtkwindow.c line 4045
  • #18 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #19 g_type_class_meta_marshal
    at gclosure.c line 567
  • #20 IA__g_closure_invoke
    at gclosure.c line 490
  • #21 signal_emit_unlocked_R
    at gsignal.c line 2368
  • #22 IA__g_signal_emit_valist
    at gsignal.c line 2197
  • #23 IA__g_signal_emit
    at gsignal.c line 2241
  • #24 IA__gtk_widget_show
    at gtkwidget.c line 2212
  • #25 gok_main_open
    at main.c line 787
  • #26 main
    at main.c line 470

Comment 2 David Bolter 2006-08-21 13:22:20 UTC
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.
Comment 3 bill.haneman 2006-08-23 17:55:32 UTC
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.
Comment 4 bill.haneman 2006-08-23 19:58:36 UTC
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 ***