GNOME Bugzilla – Bug 772005
Using the text tool with the stylus can crash GIMP
Last modified: 2018-01-16 20:45:09 UTC
Another stylus bug, confirmed on Debian testing, gimp commit 98232c2, babl/gegl/gimp updated today. Here are the steps to reproduce the bug: Open GIMP and change the Preferences so that the default image doesn't show any of the following: menu bar, status bar, scrollbars, and rulers. Make sure only the core pointer and the wacom stylus are at "screen" and everything else is disabled. Now close and reopen GIMP. Then use the stylus to make a new image, and select the text tool (still using the stylus). If the device status window is open, the status will probably flick to core pointer and back to status. Then still using the stylus, touch the canvas with the text tool. Then try to change the font size (or color, or etc), still using the stylus. GIMP immediately segfaults.
Created attachment 336298 [details] gdb messages using text tool - steps of Elle. I confirm in my GIMP Git Master commit: ec64dbb Ubuntu Gnome 14.04.2 DE GNOME 3.10
Created attachment 336315 [details] [review] Enable extension events to get event image coords in inferior_ignore_mode Making sure this bug was not introduced by my recent stylus related patch I hacked the attached patch that seems to fix this issue.
The patch seems to have fixed the problem - yeah!
(In reply to Elle Stone from comment #3) > The patch seems to have fixed the problem - yeah! I quickly tested it on Windows, where it is not necessary the crash is in x11 specific code, and it seems it should be #ifdeffed out on Windows or the text tool is hard to use with a tablet on Windows in these conditions. It is quite easy to end up in a state where hovering the stylus over the tablet GIMP keeps changing device Stylus-> Core Pointer->Stylus->... Will test again in the next days comparing with the official gimp-2.8.18 OTOH on linux it happens also with gimp-2.8
(In reply to Massimo from comment #4) > It is quite easy to end up in a state where hovering the > stylus over the tablet GIMP keeps changing device Stylus-> > Core Pointer->Stylus->... > I've noticed this. Also sometimes the stylus will use the tool that was last selected by the mouse, sometimes actually applying the tool (bucket fill, painting a stroke) even though the stylus is the last used input device and is actually hovering over the tablet. But I don't see a clear pattern so it's hard to make a bug report.
Do we have any idea why this is influenced by the presence and absence of the UI elements mentions in the initial report?
Review of attachment 336315 [details] [review]: This is something I'd like to have in 2.8.20, doe to be released next week. Do the code changes change any expected behavior?
Review of attachment 336315 [details] [review]: >This is something I'd like to have in 2.8.20, doe to be released next week. Do the code changes change any expected behavior? I don't know and cannot test, but this is a bug in gdk-x11 it should at least warn that the API is used incorrectly and certainly not crash. Better be fixed there than worked around in GIMP
Also one of the obscure tablet-without-ruler crashes. *** This bug has been marked as a duplicate of bug 784480 ***