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 622505 - Entering any number in zoom combobox causes crash
Entering any number in zoom combobox causes crash
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Windows Installer
2.6.9
Other Windows
: Normal critical
: ---
Assigned To: Jernej Simončič
Jernej Simončič
: 627270 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-06-23 15:54 UTC by Joe
Modified: 2012-03-23 15:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
output from windbg (15.10 KB, text/plain)
2010-06-24 06:17 UTC, Joe
Details
disassembled erroneous code (21.19 KB, text/plain)
2010-06-30 18:04 UTC, Joe
Details
execution tracing (7.82 KB, text/plain)
2010-06-30 18:07 UTC, Joe
Details

Description Joe 2010-06-23 15:54:52 UTC
AppName: gimp-2.6.exe
Offset: 00325589

OS: Windows XP Pro RU SP3

Problem first occurs with version 2.6.8.
Comment 1 Martin Nordholts 2010-06-23 15:55:47 UTC
Does the problem occur if you make a clean GIMP 2.6.9 install, without any old files from older GIMP builds?
Comment 2 Joe 2010-06-23 16:08:54 UTC
I removed "GIMP" directory in "Program Files" and ".gimp-2.6" in home folder and reinstalled GIMP but problem persists.

P.S. Martin, ty 4 lightning-fast response :)
Comment 3 Martin Nordholts 2010-06-23 16:09:57 UTC
Can you give us the stack trace with http://code.google.com/p/jrfonseca/wiki/DrMingw please?

P.S. You're welcome :)
Comment 4 Joe 2010-06-23 17:18:54 UTC
I could not find win32-related instruction on how to install debug info.

http://pastebin.com/EBsiF63u
from release version; doubt it helps much
Comment 5 Martin Nordholts 2010-06-23 17:20:03 UTC
Debug symbols should come with the installer. Are they not there?

ender: Did you remove debug symbols? :(
Comment 6 Jernej Simončič 2010-06-23 17:27:29 UTC
No, GIMP 2.6.8 and 2.6.9 aren't stripped.

hitxarvlphmae: can you try the experimental 2.6.9 installer (under Additional packages on <http://gimp-win.sourceforge.net/stable.html>) to see if this still happens (that installer contains a newer GTK+ version).
Comment 7 Joe 2010-06-23 18:23:59 UTC
Experimental 2.6.9 also crashed when I tried manually entering zoom factor.
Mouse input seems OK in all versions.
Comment 8 Jernej Simončič 2010-06-23 19:48:06 UTC
Please try this version (which includes additional debug information):
http://eternallybored.org/misc/gimp/gimp-2.6.9-debug-setup.exe
Comment 9 Joe 2010-06-24 06:16:49 UTC
outfrom from drmingw

gimp-2.6.exe caused an Illegal Instruction at location 00728099 in module gimp-2.6.exe.

Registers:
eax=00000000 ebx=00000000 ecx=00000001 edx=0073fe48 esi=00000002 edi=00000010
eip=00728099 esp=0022eef0 ebp=0000002b 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:
00728099  gimp-2.6.exe:00728099
Comment 10 Joe 2010-06-24 06:17:49 UTC
Created attachment 164473 [details]
output from windbg
Comment 11 Michael Schumacher 2010-06-24 12:38:14 UTC
I can't reproduce this with 2.6.9. Locale-dependent number format issue?
Comment 12 Joe 2010-06-24 14:42:31 UTC
I tried japanese and english format (by Regional and Language Options) with the same result.

I can change image size by "+/-" and drop-down list. When i type "qwert", or "фывап", or "@#$", or "0" (zero) value just resets back. But typing any number except zero causes crash.
Comment 13 Joe 2010-06-24 14:46:43 UTC
p.s. i mean "entering any number"
Comment 14 Tor Lillqvist 2010-06-24 14:48:05 UTC
Could this not be the old Delphi problem again? hitxarvlphmae, how "clean" is the machine? Do you have much "useful" 3rd-party desktop enhancements or similar software installed?
Comment 15 Joe 2010-06-24 15:13:17 UTC
Tor Lillqvist: I have none of that useless stuff :)

GIMP 2.6.7 works nearly perfect
Comment 16 Jernej Simončič 2010-06-24 18:23:14 UTC
It's not simply locale-dependant - I tried setting everything to Russian in Regional and Language Options, and couldn't reproduce the crash.

Also, that Delphi issue wouldn't cause Illegal instruction, but a floating-point exception.

Joe: what CPU do you have?
Comment 17 Jernej Simončič 2010-06-24 18:25:21 UTC
BTW, could this be related to bug 606247 ? Does GIMP also crash if you try setting a fixed aspect ratio for rectangular select?
Comment 18 Mike Sherrill 2010-06-24 18:58:44 UTC
I reported 606247. 

With an image open for editing, I pick View | Zoom | Other from the menus, right?

I can enter numbers in all three combo boxes in the "Zoom Ratio" dialog box. Gimp doesn't crash.
Comment 19 Joe 2010-06-24 19:30:57 UTC
@Jernej Simončič
>BTW, could this be related to bug 606247 ? Does GIMP also crash if you try
setting a fixed aspect ratio for rectangular select?

Yea, can confirm

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


And furthermore, GIMP crashed when I press Tab after clicking on Zoom.


gimp-2.6.exe caused an Illegal Instruction at location 00728099 in module gimp-2.6.exe.

Registers:
eax=00000000 ebx=00000000 ecx=00000003 edx=0073fe48 esi=00000064 edi=00000010
eip=00728099 esp=0022f2c0 ebp=ffffffe2 iopl=0         nv up ei ng nz na po cy
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00200287

Call stack:
00728099  gimp-2.6.exe:00728099


@Mike Sherrill
>View | Zoom | Other from the menus, right?

Nop, I'm talking about widget in the statusbar.
Comment 20 Joe 2010-06-24 20:21:05 UTC
@Jernej Simončič
>what CPU do you have?

Sempron 2200+ :)
Comment 21 Joe 2010-06-30 18:00:27 UTC
I ran GIMP 2.7.1 under the debugger and found out where it went wrong after entering 1 in the combobox. Unfortunately, I'm not very familiar with assembler, but peace of code looks weird.
Look at address 0077DD24. Is it right to use "qword"?

