GNOME Bugzilla – Bug 793360
Error when copy-pasting and then trying to do . . . something
Last modified: 2018-02-10 23:03:04 UTC
The following lines came from the new automatic bug report popup. Normally I would drag-n-drop the new layer instead of copy-pasting, but I don't know how to drag-n-drop in SWM, so I've been copy-pasting. Usually first I make a blank layer and then "anchor" the pasted stuff to the blank layer. This time I tried one of the other options in the Edit menu, maybe "Paste in place". Truthfully I don't understand the various ways to copy something from one image and paste it into another. Anyway, here's the content of the bug report popup: GNU Image Manipulation Program version 2.9.9 git-describe: GIMP_2_9_8-413-g0ac29c0b61 C compiler: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/6.4.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-6.4.0-r1/work/gcc-6.4.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/6.4.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.4.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.4.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/6.4.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/include/g++-v6 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/6.4.0/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 6.4.0-r1 p1.3' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --with-multilib-list=m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --disable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --without-isl --enable-libsanitizer --enable-default-pie --enable-default-ssp Thread model: posix gcc version 6.4.0 (Gentoo 6.4.0-r1 p1.3) using GEGL version 0.3.29 (compiled against version 0.3.29) using GLib version 2.55.0 (compiled against version 2.55.0) using GdkPixbuf version 2.36.11 (compiled against version 2.36.11) using GTK+ version 2.24.31 (compiled against version 2.24.31) using Pango version 1.40.14 (compiled against version 1.40.14) using Fontconfig version 2.12.4 (compiled against version 2.12.4) using Cairo version 1.14.8 (compiled against version 1.14.8) > GIMP-Error: file gimp-edit.c: line 249 (gimp_edit_paste_get_layer): should not be reached Stack trace: [New LWP 2444] [New LWP 2445] [New LWP 2731] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x00007f9dd82a655c in waitpid () from /lib64/libpthread.so.0
+ Trace 238385
Confirmed. This was happening with any of the "in place" pasting variant when copying a full layer (without any active selection; with selections, the code path was different). Now fixed. commit da3baa1cabd16cdcb1ed2695dd5013ca1de1a563 (HEAD -> master, origin/master, origin/HEAD) Author: Jehan <jehan@girinstud.io> Date: Sat Feb 10 23:46:58 2018 +0100 Bug 793360 - Error when copy-pasting in place a full layer. In a switch(), not all paste type were listed (the new "In Place" versions in particular were missing), therefore we were hitting a g_return_val_if_reached() error. app/core/gimp-edit.c | 3 +++ 1 file changed, 3 insertions(+)
I realized there was also another piece of code to fix, even though this one was not raising any error: commit a5bc153343469f64f1ac4438f210dbdd49dbc7fa (HEAD -> master, origin/master, origin/HEAD) Author: Jehan <jehan@girinstud.io> Date: Sat Feb 10 23:57:45 2018 +0100 app: fix a second switch with missing paste types. Completing previous commit, the next switch was not raising any error, but I believe the new "in place" variants of paste as floating selection also have to be processed for mask removal.