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 514906 - use of right-click menu crashes GIMP
use of right-click menu crashes GIMP
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Windows Installer
2.4.x
Other Windows
: Normal critical
: 2.4
Assigned To: Jernej Simončič
Jernej Simončič
: 514280 Randy 520462 520534 520665 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-02-07 02:22 UTC by Lyle Kroll
Modified: 2008-10-30 20:09 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Stack traced file. (51.03 KB, text/plain)
2008-02-07 20:06 UTC, Lyle Kroll
Details

Description Lyle Kroll 2008-02-07 02:22:38 UTC
If you do a canvas resize by copying the value of one of the sides and pasting it into the other (as opposed to using the up/down arrow for resizing or direct entry), GIMP will crash.
Comment 1 Alec_Burgess 2008-02-07 03:16:10 UTC
Confirmed with Win XP Gimp 2.4.4
Interestingly (?) same action with GIMPVS 2008 - gimp-2.0-vs9.exe (1.0.0.1) does NOT crash.

Question: does anyone produce a Window Gimp version that will generate the symbol dump that is always being asked for wrt other Gimp crashes?
Comment 2 Sven Neumann 2008-02-07 07:19:59 UTC
We need a more detailed description here. Please describe each and every step very precisely. Tell us exactly what action triggers the crash. Does this problem only show up in this particular dialog or are other similar dialogs affected as well? Please do also specify the version of GTK+ you are using.
Comment 3 Lyle Kroll 2008-02-07 08:48:31 UTC
When doing the canvas resize, if you paste in a number for the edges instead of manually entering in the numbers (or using the up/down arrow entry method), GIMP will crash.  Don't remember ever having this issue with earlier versions of 2.4.x.  Now I'm using the Windows version of GIMP so this may not be an issue with other builds.  Also, I want to thank you and all the GIMP developers for the work that you've done over the years.  I've been a very happy GIMP user for over 8 years (even though I have CS2, I still use GIMP as my main editor; works for what I have to do).  :)
Comment 4 Sven Neumann 2008-02-07 09:14:12 UTC
You still did not tell us what version of GTK+ you are using nor did you tell us what exactly triggers the crash. Is it when pasting the number or does the crash occur when you confirm the dialog?

We also need to know if there's anything special about your system. Any additional software running? What language settings are you using? ...
Comment 5 Alec_Burgess 2008-02-07 09:21:33 UTC
I got a "midair collision while pasting the following" while you were posting comment # 4.

I think the following answers your supplementary questions ... ?
==========
Sven: > Please describe each and every step very precisely.

Open Gimp.
Open any image (eg. a JPG)
Menu-Image-Canvas Size...

SetImageCanvas Size dialog appears

Width=(say)1800, Height=(say) 900 ...
RightClick on Height, Copy "900"
RightClick on Width (after selecting the "1800"), Paste "900"
Make no other input.
Click [Resize] button
Gimp crashes.

Probably not helpful but the error msg (per drminGW is: gimp-2.4.exe caused an
Access Violation at location 77c478c0 in module msvcrt.dll Reading from
location 00000000.)

Sven: > Does this problem only show up in this particular dialog or are other
similar dialogs affected as well?

Haven't seen it (yet?) in other dialogs. Crash occurred while following Lyle's
description. 

Sven: > Please do also specify the version of GTK+ you are using.
whatever was installed with: gimp-2.4.4-i686-setup.exe 
Apparently 2.1.0 per folders created created in the Gimp programfiles folder:
 ... \Gimp-2.4.0\lib\gtk-2.0
Comment 6 Alec_Burgess 2008-02-07 09:25:41 UTC
sorry: 
>>Apparently 2.1.0 per folders created created in the Gimp programfiles folder:
 ... \Gimp-2.4.0\lib\gtk-2.0<<