It seems, it's gimp_scale_combo_box_changed (?) function (considering сhecking for a positive number) with some inline code ("localeconv" & "strlen" calls etc.).
Comment 22 Joe 2010-06-30 18:04:07 UTC
Created attachment 164981 [details]
disassembled erroneous code
Comment 23 Joe 2010-06-30 18:07:25 UTC
Created attachment 164982 [details]
execution tracing
Comment 24 Jernej Simončič 2010-06-30 18:19:15 UTC
Since this might be a corrupted locale problem, can you try this: go to Regional and Language options on Control Panel, change to another locale (doesn't matter which one), then back to your preferred locale, and check if the crash still happens.
Comment 25 Joe 2010-06-30 18:39:08 UTC
>change to another locale (doesn't matter which one), then back to your preferred locale

I tried many times
Comment 26 Martin Nordholts 2010-08-19 19:42:35 UTC
*** Bug 627270 has been marked as a duplicate of this bug. ***
Comment 27 Joe 2010-10-30 19:36:28 UTC
Same problem with 2.6.11
App crashes with "illegal instruction"

  movq qword ptr ss:[esp+0B8], xmm0

within gimp-2.6.exe (and libgimpwidgets-2.0-0.dll => bug 606247)
in the following instruction set

  movd    xmm0, esi    ; here is zoom factor, i.e 0x00000064 (100%)
  cmp     dword ptr ss:[esp+64], 10
  movq    qword ptr ss:[esp+0B8], xmm0  ; <<< illegal instruction
  cmovle  edi, dword ptr ss:[esp+64]
  fild    qword ptr ss:[esp+0B8]

Operand size mismatch? Unsupported SIMD instructions?
Comment 28 Joe 2011-04-16 20:52:57 UTC
It may be interesting that this bug is gone in Partha's unofficial 2.7.2 build http://www.partha.com/downloads/gimp-2.7.2.zip
Also no crash on setting aspect ratio (bug 606247) with that build.
So what it was? GIMP/GTK+ bug, compiler issue or what?
Comment 29 Michael Schumacher 2011-06-16 07:58:22 UTC
Jernej, the last two comments have an analysis at assembly level - anything you can add here?
Comment 30 Stefano Ferri 2011-09-06 16:27:14 UTC
I'm writing just to confirm this bug, I've tried on two different MS Windows XP sp3 machines, and Gimp 2.6.11 crashes when:

- a value is entered in the zoom combo box
- a value of a fixed aspect ratio is entered in the rectangular selection tool, or in the crop tool
- when one press tab after zooming.


If it can be useful, I'll try to obtain an error stack.

Stefano
Comment 31 Michael Natterer 2012-01-08 23:26:12 UTC
Please try GIMP 2.7.4 and report back, we won't fix 2.6 bugs any longer.
Comment 32 Joe 2012-02-10 12:43:33 UTC
Seems GIMP 2.6.12 (gimp-2.6.12-i686-setup-2.exe) is working fine now :)
ty
Comment 33 Akhil Laddha 2012-03-23 15:05:00 UTC
Thanks Joe