Selecting and copying a selection leads to crash
GIMP version:
GNU Image Manipulation Program version 2.10.6
git-describe: GIMP_2_10_4-278-g0a8173ffde
C compiler:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=
https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --
enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enabl
e-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --
enable-default-pie --enable-default-ssp --enable-cet=auto
Thread model: posix
gcc version 8.2.1 20180831 (GCC)
using GEGL version 0.4.8 (compiled against version 0.4.8)
using GLib version 2.58.0 (compiled against version 2.58.0)
using GdkPixbuf version 2.38.0 (compiled against version 2.38.0)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.42.3 (compiled against version 1.42.3)
using Fontconfig version 2.13.0 (compiled against version 2.13.0)
using Cairo version 1.15.12 (compiled against version 1.15.12)
Operating System: Antergos Linux (Arch Linux based), kernel 4.14.70-1-lts
Package: extra/gimp 2.10.6-2 from official Arch Linux repository
Description of the bug
Selecting an area and copying or cutting leads to a consistent crashes.
Reproduction
Bug is consistently reproducible.
Reproduction steps:
- select an area with area selection tool
- copy or cut
Or:
- select a very small area with area selection tool
- copy or cut (it will not crash)
- repeat, until it crashes
Additional information
clipboard: writable pixbuf format: image/png
clipboard: writable pixbuf format: image/bmp
clipboard: writable pixbuf format: image/x-bmp
clipboard: writable pixbuf format: image/x-MS-bmp
clipboard: writable pixbuf format: image/x-icon
clipboard: writable pixbuf format: image/x-ico
clipboard: writable pixbuf format: image/x-win-bitmap
clipboard: writable pixbuf format: image/vnd.microsoft.icon
clipboard: writable pixbuf format: application/ico
clipboard: writable pixbuf format: image/ico
clipboard: writable pixbuf format: image/icon
clipboard: writable pixbuf format: text/ico
clipboard: writable pixbuf format: image/tiff
clipboard: writable pixbuf format: image/jpeg
(...)
*WARNING* missing babl fast path(s): "R'G'B'A u8" to "A u8"
clipboard: sending pixbuf data as 'image/png'
clipboard: sending pixbuf data as 'image/png'
clipboard: sending pixbuf data as 'image/png'
clipboard: sending pixbuf data as 'image/png'
clipboard: sending pixbuf data as 'image/png'
clipboard: sending pixbuf data as 'image/png'
clipboard: sending pixbuf data as 'image/png'
clipboard: sending pixbuf data as 'image/png'
The program 'gimp' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 81255 error_code 3 request_code 18 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
(script-fu:19375): LibGimpBase-WARNING **: 03:50:02.744: script-fu: gimp_wire_read(): error
Note that the "serial" changes everytime I reproduce this crash. I have no clipboard manager running at all. I use i3 window manager and it used to work just fine until recently. I can't get a GDB backtrace since the program seems to exit and not really crash.
The following picture is an example which crashes easily (file most likely not created in GIMP):
For some strange reason, the following file doesn't crash no matter what I try! (note that this file was created in GIMP) (
A similar bug report has been made here: #1229 (closed) but the explanation confused me.
I still have 12GB of unused RAM, so this probably not an out of memory problem as suggested here: https://bbs.archlinux.org/viewtopic.php?pid=1758200#p1758200