GNOME Bugzilla – Bug 340056
GIMP Crashes While Performing an Arbitrary Rotation of a layer.
Last modified: 2008-01-15 13:07:11 UTC
Steps to reproduce: 1. open multiple layer .xcf file in gimp 2. select layer you want to rotate 3. Layer -> Transform -> Arbitrary Rotation... 4. Drag scrollbar to the right 5. CRASH! Stack trace: Other information: I'm using an intel mac with the latest OS (10.4.6) and X11 1.1 - XFree86 4.4.0
This is a really old version of gimp. Can you upgrade to the latest stable version which is 2.2.11 and confirm if this problem still exists?
The answer to Carol's question should go into comment, not the summary.
(In reply to comment #2) > The answer to Carol's question should go into comment, not the summary. > Yeah, Sorry About that. My first time reporting a bug and the site layout confused me at first.
(In reply to comment #1) > This is a really old version of gimp. Can you upgrade to the latest stable > version which is 2.2.11 and confirm if this problem still exists? > I upgraded to 2.2.11 and continue to have this problem (when rotating in either direction).
Are you seeing the same crash if you choose the Rotate tool from the toolbox? When exactly does the crash occur? Can you provide a stack trace of the crash?
magickair, we are waiting for a reply.
When performing an arbitrary rotation by choosing that transformation from the layer drop down menu, here's the resulting stack trace: (gdb) run Starting program: /Applications/gimp/Gimp.app/Contents/MacOS/Gimp SSW setup will include: <gen hessi> Type <sswidl> to start SSW IDL Reading symbols for shared libraries .......................................... ......................... done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done /Applications/gimp/Gimp.app/Contents/Resources/init: line 7: dev/null: No such ile or directory /Users/matt/.gimp-2.2/plug-ins/layer-effects-_en.scm: line 1: syntax error near unexpected token `;' /Users/matt/.gimp-2.2/plug-ins/layer-effects-_en.scm: line 1: `; The GIMP -- an 'mage manipulation program (gimp-2.2:23945): LibGimpBase-WARNING **: gimp-2.2: wire_read(): error (gimp-2.2:23945): Gtk-WARNING **: Could not find the icon 'gnome-fs-home'. The hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://freedesktop.org/Software/icon-theme/releases (gimp-2.2:23945): Gdk-CRITICAL **: gdk_pixmap_new: assertion `(width != 0) && ( eight != 0)' failed (script-fu:24051): LibGimpBase-WARNING **: script-fu: wire_read(): error Program exited normally. (gdb) I'll try the Rotate tool from the toolbox and let you know how it goes. The crash occurs while I'm rotating the layer.
The Rotate Tool resulted in the same crash. Here's the stack trace that went along with it: GNU gdb 6.1-20040303 (Apple version gdb-437) (Fri Jan 13 18:45:48 GMT 2006) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries . .. done (gdb) run Starting program: /Applications/gimp/Gimp.app/Contents/MacOS/Gimp SSW setup will include: <gen hessi> Type <sswidl> to start SSW IDL Reading symbols for shared libraries .................................................................... done Reading symbols for shared libraries . done Reading symbols for shared libraries . done Reading symbols for shared libraries . done /Applications/gimp/Gimp.app/Contents/Resources/init: line 7: dev/null: No such file or directory /Users/matt/.gimp-2.2/plug-ins/layer-effects-_en.scm: line 1: syntax error near unexpected token `;' 'Users/matt/.gimp-2.2/plug-ins/layer-effects-_en.scm: line 1: `; The GIMP -- an image manipulation program (gimp-2.2:24506): LibGimpBase-WARNING **: gimp-2.2: wire_read(): error (gimp-2.2:24506): Gtk-WARNING **: Could not find the icon 'gnome-fs-home'. The 'hicolor' theme was not found either, perhaps you need to install it. You can get a copy from: http://freedesktop.org/Software/icon-theme/releases (gimp-2.2:24506): Gdk-CRITICAL **: gdk_pixmap_new: assertion `(width != 0) && (height != 0)' failed (script-fu:24612): LibGimpBase-WARNING **: script-fu: wire_read(): error Program exited normally. (gdb)
That's not a stack trace. If you wanted a stack trace, you would have had to ask gdb for it by typing "bt". But anyway, the warning is probably enough information. I will reopen the bug. We should add a check that ensures that we don't attempt to create pixbufs with zero width or height.
After a quick look at the code, I would say that the problem is in GDK. It wouldn't hurt to add a sanity check to the GIMP code, but it seems that the window we are trying to draw on reports a zero size and this should never happen. What version of GTK+ are you using?
I've added code to both branches that should prevent GIMP from crashing if GDK reports zero as drawable size. Closing as FIXED. 2006-08-24 Sven Neumann <sven@gimp.org> * app/display/gimpdisplayshell-preview.c (gimp_display_shell_draw_tri): just return if gdk_drawable_get_size() returns 0 for width or height (bug #340056).