crashes when USB input device is disconnected

Bug #474954 reported by bcrowell on 2009-11-05
60
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Inkscape
High
Unassigned

Bug Description

I sometimes use Inkscape with a Wacom Bamboo USB drawing tablet. If I unplug the tablet from the USB port while Inkscape is running, it crashes about 30 seconds later.

bcrowell (launchpadcrowell07) wrote :

The error message was:

The program 'inkscape' 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 507108 error_code 146 request_code 140 minor_code 30)
  (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.)

This is with Inkscape 0.46 (Apr 8 2009), on Ubuntu Jaunty, x64.

su_v (suv-lp) on 2009-11-05
tags: added: tablet
tags: added: crash
su_v (suv-lp) on 2009-11-09
Changed in inkscape:
importance: Undecided → High
jazzynico (jazzynico) wrote :

Confirmed on Ubuntu 9.10, Inkscape 0.47+dev rev. 9147, with almost the same error:

---
The program 'inkscape' received an X Window System error.
This probably reflects a bug in the program.
The error was 'XI_BadDevice (invalid Device parameter)'.
  (Details: serial 109694 error_code 151 request_code 147 minor_code 13)
  (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.)

Program exited with code 01.
(gdb) bt
No stack.
----

You don't need to wait 30 seconds. Just select another application and go back to Inkscape.

Changed in inkscape:
status: New → Confirmed
jazzynico (jazzynico) wrote :

Not reproduced on Vista, Inkcape 0.47.
Linux (or X) only?

tags: added: linux
su_v (suv-lp) wrote :

related (or duplicate?):

Bug #518234 “crash when moving objects”: Inkscape crashes when the mouse is plugged into a defective USB port.
<https://bugs.launchpad.net/inkscape/+bug/518234>

TimMadden (timmadden) wrote :

I have this bug. On Ubuntu 10.10 using Inkscape from the repo. version 0.48.0-1ubuntu1

Happens when i click hold and drag with the mouse. my workaround has been to just not do that. instead, i change the x y coordinates on the tool bar, but it is a pain.

let me know if you need info from me.

su_v (suv-lp) wrote :

Related (or new duplicate):

Bug #818543 “inkscape crash when USB mouse is disconnected”
<https://bugs.launchpad.net/inkscape/+bug/818543>

jazzynico (jazzynico) wrote :

Backtrace with Inkscape revision 10523, Ubuntu 10.10 (with breakpoint on _XError):

--
Breakpoint 1, 0x0109b536 in _XError () from /usr/lib/libX11.so.6
(gdb) bt
#0 0x0109b536 in _XError () from /usr/lib/libX11.so.6
#1 0x0109815a in ?? () from /usr/lib/libX11.so.6
#2 0x0109889c in _XReply () from /usr/lib/libX11.so.6
#3 0x0221702b in XGrabDevice () from /usr/lib/libXi.so.6
#4 0x0199d749 in _gdk_input_grab_pointer (window=0xa5e5230, native_window=0x8aaba28, owner_events=0, event_mask=2110212,
    confine_to=0x0, time=64203805) at /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkinput-xfree.c:353
#5 0x0198b68b in _gdk_windowing_pointer_grab (window=0xa5e5230, native=0x8aaba28, owner_events=0, event_mask=2110212, confine_to=
    0x0, cursor=0x0, time=64203805) at /build/buildd/gtk+2.0-2.22.0/gdk/x11/gdkmain-x11.c:201
#6 0x0196acc9 in IA__gdk_pointer_grab (window=0xa5e5230, owner_events=0, event_mask=772, confine_to=0x0, cursor=0x0,
    time=64203805) at /build/buildd/gtk+2.0-2.22.0/gdk/gdkwindow.c:10329
#7 0x081dc6fa in sp_canvas_item_grab (item=0x9d6c920, event_mask=3844, cursor=0x0, etime=64203805) at display/sp-canvas.cpp:556
#8 0x085b2f3a in sp_select_context_root_handler (event_context=0x9d6a238, event=0xa612f78) at select-context.cpp:509
#9 0x0808fb97 in sp_event_context_virtual_root_handler (event_context=0x9d6a238, event=0xa612f78) at event-context.cpp:965
#10 0x0854a5c7 in sp_desktop_root_handler (event=0xa612f78, desktop=0x904adb0) at desktop-events.cpp:71
#11 0x0825d8a8 in sp_marshal_BOOLEAN__POINTER (closure=0x9dd6328, return_value=0xbfffeb6c, n_param_values=2, param_values=
    0xa5c6ef0, invocation_hint=0xbfffea00, marshal_data=0x854a590) at helper/sp-marshal.cpp:122
#12 0x01cba412 in g_closure_invoke (closure=0x9dd6328, return_value=0xbfffeb6c, n_param_values=2, param_values=0xa5c6ef0,
    invocation_hint=0xbfffea00) at /build/buildd/glib2.0-2.26.1/gobject/gclosure.c:766
#13 0x01cd0b85 in signal_emit_unlocked_R (node=<value optimised out>, detail=<value optimised out>, instance=0x9d6c920,
    emission_return=0xbfffeb6c, instance_and_params=0xa5c6ef0) at /build/buildd/glib2.0-2.26.1/gobject/gsignal.c:3252
#14 0x01cd1e2b in g_signal_emit_valist (instance=0x9d6c920, signal_id=197, detail=0, var_args=0xbfffebd0 "\004\354\377\277蒩\b)")
    at /build/buildd/glib2.0-2.26.1/gobject/gsignal.c:2993
#15 0x01cd2452 in g_signal_emit (instance=0x9d6c920, signal_id=197, detail=0)

Andrzej (ndrwrdck) wrote :

JazzyNico, thank you for the backtrace. Bug #818543 indeed looks like a duplicate of this one.

jazzynico (jazzynico) on 2011-07-31
summary: - crashes when USB drawing tablet is disconnected
+ crashes when USB input device is disconnected
su_v (suv-lp) wrote :

Related: undocking of laptops while Inkscape is running
Bug #887287 in Inkscape: “XI_BadDevice - Crash after undocking Lenovo laptop”
<https://bugs.launchpad.net/inkscape/+bug/887287>

whlm (mail-gw) wrote :

This bug is still relevant. On Linux Mint 17.1 with Inkscape 0.91 r (Feb 12 2015) I can reproduce this bug with a Wacom Intuos 3.

Hachmann (marenhachmann) wrote :

Just happened to me, too, with a Huion 610 Pro using digimend kernel wacom drivers on LM 17.3 with Inkscape 0.91.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers