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 91041 - Crash when wacom's right button is pressed.
Crash when wacom's right button is pressed.
Status: RESOLVED DUPLICATE of bug 106210
Product: gtk+
Classification: Platform
Component: Backend: X11
2.0.x
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
Daniel Egger
: 99901 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-08-17 17:43 UTC by roger tallada
Modified: 2011-02-04 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description roger tallada 2002-08-17 17:43:48 UTC
Pressing the button that acts as the right button on the wacom intuos2
over any image causes a segmentation fault. 

-Steps to reproduce:
1. Open gimp.
2. Create a new image or open an existing one.
3. Position the cursor over the image.
4. Press wacom's "right" button.

-Results:
   Gimp draws the menu (sometimes only an empty rectangle), crashes and
blocks any access to the desktop (gnome 2.0.1). I can move the pointer over
the screen but nothing happens when I press it or press any keys. I have to
switch to text mode to kill gimp and gain access to the desktop again.

-Expected results:
   The image menu should have appeared and gimp should have continued working.

-Additional builds and platforms:
   The same happened with 1.3.6 and a cvs version.

-Additional information:
Error messages (captured with "2>" redirection):


(gimp-1.3:22030): Gtk-WARNING **: Unable to locate theme engine in
module_path: "thinice",
gimp-1.3: tool-safe-mode init called
gimp-1.3: tool_plug_in_path:
/home/roger/.gimp-1.3/tool-plug-ins:/usr/local/lib/gimp/1.3/tool-plug-ins
gimp-1.3: reading datafiles directory '/usr/local/lib/gimp/1.3/tool-plug-ins'
gimp-1.3: loading tool
/usr/local/lib/gimp/1.3/tool-plug-ins/libgimpbrushselecttool.so


(tool-safe-mode:22032): LibGimpTool-WARNING **:
/usr/local/lib/gimp/1.3/tool-plug-ins/libgimpbrushselecttool.so: undefined
symbol: selection_options_new
gimp-1.3: tool-safe-mode init done
gimp-1.3: run called extension_plugin_helper
gimp-1.3: Could not open module
/usr/local/lib/gimp/1.3/plugin-modules/libiwarp.so!
gimp-1.3: time for the evil loop
gimp-1.3: fatal error: Segmentation fault

(script-fu:22034): LibGimpBase-WARNING **: script-fu: wire_read(): error

(plugin-helper:22033): LibGimpBase-WARNING **: plugin-helper: wire_read():
error
Comment 1 roger tallada 2002-08-18 10:29:14 UTC
The gimp didn't block the desktop this time, I managed to get an stack
trace:


(gimp-1.3:23763): Gtk-WARNING **: No s'ha trobat el motor de tema al
module_path: "thinice",
using MMX: yes

(gimp-1.3:23763): Gimp-Widgets-WARNING **: gimpitemfactory.c:933: bad
translation for menupath: <Toolbox>/Xtns/Script-Fu

(gimp-1.3:23763): Gimp-Widgets-WARNING **: gimpitemfactory.c:933: bad
translation for menupath: <Toolbox>/Xtns/Script-Fu/Console...

(gimp-1.3:23763): Gimp-Widgets-WARNING **: gimpitemfactory.c:933: bad
translation for menupath: <Toolbox>/Xtns/Script-Fu/Server...
gimp-1.3: tool-safe-mode init called
gimp-1.3: tool_plug_in_path:
/home/roger/.gimp-1.3/tool-plug-ins:/usr/local/lib/gimp/1.3/tool-plug-ins
gimp-1.3: reading datafiles directory
'/usr/local/lib/gimp/1.3/tool-plug-ins'
gimp-1.3: loading tool
/usr/local/lib/gimp/1.3/tool-plug-ins/libgimpbrushselecttool.so


(tool-safe-mode:23916): LibGimpTool-WARNING **:
/usr/local/lib/gimp/1.3/tool-plug-ins/libgimpbrushselecttool.so:
undefined symbol: selection_options_new
gimp-1.3: tool-safe-mode init done
gimp-1.3: run called extension_plugin_helper
gimp-1.3: Could not open module
/usr/local/lib/gimp/1.3/plugin-modules/libiwarp.so!
gimp-1.3: time for the evil loop
gimp-1.3: fatal error: Violación de segmento
gimp-1.3 (pid:23763): [E]xit, [H]alt, show [S]tack trace or [P]roceed: S
  • #0 g_on_error_stack_trace
  • #1 g_on_error_query
  • #2 gimp_eek
  • #3 gimp_fatal_error
  • #4 killpg
    from /lib/libc.so.6
  • #5 calloc
    from /lib/libc.so.6
  • #6 g_malloc0
    at gmem.c line 154
  • #7 g_type_create_instance
    at gtype.c line 1334
  • #8 g_object_constructor
  • #9 g_object_newv
  • #10 g_object_new_valist
  • #11 g_object_new
  • #12 gdk_pixmap_init
    at gdkpixmap.c line 176
  • #13 g_type_create_instance
    at gtype.c line 1349
  • #14 g_object_constructor
  • #15 g_object_newv
  • #16 g_object_new_valist
  • #17 g_object_new
  • #18 gdk_pixmap_new
  • #19 gdk_window_begin_paint_region
  • #20 gtk_main_do_event
    at gtkmain.c line 1295
  • #21 gdk_window_process_updates_internal
  • #22 gdk_window_process_all_updates
    at gdkwindow.c line 2138
  • #23 gdk_window_update_idle
    at gdkwindow.c line 2152
  • #24 g_idle_dispatch
  • #25 g_main_dispatch
    at gmain.c line 1617
  • #26 g_main_context_dispatch
    at gmain.c line 2161
  • #27 g_main_context_iterate
  • #28 g_main_loop_run
    at gmain.c line 2462
  • #29 gtk_main
    at gtkmain.c line 936
  • #30 gimp_main_loop
    at gimp.c line 583
  • #31 app_init
  • #32 main
    at main.c line 462
  • #33 __libc_start_main
    from /lib/libc.so.6

Comment 2 Sven Neumann 2002-08-19 10:47:52 UTC
This is most probably not at all Wacom-related. You simply haven't
deleted your old GIMP-1.3 installation when you upgraded to 1.3.7.
There's an old tool plug-in in your plug-in path which is not
compatible with 1.3.7. Delete it and everything should be fine.
Comment 3 roger tallada 2002-08-19 16:16:36 UTC
  I tried uninstalling the gimp as you suggested and manually deleting
/usr/local/lib/gimp/1.3 and /usr/local/share/gimp/1.3. After
installing it again I have the same problem (I tried rebuilding it too).

  I've noticed that if I choose "Disable" mode on the "Input Devices"
tab, gimp doesn't crash when I press the right button (my ps/2 mouse
always worked fine too). If I choose "Window" mode gimp crashes as
soon as I press the tablet on the canvas, and if "Screen" is selected
I've got what I explained already. 

PS: I have 1.2 installed, can I have conflicts with that version too?
Comment 4 Sven Neumann 2002-08-19 16:56:20 UTC
Are you getting this problem with all tools? I was guessing that the
brush-select tool is crashing on you but it shouldn't be there any
longer if you deleted your old gimp-1.3 installation.

Please note that we haven't yet put any effort into XInput support in
GIMP-1.3. The problem you atre reporting might actually be a GIMP
problem or it could be a GTK+ bug. We'll have to investigate further.
Perhaps I should pull my Wacom out of the dust and try it with GIMP-1.3.
Comment 5 roger tallada 2002-08-19 17:45:08 UTC
Yes, the poblem appears with any tool. I haven't had this kind of
problem with any gtk2 application, but none of them make use of
xinput.  For instance the popup menus of gimp's dock windows work fine
with the tablet.

Let me know if I can do more tests.
Comment 6 Sytse Wielinga 2002-09-22 10:58:09 UTC
I can reproduce this with the debian package of the GIMP 1.3.8, with
my wacom Graphire 2 USB. If I use my normal mouse instead of the
Graphire mouse, everything works fine. I'm currently checking whether
the CVS version has the same problem and if so, I'll try to fix it.
I'll send a patch if I have one.
Comment 7 Sytse Wielinga 2002-09-23 08:42:33 UTC
errr, it seems to be a bug in gtk/glib. I only see GIMP's main loop in
the backtrace. Besides, I seem to have a little different trace:

  • #0 gdk_region_rectangle
    at gdkregion-generic.c line 149
  • #1 _gdk_window_process_expose
    at gdkgeometry-x11.c line 1010
  • #2 gdk_event_translate
    at gdkevents-x11.c line 1114
  • #3 _gdk_events_queue
    at gdkevents-x11.c line 1704
  • #4 gdk_event_dispatch
    at gdkevents-x11.c line 1760
  • #5 g_main_dispatch
    at gmain.c line 1617
  • #6 g_main_context_dispatch
    at gmain.c line 2161
  • #7 g_main_context_iterate
    at gmain.c line 2242
  • #8 g_main_loop_run
    at gmain.c line 2462
  • #9 gtk_main
    at gtkmain.c line 936
  • #10 gui_main
    at gui.c line 393
  • #11 gimp_main_loop
    at gimp.c line 585
  • #12 app_init
    at app_procs.c line 216
  • #13 main
    at main.c line 462