s/b 2.10.0 per folder(s) created e.g.: 
C:\Program Files\AmbPF\Gimp\Gimp-2.4.0\lib\gtk-2.0\2.10.0\engines
(C:\Program Files\AmbPF\Gimp\Gimp-2.4.0\ was my choice of where to install Gimp 2.4.4)
Comment 7 Alec_Burgess 2008-02-07 09:29:35 UTC
FWIW ... I happen to have Gimp 2.3.19 still available. Crash does not occur with it.
Comment 8 Lyle Kroll 2008-02-07 13:38:35 UTC
Good morning Sven,

Currently, I have both GTK+1.3.0 (for my version of 1.2.4 which I still use since certain plugins never got translated to 2.2.x/2.4.x which I still like to use on rare occasions) and GTK+2.10.13.  :)
Comment 9 Sven Neumann 2008-02-07 17:39:04 UTC
Ah, so this crash does not happen when you paste the number, as you initially claimed, but when you confirm the dialog.

We will need a stack trace in order to investigate this further. I am afraid there is not much we can do without this information.
Comment 10 Michael Schumacher 2008-02-07 18:42:33 UTC
I can't reproduce this with my own gimp-2-4 build.
Comment 11 Lyle Kroll 2008-02-07 20:06:18 UTC
Created attachment 104665 [details]
Stack traced file.

File created during GIMP crash.
Comment 12 Lyle Kroll 2008-02-07 20:10:07 UTC
Hey Sven.  I attached the stack trace when GIMP crashes (during the said action).  And yes, the crash doesn't occur until after you confirm.  Also, to Michael; it depends on the version of 2.4; I did this same action (do this all the time) on earlier versions of 2.4.x with no problems (not sure about 2.4.3 since I didn't have it on my machine long before 2.4.4 was released).  :)
Comment 13 Tor Lillqvist 2008-02-08 10:43:11 UTC
Unfortunately that kind of file is not what Sven meant when asking for a stack trace.

There is no way for a normal Windows end-user to get a useful stack trace from GIMP, because 1) no tool bundled with Windows would understand the debug information format that gcc generates, and 2) at least the GLib, GTK+ and Pango DLLs are distributed as stripped anyway.

