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 340056 - GIMP Crashes While Performing an Arbitrary Rotation of a layer.
GIMP Crashes While Performing an Arbitrary Rotation of a layer.
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: Tools
2.2.x
Other Mac OS
: Normal critical
: 2.2
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2006-04-28 19:27 UTC by magickair
Modified: 2008-01-15 13:07 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description magickair 2006-04-28 19:27:36 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
Comment 1 Carol 2006-04-28 20:30:00 UTC
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?
Comment 2 Michael Schumacher 2006-05-01 19:59:27 UTC
The answer to Carol's question should go into comment, not the summary.
Comment 3 magickair 2006-05-01 20:02:55 UTC
(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. 
Comment 4 magickair 2006-05-01 20:05:06 UTC
(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).
Comment 5 Sven Neumann 2006-05-02 07:06:36 UTC
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?
Comment 6 Michael Schumacher 2006-08-05 09:53:18 UTC
magickair, we are waiting for a reply.
Comment 7 magickair 2006-08-23 19:46:06 UTC
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. 
Comment 8 magickair 2006-08-23 20:02:24 UTC
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) 
Comment 9 Sven Neumann 2006-08-24 06:03:28 UTC
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.
Comment 10 Sven Neumann 2006-08-24 06:37:37 UTC
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?
Comment 11 Sven Neumann 2006-08-24 09:17:49 UTC
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).