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 606247 - Crash using rectangular select tool with fixed aspect ratio on Windows XP
Crash using rectangular select tool with fixed aspect ratio on Windows XP
Status: RESOLVED INCOMPLETE
Product: GIMP
Classification: Other
Component: Windows Installer
2.6.8
Other Windows
: Normal major
: 2.6
Assigned To: Jernej Simončič
Jernej Simončič
: 608833 618077 624661 627860 630604 631057 637805 641124 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-01-06 18:52 UTC by Mike Sherrill
Modified: 2011-10-07 16:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
crash-info (14.82 KB, image/png)
2010-06-07 22:09 UTC, Bogdan Harjoc
Details

Description Mike Sherrill 2010-01-06 18:52:04 UTC
With no images open for editing, trying to set the rectangular selection tool to any fixed aspect ratio crashes Gimp 2.6.8 on Windows XP, SP3.

Steps to reproduce

Open Gimp. 
Pick the rectangle select tool.
Click in the text box that shows the default aspect ratio of "1:1".
Hit the [Tab] key.

Actual result

Gimp crashes.

Expected result

No crash. I discovered the bug when I was trying to set a fixed aspect ratio of 4:3. I found that it's not necessary to check "Fixed" to crash Gimp.

Build date and platform

Gimp 2.6.8 (windows installer), Windows XP, SP3. Downloaded and installed this version of Gimp today to upgrade a previous installation of Gimp 2.4.something. Got it from the url http://downloads.sourceforge.net/gimp-win/gimp-2.6.8-i686-setup.exe. The timestamp on gimp-2.6.exe is "12/15/2009 11:19PM". 

Additional information

Application event log records event ID 1000. Description is "Faulting application gimp-2.6.exe, version 0.0.0.0, faulting module libgimpwidgets-2.0-0.dll, version 0.0.0.0, fault address 0x00046e29."
Comment 1 Martin Nordholts 2010-01-06 18:59:08 UTC
Hi and thanks for the bug report! As far as I know 2.6.8 has debugging symbols, please install http://code.google.com/p/jrfonseca/wiki/DrMingw and attach the stack trace to the bug report. Thanks! (I'm not able to immediately reproduce this.)
Comment 2 Mike Sherrill 2010-01-06 19:18:35 UTC
Output of drmingw

gimp-2.6.exe caused an Illegal Instruction at location 63ac6e29 in module libgimpwidgets-2.0-0.dll.

Registers:
eax=00000000 ebx=00000000 ecx=00000001 edx=63acb00c esi=00000001 edi=00000010
eip=63ac6e29 esp=0022b040 ebp=0000003a iopl=0         nv up ei ng nz na pe cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00200283

Call stack:
63AC6E29  libgimpwidgets-2.0-0.dll:63AC6E29  gimp_widgets_init
Comment 3 Martin Nordholts 2010-01-06 19:21:01 UTC
The stack must be corrupt, gimp_widgets_init() is only called once when GIMP is started. Are you having any system-wide installation of GTK+ that conflicts with the GTK+ version that comes with GIMP?
Comment 4 Mike Sherrill 2010-01-06 19:40:55 UTC
System-wide? Not sure. 

Dia, Gimp, Inkscape, Nmap, and Wireshark all install libgtk-win32-2.0-0.dll somewhere in their directory hierarchy.

Other software includes GTK "stuff"--XEmacs, Graphviz, for example. I don't think any of these make a "system-wide" installation of GTK. Is there something specific I can look for to confirm that--a particular dll, directory, or something like that?

(Do I faintly recall earlier versions of Gimp for Windows requiring a separate download and install of GTK+, or is that just my imagination?)
Comment 5 Martin Nordholts 2010-01-06 19:43:47 UTC
No that's correct, earlier GIMP installers had a separate GTK+ download.

Look in C:\Windows\System32
Comment 6 Mike Sherrill 2010-01-08 21:14:01 UTC
No files with "gtk" or "gimp" in the filename in the System32 directory. 

From Cygwin's bash shell, "which libgtk-win32-2.0-0.dll" doesn't find a dll with that name. Neither does "which libgimpwidgets-2.0-0.dll".

Windows versions of Graphviz and Nmap both have libgtk-win32-2.0-0.dll in their directories. And both Graphviz and Nmap were in the Windows system path. I removed them from the system path and from user variables for testing. Gimp still crashes; same steps to reproduce.

Cygwin is not in the Windows system path. So I don't think any of its gtk libraries are likely to be the problem.

I find only one copy of libgimpwidgets-2.0-0.dll on this computer. It's in Gimp's bin directory.

