Crash while using the Free Selection tool
Environment/Versions
- GIMP version: 2.10.24
- Package: flatpak
- Operating System: Linux, Lubuntu 16.04 64-bit
Description of the bug
While using the Free Selection tool, GIMP crashed as I clicked to place down a point in the lasso. This has happened a few times in the past, but I cannot find a reliable way to reproduce it. Sometimes it brings up the crash report, but other times it just freezes and I have to kill the process.
Reproduction
Is the bug reproducible? Randomly
I can only think of the following that might help debug this problem:
- When it happens, I'm editing a screenshot or drawing, and using the Free Selection tool to select the lines around characters, scenery, etc. In other words, in a given GIMP session, I can end up using the tool many times. Each time I use it, I can also select anywhere from a small region of pixels, in a couple of clicks, to very elaborate shapes spanning over several megapixels, with many clicks, and even some free-form mouse drag shape drawings. So maybe it's a memory leak of sorts?
- I've had crashes where I never once used the mouse drag feature of the tool, and instead only used clicks, so I don't think it's the mouse drag feature's fault.
- I usually swap to the tool via the F key, and I rarely use the modifier keys to add or subtract from the selection.
- It never happened on the very first click of a new lasso selection.
Expected result: No crash, and the border of the lasso would use the place I clicked.
Actual result: GIMP either crashes, or freezes and I have to kill the process.
Additional information
GNU Image Manipulation Program version 2.10.24
git-describe: GIMP_2_10_24
Build: org.gimp.GIMP.flatpak.stable rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/10.2.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/bin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --enable-deterministic-archives --enable-shared --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu --target=x86_64-unknown-linux-gnu --disable-multilib --enable-multiarch --disable-bootstrap --with-build-sysroot=/cross-installation --enable-languages=c,c++,fortran,objc,obj-c++ --enable-default-pie --enable-default-ssp --with-isl --disable-libssp --enable-linker-build-id --disable-libstdcxx-filesystem-ts --enable-cet host_configargs=lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu target_configargs=lt_cv_sys_lib_dlsearch_path_spec=/usr/lib/x86_64-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 10.2.0 (GCC)
# Libraries #
using babl version 0.1.86 (compiled against version 0.1.86)
using GEGL version 0.4.30 (compiled against version 0.4.30)
using GLib version 2.68.0 (compiled against version 2.68.0)
using GdkPixbuf version 2.42.4 (compiled against version 2.42.4)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.48.4 (compiled against version 1.48.4)
using Fontconfig version 2.13.1 (compiled against version 2.13.1)
using Cairo version 1.16.0 (compiled against version 1.16.0)
# Flatpak info #
[Application]
name=org.gimp.GIMP
runtime=runtime/org.gnome.Platform/x86_64/40
[Instance]
instance-id=1189512729
instance-path=/home/andre/.var/app/org.gimp.GIMP
app-path=/var/lib/flatpak/app/org.gimp.GIMP/x86_64/stable/d7a1c639e935d4db49b6b6fcfa11face2689943933f40bde6adb4645730259e9/files
app-commit=d7a1c639e935d4db49b6b6fcfa11face2689943933f40bde6adb4645730259e9
app-extensions=org.gimp.GIMP.Manual=1a0a3b85b68d482998cf8044ddfc56dca74916fb9471257d94bc4ff6f8795800
runtime-path=/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/40/ce4da032c927ce7ea4fbfa63634a46931c026af764553225f7aaaf8a1e355419/files
runtime-commit=ce4da032c927ce7ea4fbfa63634a46931c026af764553225f7aaaf8a1e355419
runtime-extensions=org.gnome.Platform.Locale=15f5687916906d2e6ad506bfd377c5389c52c487a00f28a3c76b5480df5275ea;org.freedesktop.Platform.GL.default=a8cd0baae1a84acb238c96ee35a7a4fed2633173061a642b2157600ed962b668;org.freedesktop.Platform.GL.nvidia-384-130=feead22d38f41076a96b666d343c75823df480278155c4e66993f6bfc56e0f8d;org.freedesktop.Platform.openh264=73f998362a6fc0d57e0c7e83e928d32b0ec14d10d0d94291033976bdcecc6b6b
branch=stable
arch=x86_64
flatpak-version=1.3.1
session-bus-proxy=true
system-bus-proxy=true
[Context]
shared=network;ipc;
sockets=x11;
devices=dri;
filesystems=host;xdg-config/GIMP;/tmp;xdg-config/gtk-3.0;xdg-run/gvfsd;xdg-run/gvfs;
[Session Bus Policy]
org.freedesktop.FileManager1=talk
org.gtk.vfs.*=talk
org.gtk.vfs=talk
[Environment]
GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
GI_TYPELIB_PATH=/app/lib/girepository-1.0
ALSA_CONFIG_DIR=/usr/share/alsa
XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
ALSA_CONFIG_PATH=/usr/share/alsa/alsa-flatpak.conf
fatal error: Abortado
Stack trace:
/app/lib/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x397)[0x7f1ad0aa5d67]
gimp-2.10(+0xfe63a)[0x56161633e63a]
gimp-2.10(gimp_fatal_error+0x1d)[0x56161633ea0d]
gimp-2.10(+0xff09f)[0x56161633f09f]
/usr/lib/x86_64-linux-gnu/libpthread.so.0(+0x13a6f)[0x7f1ad0459a6f]
/usr/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x145)[0x7f1acfd4e7f5]
/usr/lib/x86_64-linux-gnu/libc.so.6(abort+0x126)[0x7f1acfd37854]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x22728)[0x7f1acfd37728]
/usr/lib/x86_64-linux-gnu/libc.so.6(__assert_fail+0x45)[0x7f1acfd46e55]
/usr/lib/x86_64-linux-gnu/libX11.so.6(+0x48912)[0x7f1acfaf4912]
/usr/lib/x86_64-linux-gnu/libX11.so.6(+0x489bc)[0x7f1acfaf49bc]
/usr/lib/x86_64-linux-gnu/libX11.so.6(_XEventsQueued+0x59)[0x7f1acfaf4cb9]
/usr/lib/x86_64-linux-gnu/libX11.so.6(XPending+0x60)[0x7f1acfae65a0]
/app/lib/libgdk-x11-2.0.so.0(+0x628ca)[0x7f1ad0b778ca]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_check+0x240)[0x7f1ad00e1b10]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x580a4)[0x7f1ad00e20a4]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x82)[0x7f1ad00e2482]
gimp-2.10(app_run+0x36f)[0x56161633ddcf]
gimp-2.10(main+0x37d)[0x56161633d69d]
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7f1acfd39061]
gimp-2.10(_start+0x2d)[0x56161633d82d]