So this seems to be two bugs.
Comment 8 Sytse Wielinga 2002-09-23 11:10:41 UTC
Well, this is the situation I get here, one that cannot possibly happen:

(gdb) frame 0
  • #0 gdk_region_rectangle
    at gdkregion-generic.c line 149
135     gdk_region_rectangle (GdkRectangle *rectangle)
136     {
137       GdkRegion *temp;
(gdb) l 142,150
142       temp = g_new (GdkRegion, 1);
143       temp->rects = g_new (GdkRegionBox, 1);
144
145       temp->numRects = 1;
146       temp->extents.x1 = temp->rects[0].x1 = rectangle->x;
147       temp->extents.y1 = temp->rects[0].y1 = rectangle->y;
148       temp->extents.x2 = temp->rects[0].x2 = rectangle->x +
rectangle->width;
149       temp->extents.y2 = temp->rects[0].y2 = rectangle->y +
rectangle->height;
150       temp->size = 1;
(gdb) p *temp
3 = {size = 0, numRects = 0, rects = 0x76, extents = {x1 = 0, y1 = 0,
x2 = 118, y2 = 32}}
(gdb) p *rectangle
4 = {x = 0, y = 0, width = 118, height = 2}

Any ideas?
Comment 9 Garry R. Osgood 2002-11-02 18:15:08 UTC
Is this possibly related to that antique Bug #10498, in turn related
to GTK Bug #32617? The underlying cause to that was asymmetry in how
GDK maps X Input Device events to GDK equivalents; it is not exactly
the same as the mapping of X Core events to the same GDK equivalents.
In the 1.2 GDK, it seemed necessary for GDK to override the
applications request mask in order to enforce a PRESS/RELEASE
symmetry; hence, an application got the other event of the pair even
if it didn't expect it. Could this *still* be possibly true in GDK 2.0
(I note that #32617 is still open...)
Comment 10 compwiz 2003-01-04 05:16:54 UTC
For my reference: This is Debian bug
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=172415
Comment 11 Ari Pollak 2003-01-04 05:19:20 UTC
Has anyone tried a Wacom tablet with GIMP/GTK2.2 yet? Apparently bug
#32617 was fixed recently, so if that is directly related to this bug
then this can be resolved.
Comment 12 Sven Neumann 2003-01-04 12:03:00 UTC
I can reproduce the problem with a serial Wacom Intuos tablet using
the stylus in screen mode (other configuration were not yet tested).
I'm running GIMP from CVS (basically 1.3.11) and GTK+-2.0 from debian
testing (gtk+-2.0.6).

The crash occurs in gdk_window_end_paint() and it looks like a
ref-counting problem with respect to GDK drawables. So its most
definitely not a GIMP bug. Most probably this has been already been
fixed in a newer version of GTK+. I will try to upgrade this machine
to GTK+-2.2 later today.
Comment 13 Sven Neumann 2003-01-04 12:26:52 UTC
Bug #98308 might be a duplicate of this one.
Comment 14 Sven Neumann 2003-01-04 12:27:56 UTC
*** Bug 99901 has been marked as a duplicate of this bug. ***
Comment 15 Owen Taylor 2003-01-04 20:58:25 UTC
Can you debug the problem Sven? There is nothing here
that is useful for reproduction or debugging, unless I 
wanted to haul out my Wacom, and compile GIMP-1.3 and
hope that the problem happened for me.
Comment 16 Sven Neumann 2003-01-05 01:36:14 UTC
It happens all the time so you shouldn't have a problem to reproduce
it ;-)

I have reassigned the bug report since I was hoping you had an idea
(or better, already fixed the problem). Since that is not the case,
I'll try if I can hunt it down...
Comment 17 Owen Taylor 2003-01-21 23:55:47 UTC
It really looks like memory corruption to me; I'd have to
say it's as likely to be the GIMP as GTK+,but I'll leave
it open on GTK+ for now.
Comment 18 Ari Pollak 2003-03-02 16:19:46 UTC
Just as a heads up in case nobody has tried it yet, this does still
happen with GTK 2.2.1.
Comment 19 Owen Taylor 2003-03-02 16:53:55 UTC
Same as bug 106210, which has been fixed (thanks to Larry Ewing)
in CVS since 2.2.1.

*** This bug has been marked as a duplicate of 106210 ***