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 314529 - Certain versions of GTK+ shipped by Gaim can crash GIMP (e.g. Crash on stroke fill)
Certain versions of GTK+ shipped by Gaim can crash GIMP (e.g. Crash on stroke...
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Tools
2.2.x
Other Windows
: Low critical
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 310186 318145 320670 320999 321580 323018 323769 324324 324372 324755 325852 330077 333775 334182 334351 342324 344465 345529 348609 350750 381107 390397 408266 410574 437577 458462 478605 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-08-26 02:31 UTC by Jack
Modified: 2008-02-02 19:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jack 2005-08-26 02:31:23 UTC
Steps to reproduce:
1. Highlight text
2. Go to Edit
3. Click Stroke Selection, then OK


Stack trace:


Other information:
Everytime I try to fill a stroke on text, GIMP crashes. I am using Windows, so I
cannot provide a stack trace.
Comment 1 Sven Neumann 2005-08-26 09:22:37 UTC
Of course you can provice a stack trace. But you will need to compile a version
of GIMP with debugging info and you will need a debugger. But since this problem
seems to only show up on Windows, it is unlikely that we will be able to fix it
unless someone obtains a stack trace on Windows.
Comment 2 Sven Neumann 2005-08-26 10:01:17 UTC
This might help to locate the problem. Valgrind reports the use of an
uninitialized variable:

==3592== Use of uninitialised value of size 4
==3592==    at 0x81C11E0: gimp_drawable_stroke_boundary (gimpdrawable-stroke.c:129)
==3592==    by 0x81A6876: gimp_channel_stroke (gimpchannel.c:741)
==3592==    by 0x820014F: gimp_selection_stroke (gimpselection.c:307)
==3592==    by 0x81EE6AE: gimp_item_stroke (gimpitem.c:1002)
==3592==    by 0x809625B: stroke_dialog_response (stroke-dialog.c:296)
Comment 3 Sven Neumann 2005-08-27 00:18:59 UTC
*** Bug 310186 has been marked as a duplicate of this bug. ***
Comment 4 Jack 2005-08-27 01:22:43 UTC
If you could link to a decent compiler for Windows for GIMP, and link 
to/explain how to debug it etc, I'd be happy to provide a stack trace. I'm not 
too experienced with debugging on Windows, only *nix.
Comment 5 weskaggs 2005-08-28 15:52:17 UTC
Jack, there is nothing more you need to do at this point.  The information in
comment #2 should be enough to make the problem solvable.  I am going to confirm
this bug report accordingly.
Comment 6 Sven Neumann 2005-09-06 15:16:58 UTC
I don't think we have enough information to solve the problem. It is for example
still unclear whether the crash happens when stroking using a paint tool or only
when using libart. Also, since it isn't reproducable on Linux and not even the
use of the uninitialized variable reported by valgrind is reliably reproducible,
I don't see how we could debug this problem without the help of someone running
GIMP on Windows.
Comment 7 Bryan Forbes 2005-09-06 15:20:41 UTC
I have found that this bug also occurs when you do any of the following:

- Create some text, click the "Create path from text" button, click Select->From
Path, and then click Edit->Stroke Selection...
- Create some text, click "Create path from text" button, click Edit->Stroke Path...
- Create a selection with the rectangle selection tool and click Edit->Stroke
Selection...
- Create a selection with the rectangle selection tool, click Select->To Path,
click Edit->Stroke Path...

I hope this helps.
Comment 8 Bryan Forbes 2005-09-06 15:25:02 UTC
I forgot to mention that it doesn't matter if you use the "Stroke line" or the
"Stroke with a paint tool" option in the "Stroke Selection/Path" dialog.

I also just discovered that when you click "Cancel" in the "Stroke
Selection/Path" dialog the gimp crashes.
Comment 9 Bryan Forbes 2005-09-06 16:45:45 UTC
I just uninstalled Gtk+ 2.6.9-rev A and installed the Gtk+ from gimp-win's web
page (2.6.9) and all is working fine.  It must be something with 2.6.9 rev A.
Comment 10 Sven Neumann 2005-09-06 16:46:31 UTC
That is also what some of the comments in bug #310186 indicate.
Comment 11 Roel Schroeven 2005-09-11 16:17:59 UTC
I had the same problem. Upgrading GTK+ from 2.6.8 to 2.6.9 (along with upgrading
GIMP from 2.2.7 to 2.2.8, but that doesn't seem relevant) solved it.
Comment 12 Sven Neumann 2005-09-11 17:12:11 UTC

*** This bug has been marked as a duplicate of 310186 ***
Comment 13 Elijah Newren 2005-09-20 18:54:37 UTC
Circular duplicates aren't cool; please pick a different resolution.
Comment 14 Philippe Verdy 2005-10-04 07:57:18 UTC
Drawing the most simple strokes on Windows simply crashes (image not saved, 
the program exits immediately) immediately as soon as one click on the "Draw 
path" button.

It's IMPOSSIBLE to draw segments in Windows.

Also there should exist a way to edit paths so that points will not be 
absolute angular but rounded, and direction control points can be also added 
(I mean quadratic or Bezier curves).

Please also add exception handlers around GIMP extensions, so that they won't 
crash immediately and will give the opportunity to save the current work, 
possibly in a backup file, that can be restored nearly automatically from 
the "recent images" list, when The GIMP is restarted and an image is selected 
that has a backup version in the same folder.
Comment 15 Michael Natterer 2005-10-04 13:34:41 UTC
Re comment #14: please don't mix entirely unrelated issues in one bug report.
Comment 16 Michael Schumacher 2005-10-07 12:49:44 UTC
Comment #9 and comment #11 seem to indicate that the resolution is either
NOTGNOME (because it happens with only one binary build) or FIXED (2.6.8 ->
2.6.8 fixed it).
Comment 17 weskaggs 2005-10-07 16:15:41 UTC
Note that the bug report #310186 (which is marked as a duplicate of this one)
explains how to resolve this problem.
Comment 18 weskaggs 2005-10-07 16:16:46 UTC
*** Bug 318145 has been marked as a duplicate of this bug. ***
Comment 19 Michael Schumacher 2005-10-11 20:13:47 UTC
So this is yet again an incompatiblity with the GTK+ shipped by GAIM? Don't they
use the binaries from gtk.org for their installers?
Comment 20 thumper 2005-11-18 08:52:36 UTC
I believe I finally understand the cause of this crash.  

Here's the situation.
Gaim, a popular open source chat client currently requires Gtk+ for it's
operation on Windows.  Gaim is at version 1.5.0 right now, and they have all
resources set on Gaim 2.0, so nothing is being done with version 1.5.0 .  Gaim
for Windows version 1.5.0 includes Gtk+ 2.6.9a .  Gtk+ 2.6.9a has the crash on
'stroke', while Gtk+ 2.6.9 does not.

Many of us download Gaim 1.5.0 first, and then properly only install Gimp 2.2.9
because we already have the Gtk+ 2.6.9 .  However, we actually have Gtk+ 2.6.9a
which has a crashing bug via applying stroke to letters or the pen tool.

Solving this problem:
1.  Politely request Gaim 1.5.0 to be packaged with Gtk+ 2.6.9 to avoid later
unneeded bug reports due to outdated Gtk+ 2.6.9a bugs.
2.  Go to Start>Settings>Control Panel>Add/Remove Programs
3.  Select Gtk+ 2.6.9 remove only
4.  Once finished, download 2.6.9 from http://gimp-win.sourceforge.net/stable.html
5.  Extract to Desktop via WinZip
6.  Run installation program
7.  Select yes, use the same folder that still exists
8.  You should have a proper working Gimp 2.2.9

I do hope this helps everyone.  It seemed like a wierd problem, with first
people saying they were having problems with their Duron, but not their Pentium.
 Then someone else would say they were having problems with their Pentium III. 
And the number of duplicate reports abounds.  However, I believe this is the
problem, and this is the correct fix.  Good luck with Gimp, everyone.
Comment 21 thumper 2005-11-21 01:05:16 UTC
I quote a new message in entirety:
>Comment By: Daniel Atallah (datallah)
Gimp's package isn't "fixed", it just uses an 
older version of  the gtk-wimp configuration that has a setting 
disabled which happens to prevent the crash.
The gtk+ 2.6.10a package available from the gaim 
sf.net downloads page which actually contains a fix to 
the problem.

After looking at the downloads page, I did not find the 2.6.10reva, so I clicked
on another link on the page, and found it on >
http://sourceforge.net/project/showfiles.php?group_id=235 <
So, the response is to recommend using 
gtk+2.6.10a found at the link above, instead of gtk+2.6.9 at >
http://gimp-win.sourceforge.net/stable.html <

I'm going to uninstall gtk+2.6.9 from the above link, and going to install
gtk+2.6.10a and see what happens.

Good luck to you all...
Comment 22 thumper 2005-11-21 01:26:29 UTC
After using gtk+2.6.10a, I've found that there is no crash on applying stroke. 
However, there does seem to be a crash on using the zoom option built into the
picture window.  I have not checked if the zoom through the navigation window
works yet... so far, in what little testing I've done... gtk+2.6.10a seems
workable with kinks.
Comment 23 thumper 2005-11-21 03:24:35 UTC
I have not been able to repeat the crash I noted before... 2.6.10reva appears solid.
Comment 24 Michael Schumacher 2005-11-21 09:37:24 UTC
Do they use the binaries from gtk.org now?
Comment 25 Sven Neumann 2005-11-22 15:50:09 UTC
*** Bug 321580 has been marked as a duplicate of this bug. ***
Comment 26 Sven Neumann 2005-12-12 09:40:06 UTC
*** Bug 323769 has been marked as a duplicate of this bug. ***
Comment 27 Michael Schumacher 2005-12-12 11:56:07 UTC
*** Bug 323018 has been marked as a duplicate of this bug. ***
Comment 28 Michael Schumacher 2005-12-12 12:00:24 UTC
I'm changing the summary to indicate that the problem is rooted in some version
of Gaim's gtk+.

Could someone who's using Gaim open a bug report there and refer to this bug?
And please tell them to use the official gtk+ binaries available from gtk.org,
if they don't do this already.

I'm unsure whether to leave this report open or not, but let's at least reopen it.
Comment 29 Jorg A. Willekens 2005-12-19 09:14:43 UTC
*** Bug 324324 has been marked as a duplicate of this bug. ***
Comment 30 danny 2005-12-23 19:19:17 UTC
*** Bug 324755 has been marked as a duplicate of this bug. ***
Comment 31 danny 2005-12-23 19:28:24 UTC
I have now filed this with the Gaim bug reporting system:
http://sourceforge.net/tracker/index.php?func=detail&aid=1389095&group_id=235&atid=100235

Those interested could go add themselves to the watch list to see what falls
out.
Comment 32 Michael Schumacher 2005-12-27 16:39:46 UTC
*** Bug 324372 has been marked as a duplicate of this bug. ***
Comment 33 Daniel Atallah 2005-12-28 07:38:45 UTC
The GTK+ installer that gaim provides does use the "official" binaries that Tor creates.
Comment 34 Michael Schumacher 2006-01-05 14:36:41 UTC
*** Bug 325852 has been marked as a duplicate of this bug. ***
Comment 35 Michael Schumacher 2006-01-12 13:57:16 UTC
*** Bug 320999 has been marked as a duplicate of this bug. ***
Comment 36 Michael Schumacher 2006-01-12 16:51:46 UTC
(In reply to comment #33)

> The GTK+ installer that gaim provides does use the "official" binaries that Tor
> creates.

That's great news. Comment #22 apparently indicates that there is a 2.6.10 installer available from the Gaim site that doesn't cause the problem this report is about. However, http://gaim.sourceforge.net/win32/index.php#wingtk links to 2.6.9, which presumably still triggers it?

I thought about adding a news item to gimp.org in order to get more attention to this problem (and have less duplicated bug reports), but I'd prefer if you could notify your users on your own - I don't like to cause something that might look like we're bashing Gaim.
Comment 37 Daniel Atallah 2006-01-12 17:07:22 UTC
(In reply to comment #36)
> However, http://gaim.sourceforge.net/win32/index.php#wingtk
> links to 2.6.9, which presumably still triggers it?

I updated that link to point to 2.6.10.

The gaim 1.5.0 installer that is packaged with GTK+ (we provide installers with and without GTK+), however, still installs 2.6.9 (I didn't want to re-release and deal with complications associated with that.).

Thanks.
Comment 38 Michael Schumacher 2006-01-12 23:57:39 UTC
If users ue this GTK+ installer, will their 1.5.0 installation be updated? If so, it would IMO be best to announce this in your news system.
Comment 39 Michael Schumacher 2006-02-07 10:08:35 UTC
*** Bug 330077 has been marked as a duplicate of this bug. ***
Comment 40 Michael Schumacher 2006-02-07 13:19:31 UTC
I've opened bug http://sourceforge.net/tracker/index.php?func=detail&aid=1425996&group_id=235&atid=100235 in the Gaim bug tracker to make the Gaim developers aware of this problem.

If nothing happens this week, I'll add a news entry as mentioned in comment #36.
Comment 41 Michael Schumacher 2006-02-23 22:11:45 UTC
*** Bug 320670 has been marked as a duplicate of this bug. ***
Comment 42 Martin 2006-03-09 13:55:04 UTC
*** Bug 333775 has been marked as a duplicate of this bug. ***
Comment 43 Sven Neumann 2006-05-19 13:57:37 UTC
*** Bug 342324 has been marked as a duplicate of this bug. ***
Comment 44 Sven Neumann 2006-06-14 06:46:29 UTC
*** Bug 344465 has been marked as a duplicate of this bug. ***
Comment 45 Sven Neumann 2006-06-21 11:38:53 UTC
*** Bug 345529 has been marked as a duplicate of this bug. ***
Comment 46 Michael Schumacher 2006-06-25 14:34:22 UTC
*** Bug 334351 has been marked as a duplicate of this bug. ***
Comment 47 Michael Schumacher 2006-07-03 20:38:29 UTC
*** Bug 334182 has been marked as a duplicate of this bug. ***
Comment 48 Sven Neumann 2006-07-11 11:47:19 UTC
Lowering priority because there is nothing we can do about this.
Comment 49 KGH Nicholes 2006-07-25 00:05:12 UTC
My W98SE with Gimp 2.2.10 would crash when I did File/New/OK.  I believe this is related to the above problem.  I just upgraded to Gimp 2.2.12, it still crashed, with Windows reporting ...illegal operation and will be closed down.  I have C++ installed, and debug reported... debug: unhandled exception in gimp-2.2.exe (LIBGTK-WIN32-2.0-0.DLL): 0xC0000005: Access Violation.  I thought I had SourceForge's GTK 2.6.10 installed, but when I installed gtk-runtime-2.6.10-rev-a.exe, it reported I was running 2.6.9 rev A.  I had to reboot to get it to install completely (I hadn't after crashing Gimp).  Gimp now will open a new file for me.  It does seem to be a GTK problem.  Good luck to all of us W98SE users (mine is internetting from behind a Devil Linux CD-boot firewall machine).  My thanks to all who report problems and solutions online.
Comment 50 Sven Neumann 2006-08-07 12:03:52 UTC
*** Bug 348609 has been marked as a duplicate of this bug. ***
Comment 51 Sven Neumann 2006-08-10 16:58:05 UTC
*** Bug 350750 has been marked as a duplicate of this bug. ***
Comment 52 Michael Schumacher 2006-12-29 10:49:04 UTC
*** Bug 390397 has been marked as a duplicate of this bug. ***
Comment 53 Michael Schumacher 2007-01-14 19:10:20 UTC
*** Bug 381107 has been marked as a duplicate of this bug. ***
Comment 54 Michael Schumacher 2007-02-16 09:11:49 UTC
*** Bug 408266 has been marked as a duplicate of this bug. ***
Comment 55 Sven Neumann 2007-02-22 23:13:02 UTC
*** Bug 410574 has been marked as a duplicate of this bug. ***
Comment 56 Manish Singh 2007-05-11 16:38:05 UTC
*** Bug 437577 has been marked as a duplicate of this bug. ***
Comment 57 Raphaël Quinet 2007-05-24 11:23:31 UTC
This could probably be marked as a duplicate of gtk bug #311141.  Upgrading to gtk+-2.8 or later would solve the problem.  The backport mentioned in that bug report came after 2.6.10 and was never included in a 2.6 release, so 2.8 is required.
Comment 58 Raphaël Quinet 2007-05-24 11:26:03 UTC
Sorry, ignore my previous comment.  The gtk bug mentioned above is not related to the same thing as this bug report, even if upgrading would also solve that problem.
Comment 59 Sven Neumann 2007-07-20 17:56:50 UTC
*** Bug 458462 has been marked as a duplicate of this bug. ***
Comment 60 Phrawm48 2007-07-20 18:21:59 UTC
Note that to correct the aforementioned bug 458462 I installed GTK+ 2.10.13 which fixed my Gimp 2.2.17 crashes but broke my Gaim 1.5.0.

Given the comments about Gaim in this bug (314529), I thought I'd mention that Gaim has been superseded by Pidgin 2.0.2 (http://pidgin.im/pidgin/home/).

I mention this because Pidgin 2 wants to install GTK+ 2.10.11s...
Comment 61 Ankit 2007-07-25 14:29:23 UTC
Pidgin hasn't had a release since GTK 2.10.13. I'm not sure about Gaim, as I have upgraded to Pidgin, but Pidgin does not crash with GTK 2.10.13
Comment 62 Michael Schumacher 2007-09-20 19:09:48 UTC
*** Bug 478605 has been marked as a duplicate of this bug. ***
Comment 63 Michael Schumacher 2008-02-02 19:55:10 UTC
I guess this can be resolved as OBSOLETE, as GIMP 2.4 installers install a private copy of GTK+.