Can you suggest anything else to look for?
Comment 7 Mike Sherrill 2010-01-11 14:26:47 UTC
As a follow-on step, I uninstalled gimp, deleted all its directories, and removed all references to gimp from the Windows registry. Reinstalled gimp 2.6.8. Same kind of crash; same steps to reproduce.
Comment 8 Michael Schumacher 2010-01-15 08:25:47 UTC
I can't reproduce this with 2.6.8 on XP SP3. Pressing Tab just switches the focus to the next element of the option, the portrait icon.
Comment 9 Mike Sherrill 2010-01-15 17:58:34 UTC
(In reply to comment #8)
> I can't reproduce this with 2.6.8 on XP SP3. Pressing Tab just switches the
> focus to the next element of the option, the portrait icon.

Well, my download of Gimp was good--md5 sums matched. So it's probably not a problem with Gimp, per se.

What's left?

a) Our versions of XP SP3 are different.
b) Weird hardware interaction (video card maybe?).
c) Something else.

a) If someone would care to email me a directory listing of their Windows directory and their system32 directory, I'll do a comparison to see if I can find any differences. Reply here first, please, so I don't get a deluge of directory listings. Windows "dir" or Cygwin "ls -lR" or "ls -lGR" is fine with me.

b) I'll start looking into the firmware and drivers for the video card. 

c) Ideas?

Thanks in advance.
Comment 10 Alexey Kiselev 2010-01-16 11:36:52 UTC
I can confirm this bug. I have same config (WinXP SP3, Gimp 2.6.8). Gimp crashes every time when aspect ratio box lose input focus (both by keyboard or by mouse). Possible, error in the parsing of the text? 
Of course, I'm ready to send you Windows and System32 listing, if you wish.
Comment 11 Martin Nordholts 2010-01-16 11:59:58 UTC
Alexy, do you get the same corrupted stack trace as Mike?
Comment 12 Alexey Kiselev 2010-01-16 12:17:22 UTC
output of drmingw:


gimp-2.6.exe caused an Illegal Instruction at location 63ac6e29 in module
libgimpwidgets-2.0-0.dll.

Registers:
eax=00000000 ebx=00000000 ecx=00000001 edx=63acb00c esi=00000001 edi=00000010
eip=63ac6e29 esp=0022b040 ebp=0000003a iopl=0         nv up ei ng nz na pe cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000283

Call stack:
63AC6E29  libgimpwidgets-2.0-0.dll:63AC6E29  gimp_widgets_init

Seems all the same, except "efl"
Comment 13 Graham Inggs 2010-02-27 18:57:46 UTC
I'm getting the same with GIMP 2.6.8 on Windows XP SP3.

Output of drmingw:

gimp-2.6.exe caused an Illegal Instruction at location 63ac6e29 in module libgimpwidgets-2.0-0.dll.

Registers:
eax=00000000 ebx=00000000 ecx=00000001 edx=63acb00c esi=00000001 edi=00000010
eip=63ac6e29 esp=0022b040 ebp=0000003a iopl=0         nv up ei ng nz na pe cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000283

Call stack:
63AC6E29  libgimpwidgets-2.0-0.dll:63AC6E29  gimp_widgets_init 

Also, my only copy of libgimpwidgets-2.0.0.dll is located in \Program Files\GIMP-2.0\bin.

I installed GIMP 2.6.7 over 2.6.8 and the fixed aspect ratio select works again.
Comment 14 Martin Nordholts 2010-05-09 15:56:03 UTC
*** Bug 618077 has been marked as a duplicate of this bug. ***
Comment 15 Martin Nordholts 2010-05-09 15:57:37 UTC
People that are having this problem:
Are you able to reproduce it on any Windows machine (using the same installer of course)? I'm not able to reproduce this in WINE using the 2.6.8 Windows build, decreasing the chance of an installer-build problem.
Comment 16 Mike Sherrill 2010-05-14 17:40:28 UTC
I installed gimp 2.6.8 on a Dell Vostro running Windows XP Pro, SP3. Gimp worked correctly on that computer.

