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 586008 - GIMP crashes when right-click canceling a drawing action initiated outside layer boundaries
GIMP crashes when right-click canceling a drawing action initiated outside la...
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.6.6
Other All
: Normal normal
: 2.6
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2009-06-16 16:11 UTC by Jutt
Modified: 2009-06-16 20:28 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jutt 2009-06-16 16:11:41 UTC
This bug is reproducable with all tools using some form of brush.
When using a drawing tool, its effect can be canceled mid-action with the mouse by right clicking, then releasing left mouse button. However if you start with a drawing action outside the active layer boundaries and cancel this way after moving within the layer boundaries, GIMP will crash instantly.

To reproduce:
- take the pencil tool (or similar brush based tool) and left click outside the active layer to start drawing.
- drag the cursor within the layer boundaries such that the pencil line visibly enters the layer.
- cancel the action by right clicking and releasing the left mouse button.
GIMP then crashes with a standard "gimp2.6.exe doesn't work anymore" windows message.


Version:
GNU Image Manipulation Program version 2.6.6
GEGL version 0.0.23 is used (compiled with version 0.0.23)
GLib version 2.20.0 is used (compiled with version 2.20.0)
GTK+ version 2.16.0 is used (compiled with version 2.16.0)
Pango version 1.24.0 is used (compiled with version 1.24.0)
Fontconfig version 2.6.0 is used (compiled with version 2.6.0)
Comment 1 Michael Natterer 2009-06-16 20:28:14 UTC
Fixed in master and gimp-2-6:

commit 06a3b3a85a01403db4262e80e9cf63005be40dbd
Author: Michael Natterer <mitch@gimp.org>
Date:   Tue Jun 16 22:09:48 2009 +0200

    Bug 586008 - GIMP crashes when right-click canceling a drawing action initiated outside layer boundaries
    
    (gimp_paint_core_cancel): don't pass out-of-drawable coordinates to
    gimp_paint_core_copy_valid_tiles().

 app/paint/gimppaintcore.c |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)