GNOME Bugzilla – Bug 312144
moving a layer more than 2x larger than the image size crashes gimp
Last modified: 2008-01-15 12:58:28 UTC
Steps to reproduce: 1. Create a 50x50 image 2. Create a new layer, 125x125 in size 3. Move layer to the outside of the image, using the "M" tool 4. Profit! No, crash. Stack trace: Program received signal SIGABRT, Aborted. [Switching to Thread -1218090784 (LWP 19636)] 0xffffe410 in ?? () (gdb) (gdb) thread apply all bt
+ Trace 62105
Thread 1 (Thread -1218090784 (LWP 19636))
Other information: * It also happens with smaller layers, but not as easily; you have to shuffle the layer a bit more. * Using gdb makes the crash happen less easily, too. * when running from a terminal, gimp utters those some last words in agony: (gimp:19640): Gimp-Core-CRITICAL **: gimp_drawable_get_sub_preview: assertion `dest_width > 0' failed Gimp-Core-ERROR **: file gimpimage-preview.c: line 281 (gimp_image_get_new_preview): assertion failed: (layer_buf) aborting... gimp: terminated: Aborted (script-fu:19641): LibGimpBase-WARNING **: script-fu: wire_read(): error
Confirming for both 2.2.8 and current CVS.
Thanks for the report. Fixed in both branches: 2005-08-13 Manish Singh <yosh@gimp.org> * app/core/gimpimage-preview.c (gimp_image_get_new_preview): if the offsets of the layer are such that they are just on the border of the image, detect that and bail instead of trying to make a sub-preview with a 0 dimension. Fixes bug #312144.
*** Bug 316350 has been marked as a duplicate of this bug. ***
*** Bug 323225 has been marked as a duplicate of this bug. ***