I had an earlier version of gimp on my computer before I installed 2.6.8. The Dell didn't have an earlier version installed.
Comment 17 Martin Nordholts 2010-05-14 17:51:43 UTC
Can someone confirm if this is the step-by-step to reproduce the problem on any computer (doesn't seem to work in Wine)?:

1. Install GIMP 2.6.7
2. Install GIMP 2.6.8
3. Perform step-by-step as described in original  bug report
Comment 18 Mike Sherrill 2010-05-21 16:48:39 UTC
I'm the reporter of this issue.

Trying this on my computer is not appropriate, right? I need to try this on some other computer, like the Dell Vostro (above). I can do that, but probably not for a few days. I have to disrupt accounting to try that.
Comment 19 Bogdan Harjoc 2010-06-04 23:26:37 UTC
I can confirm this bug. Gimp 2.6.8, Winxp SP3 clean install, only other application that uses GTK is Pidgin (and it uses a copy of GTK from its own install directory).
Comment 20 Martin Nordholts 2010-06-05 07:22:41 UTC
Bogdan: Did you confirm my step-by-step in comment 17 or just the bug in general?
Comment 21 Bogdan Harjoc 2010-06-05 15:07:13 UTC
Martin: I just tried your steps in comment 17 and the bug happens in 2.6.8 but not in 2.6.7.
Comment 22 Martin Nordholts 2010-06-07 11:09:44 UTC
Probably an installer issue then. Jernej: you put some additional magic in the 2.6.8 installer script if I recall correctly?
Comment 23 Jernej Simončič 2010-06-07 11:48:47 UTC
No, the only change in 2.6.8 install script is XP SP2 requirement (2.6.7 also allows Windows 2000 SP4). I can't reproduce this problem myself - I tried installing GIMP 2.6.7 in a clean XP SP3 VM, ran it once, tried selection with set aspect, then upgraded to 2.6.8 and tried selection with aspect ratio again, and there were no problems.

What are the locale settings on the machines where the crash happens (specifically, I'm interested both in the settings on first tab in Control Panel's Regional and Language Options [Format and Location], and the last tab [Language for non-Unicode Programs]).
Comment 24 Bogdan Harjoc 2010-06-07 22:09:30 UTC
Created attachment 162982 [details]
crash-info
Comment 25 Bogdan Harjoc 2010-06-07 22:12:12 UTC
Locale is "English (United States)" on both tabs. This is on a SP3 release from October 2009, if it matters. BTW, 2.7.0-release doesn't crash.

Attached are the registers and stack dump for the crash. I tried compiling with debug info using cross-mingw but am stuck at babl.
Comment 26 Jernej Simončič 2010-06-24 18:28:34 UTC
There's a debug build of GIMP 2.6.9 available at 
<http://eternallybored.org/misc/gimp/gimp-2.6.9-debug-setup.exe>

Can you check if GIMP also crashes if you enter any number in the zoom field in the image status bar (bug 622505)?
Comment 27 Michael Schumacher 2010-07-23 19:42:46 UTC
*** Bug 624661 has been marked as a duplicate of this bug. ***
Comment 28 Michael Schumacher 2010-08-24 18:19:08 UTC
*** Bug 627860 has been marked as a duplicate of this bug. ***
Comment 29 d.i.smith 2010-10-01 05:14:14 UTC
*** Bug 631057 has been marked as a duplicate of this bug. ***
Comment 30 Michael Natterer 2010-11-25 22:08:03 UTC
*** Bug 608833 has been marked as a duplicate of this bug. ***
Comment 31 Fabio Durán Verdugo 2011-01-20 20:48:50 UTC
any news for this report?
Comment 32 Michael Natterer 2011-02-28 23:01:01 UTC
*** Bug 641124 has been marked as a duplicate of this bug. ***
Comment 33 Michael Natterer 2011-02-28 23:01:18 UTC
*** Bug 630604 has been marked as a duplicate of this bug. ***
Comment 34 Michael Natterer 2011-02-28 23:02:18 UTC
Fabio: no news, can you provide a stack trace? It will *never* be fixed without.
Comment 35 Michael Schumacher 2011-03-05 19:48:44 UTC
*** Bug 637805 has been marked as a duplicate of this bug. ***
Comment 36 Xuan Duong 2011-04-10 16:07:05 UTC
I have the same bug with GIMP 2.6.11 on Windows XP SP3 (English). When I've stuck Fix and entered ratio, size values, GIMP crashed.
Comment 37 Xuan Duong 2011-04-11 11:02:12 UTC
It works well on Windows 7 Enterprise (French) 32 bits. Is there any solution for Windows XP SP3 ? Thanks.
Comment 38 Tobias Mueller 2011-07-30 14:12:17 UTC
Folks, can you please install http://code.google.com/p/jrfonseca/wiki/DrMingw and attach the stack trace to the bug report. Thanks!
Comment 39 Akhil Laddha 2011-09-10 12:20:19 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 40 AdSR 2011-10-07 16:45:25 UTC
This is the output I got from Dr. Mingw:


gimp-2.6.exe caused an Illegal Instruction at location 0091ea34 in module libgimpwidgets-2.0-0.dll.

Registers:
eax=00000000 ebx=00000000 ecx=00000001 edx=0092300c esi=00000004 edi=00000010
eip=0091ea34 esp=0022b260 ebp=0000003a iopl=0         nv up ei ng nz na pe cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000283

Call stack:
0091EA34  libgimpwidgets-2.0-0.dll:0091EA34  gimp_widgets_init


Win XP SP3, GIMP 2.6.11