Maybe I should stop stripping the DLLs I distribute (and that Jernej then redistributes in the GIMP installer)? It would not help everybody because of 1) above, but if the end-user installed some 3rd-party debugging tool like Dr. Mingw (http://jrfonseca.dyndns.org/projects/gnu-win32/software/drmingw/ ) he could get a more correct stack trace.
Comment 14 Alec_Burgess 2008-02-09 02:02:57 UTC
Is there any reason not to do so? - speed or download size?

I've got the DrMingw debugger and those w/o could easily get it if so instructed.
Comment 15 Martin Nordholts 2008-02-10 08:35:04 UTC
Michel, can you reproduce it on Windows using ender's builds?
Comment 16 rittwik 2008-03-05 06:06:35 UTC
I think when you right click on the "Height" or "Width" a menu is poping out. That menu is the cause of the problem. For example if you paste any text in GIMP Text Editor and click OK or Close button the GIMP will crash. It is all beacause of the menu poping out when we right click on any text edit box.
Comment 17 Sven Neumann 2008-03-05 09:46:52 UTC
Why would you right-click when you want to paste?
Comment 18 rittwik 2008-03-05 11:05:23 UTC
ctrl+v is working fine but still there is option for paste in the menu that pop-up when you right click.. and that menu is causing problem everywhere even in script-fu
Comment 19 Michael Natterer 2008-03-05 13:32:14 UTC
*** Bug 520462 has been marked as a duplicate of this bug. ***
Comment 20 Sven Neumann 2008-03-05 19:44:06 UTC
Oh, I simply forgot that you can't paste the primary selection with middle-click on Windows.
Comment 21 Sven Neumann 2008-03-06 08:00:55 UTC
*** Bug 520665 has been marked as a duplicate of this bug. ***
Comment 22 Sven Neumann 2008-03-06 08:04:09 UTC
*** Bug 514280 has been marked as a duplicate of this bug. ***
Comment 23 Sven Neumann 2008-03-06 08:05:54 UTC
*** Bug 520534 has been marked as a duplicate of this bug. ***
Comment 24 Sven Neumann 2008-03-06 08:07:54 UTC
So is this a known bug in GTK+? Has it been fixed already? If so, a new GIMP installer with a more recent version of GTK+ would be very useful at this point...
Comment 25 Sven Neumann 2008-03-06 16:02:12 UTC
The GTK+ version that is affected by this bug report is 2.12.5. I can't tell if other versions show the same problem. But there is incidence that it is caused by the changes done for bug #506769.
Comment 26 Sven Neumann 2008-03-06 16:05:45 UTC
Sorry, that was a misunderstanding. This is actually the same bug as bug #506769. It appears to be fixed in 2.12.6.

Reassigning back to GIMP and moving it to the Installer component. An updated installer is needed.
Comment 27 opnoshn 2008-03-06 18:47:22 UTC
Just to say that my install has GTK+ 2.10.0  (That's what came with the Windows download from the link on the Gimp downloads page for the Gimp 2.4.4.).  and as a "non assembler", I'm stuck with whatever comes ready to self install with The Gimp.  I wasn't much help, beyond the original bug post, when this was 506769, so I doubt I have much to offer here either.   I'll answer any questions about the details of my continuing experience of this bug to the best of my ability and knowledge but that ain't great.
Mikel.
Comment 28 Randy Thomson 2008-03-06 18:48:01 UTC
*** Bug 519838 has been marked as a duplicate of this bug. ***
Comment 29 Sven Neumann 2008-03-06 22:53:02 UTC
(In reply to comment #27)
> Just to say that my install has GTK+ 2.10.0  (That's what came with the Windows
> download from the link on the Gimp downloads page for the Gimp 2.4.

What makes you think so? As far as I know the GIMP 2.4.4 installer for Windows includes GTK+ 2.12.5. It would probably be nice if the library versions would be explicitly listed somewhere at http://gimp-win.sourceforge.net/.
Comment 30 Tor Lillqvist 2008-03-06 23:33:10 UTC
> What makes you think so? 

This is not the first time people think the presence of the folder called "lib/gtk-2.0/2.10.0" means that it is GTK+ version 2.10.0.

The actual version of GTK+ can be found by checking the Properties of the libgtk-win32-2.0-0.dll file in the "bin" folder, for instance.
Comment 31 Lyle Kroll 2008-03-07 03:26:27 UTC
Not sure to close this or not, but I just installed GIMP 2.4.5 and copied a value per this thread and GIMP did not crash.  If someone else can verify this (Windows is my current platform by the way), then I will close.  Whatever the gurus did, it looks like kudos goes to them.  :)
Comment 32 Larsen 2008-03-07 08:33:27 UTC
I can confirm that the problem originally posted in bug 520534 is now fixed.
Thx!
Comment 33 Sven Neumann 2008-03-07 09:49:19 UTC
http://gimp-win.sourceforge.net/stable.html still points to 2.4.4. Keeping this report open until this has changed...
Comment 34 Michael Schumacher 2008-03-07 10:09:54 UTC
Points to 2.4.5 now. 

The downloads page on www.gimp.org does still point to 2.4.4, though.
Comment 35 opnoshn 2008-03-07 18:37:04 UTC
OK, just to follow up my previous provision of wrong info, my gtk  version IS 2.12.5  according to that dll file in the bin folder.
I won't be able to check it on my computer till a Windows version of the latest Gimp, with the newer gtk is available.
Comment 36 Michael Schumacher 2008-03-08 00:44:41 UTC
I can't reproduce the crash with the 2.4.5 installer anymore. Link is updated:

2008-03-08  Michael Schumacher  <schumaml@cvs.gnome.org>

	* downloads/Windows.xhtml: updated link to 2.4.5 installer.


Closing as fixed.
Comment 37 Lyle Kroll 2008-03-08 01:05:41 UTC
Been using GIMP for years and am still in awe of the programmers out there.  Again, kudos to you all.  :)