Crash after closing canvas
Environment/Versions
- GIMP version:
- Package: Installed from Software app in Fedora.
- Operating System: Linux Fedora
I edited an image and pasted it on a white background. Then I decided to discard it by closing the canvas. Then Gimp crashed. I reopend Gimp and opened the same image and just closed again the canvas and the crash happened again. Description of the bug
Reproduction
Is the bug reproducible? ALways
Reproduction steps:
- Open Gimp.
- Open the image (maybe it happens just with the image I made, not with every image).
- Close the canvas window in which the image is shown, don't close Gimp.
- The crash happens.
…
Expected result: Just the canvas window closes and leaves Gimp open.
Actual result: The canvas window closes, but makes an error show up in a window. Gimp still is open at that moment.
If you have a backtrace for a crash or a warning, paste it here.
GNU Image Manipulation Program version 2.10.36
git-describe: GIMP_2_10_36
Build: unknown rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/14/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-14.0.1-20240411/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none,amdgcn-amdhsa --enable-offload-defaulted --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240411 (Red Hat 14.0.1-0) (GCC)
# Libraries #
using babl version 0.1.106 (compiled against version 0.1.106)
using GEGL version 0.4.48 (compiled against version 0.4.48)
using GLib version 2.80.0 (compiled against version 2.80.0)
using GdkPixbuf version 2.42.10 (compiled against version 2.42.10)
using GTK+ version 2.24.33 (compiled against version 2.24.33)
using Pango version 1.52.2 (compiled against version 1.52.2)
using Fontconfig version 2.15.0 (compiled against version 2.15.0)
using Cairo version 1.18.0 (compiled against version 1.18.0)
# Flatpak info #
[Application]
name=org.gimp.GIMP
runtime=runtime/org.fedoraproject.Platform/x86_64/f40
[Instance]
instance-id=3059594769
instance-path=/home/ophof_jho/.var/app/org.gimp.GIMP
app-path=/var/lib/flatpak/app/org.gimp.GIMP/x86_64/stable/889d9b3da77062784f55596c0d11c43d50cfa203d2f4545c400674db63e89c9c/files
app-commit=889d9b3da77062784f55596c0d11c43d50cfa203d2f4545c400674db63e89c9c
runtime-path=/var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f40/49985e4ca19b7673845aef187a93c0cb8c3204a84a413d093b85e7938cd85ed9/files
runtime-commit=49985e4ca19b7673845aef187a93c0cb8c3204a84a413d093b85e7938cd85ed9
branch=stable
arch=x86_64
flatpak-version=1.15.8
session-bus-proxy=true
system-bus-proxy=true
[Context]
shared=network;ipc;
sockets=x11;
devices=dri;
filesystems=xdg-config/GIMP;xdg-config/gtk-3.0;/tmp;xdg-run/gvfsd;host;xdg-run/gvfs;
[Session Bus Policy]
org.kde.kwin.Screenshot=talk
org.gtk.vfs.*=talk
org.gnome.Shell.Screenshot=talk
org.freedesktop.FileManager1=talk
[Environment]
GI_TYPELIB_PATH=/app/lib64/girepository-1.0
GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/gstreamer-1.0
LD_LIBRARY_PATH=/app/lib64
PATH=/app/sbin:/app/bin:/usr/sbin:/usr/bin
XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
PINENTRY_BINARY=/usr/bin/pinentry-gnome3
fatal error: Segmentation fault
Stack trace:
/app/lib64/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x4e1)[0x7f5f396a1da1]
gimp-2.10(+0xf3bff)[0x55ed28677bff]
gimp-2.10(+0xf3fbc)[0x55ed28677fbc]
gimp-2.10(+0xf400e)[0x55ed2867800e]
/lib64/libc.so.6(+0x40710)[0x7f5f3837b710]
/lib64/libgtk-x11-2.0.so.0(+0x8d058)[0x7f5f3928d058]
/lib64/libgtk-x11-2.0.so.0(gtk_button_set_label+0x5d)[0x7f5f3928e09d]
/lib64/libgobject-2.0.so.0(+0x2259a)[0x7f5f387c159a]
/lib64/libgobject-2.0.so.0(g_object_set_valist+0x1e6)[0x7f5f387c4926]
/lib64/libgobject-2.0.so.0(g_object_set+0xbb)[0x7f5f387c4dbb]
gimp-2.10(+0x146285)[0x55ed286ca285]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41013)[0x7f5f387e0013]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
gimp-2.10(gimp_container_remove+0xf3)[0x55ed28970dc3]
gimp-2.10(+0x46e5ac)[0x55ed289f25ac]
gimp-2.10(gimp_container_clear+0x64)[0x55ed28970924]
gimp-2.10(+0x3edbb5)[0x55ed28971bb5]
/lib64/libgobject-2.0.so.0(g_object_unref+0x1b8)[0x7f5f387bf8e8]
gimp-2.10(+0x14414e)[0x55ed286c814e]
/lib64/libgobject-2.0.so.0(+0x1b477)[0x7f5f387ba477]
/lib64/libglib-2.0.so.0(+0x3c507)[0x7f5f3868e507]
/lib64/libgobject-2.0.so.0(+0x1d6cb)[0x7f5f387bc6cb]
/lib64/libgobject-2.0.so.0(g_object_run_dispose+0x38)[0x7f5f387bfa58]
gimp-2.10(+0x145baf)[0x55ed286c9baf]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41013)[0x7f5f387e0013]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41013)[0x7f5f387e0013]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgtk-x11-2.0.so.0(+0x8d259)[0x7f5f3928d259]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41140)[0x7f5f387e0140]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgtk-x11-2.0.so.0(+0x8da99)[0x7f5f3928da99]
/lib64/libgtk-x11-2.0.so.0(+0x143074)[0x7f5f39343074]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x415f0)[0x7f5f387e05f0]
/lib64/libgobject-2.0.so.0(+0x31519)[0x7f5f387d0519]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgtk-x11-2.0.so.0(+0x282794)[0x7f5f39482794]
/lib64/libgtk-x11-2.0.so.0(gtk_propagate_event+0x15b)[0x7f5f39346c7b]
/lib64/libgtk-x11-2.0.so.0(gtk_main_do_event+0x34b)[0x7f5f393402bb]
/lib64/libgdk-x11-2.0.so.0(+0x681ee)[0x7f5f391a91ee]
/lib64/libglib-2.0.so.0(+0x5c68c)[0x7f5f386ae68c]
/lib64/libglib-2.0.so.0(+0xbd788)[0x7f5f3870f788]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x77)[0x7f5f386b4647]
gimp-2.10(app_run+0x360)[0x55ed2867c630]
gimp-2.10(main+0x362)[0x55ed28672482]
/lib64/libc.so.6(+0x2a088)[0x7f5f38365088]
/lib64/libc.so.6(__libc_start_main+0x8b)[0x7f5f3836514b]
gimp-2.10(_start+0x25)[0x55ed28672615]
GNU Image Manipulation Program version 2.10.36
git-describe: GIMP_2_10_36
Build: unknown rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/14/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-14.0.1-20240411/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none,amdgcn-amdhsa --enable-offload-defaulted --without-cuda-driver --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240411 (Red Hat 14.0.1-0) (GCC)
# Libraries #
using babl version 0.1.106 (compiled against version 0.1.106)
using GEGL version 0.4.48 (compiled against version 0.4.48)
using GLib version 2.80.0 (compiled against version 2.80.0)
using GdkPixbuf version 2.42.10 (compiled against version 2.42.10)
using GTK+ version 2.24.33 (compiled against version 2.24.33)
using Pango version 1.52.2 (compiled against version 1.52.2)
using Fontconfig version 2.15.0 (compiled against version 2.15.0)
using Cairo version 1.18.0 (compiled against version 1.18.0)
# Flatpak info #
[Application]
name=org.gimp.GIMP
runtime=runtime/org.fedoraproject.Platform/x86_64/f40
[Instance]
instance-id=3059594769
instance-path=/home/ophof_jho/.var/app/org.gimp.GIMP
app-path=/var/lib/flatpak/app/org.gimp.GIMP/x86_64/stable/889d9b3da77062784f55596c0d11c43d50cfa203d2f4545c400674db63e89c9c/files
app-commit=889d9b3da77062784f55596c0d11c43d50cfa203d2f4545c400674db63e89c9c
runtime-path=/var/lib/flatpak/runtime/org.fedoraproject.Platform/x86_64/f40/49985e4ca19b7673845aef187a93c0cb8c3204a84a413d093b85e7938cd85ed9/files
runtime-commit=49985e4ca19b7673845aef187a93c0cb8c3204a84a413d093b85e7938cd85ed9
branch=stable
arch=x86_64
flatpak-version=1.15.8
session-bus-proxy=true
system-bus-proxy=true
[Context]
shared=network;ipc;
sockets=x11;
devices=dri;
filesystems=xdg-config/GIMP;xdg-config/gtk-3.0;/tmp;xdg-run/gvfsd;host;xdg-run/gvfs;
[Session Bus Policy]
org.kde.kwin.Screenshot=talk
org.gtk.vfs.*=talk
org.gnome.Shell.Screenshot=talk
org.freedesktop.FileManager1=talk
[Environment]
GI_TYPELIB_PATH=/app/lib64/girepository-1.0
GST_PLUGIN_SYSTEM_PATH=/app/lib64/gstreamer-1.0:/usr/lib64/gstreamer-1.0
LD_LIBRARY_PATH=/app/lib64
PATH=/app/sbin:/app/bin:/usr/sbin:/usr/bin
XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
PINENTRY_BINARY=/usr/bin/pinentry-gnome3
fatal error: Segmentation fault
Stack trace:
/app/lib64/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x4e1)[0x7f5f396a1da1]
gimp-2.10(+0xf3bff)[0x55ed28677bff]
gimp-2.10(+0xf3fbc)[0x55ed28677fbc]
gimp-2.10(+0xf400e)[0x55ed2867800e]
/lib64/libc.so.6(+0x40710)[0x7f5f3837b710]
/lib64/libgtk-x11-2.0.so.0(+0x8d058)[0x7f5f3928d058]
/lib64/libgtk-x11-2.0.so.0(gtk_button_set_label+0x5d)[0x7f5f3928e09d]
/lib64/libgobject-2.0.so.0(+0x2259a)[0x7f5f387c159a]
/lib64/libgobject-2.0.so.0(g_object_set_valist+0x1e6)[0x7f5f387c4926]
/lib64/libgobject-2.0.so.0(g_object_set+0xbb)[0x7f5f387c4dbb]
gimp-2.10(+0x146285)[0x55ed286ca285]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41013)[0x7f5f387e0013]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
gimp-2.10(gimp_container_remove+0xf3)[0x55ed28970dc3]
gimp-2.10(+0x46e5ac)[0x55ed289f25ac]
gimp-2.10(gimp_container_clear+0x64)[0x55ed28970924]
gimp-2.10(+0x3edbb5)[0x55ed28971bb5]
/lib64/libgobject-2.0.so.0(g_object_unref+0x1b8)[0x7f5f387bf8e8]
gimp-2.10(+0x14414e)[0x55ed286c814e]
/lib64/libgobject-2.0.so.0(+0x1b477)[0x7f5f387ba477]
/lib64/libglib-2.0.so.0(+0x3c507)[0x7f5f3868e507]
/lib64/libgobject-2.0.so.0(+0x1d6cb)[0x7f5f387bc6cb]
/lib64/libgobject-2.0.so.0(g_object_run_dispose+0x38)[0x7f5f387bfa58]
gimp-2.10(+0x145baf)[0x55ed286c9baf]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41013)[0x7f5f387e0013]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41013)[0x7f5f387e0013]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgtk-x11-2.0.so.0(+0x8d259)[0x7f5f3928d259]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x41140)[0x7f5f387e0140]
/lib64/libgobject-2.0.so.0(+0x31cb4)[0x7f5f387d0cb4]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgtk-x11-2.0.so.0(+0x8da99)[0x7f5f3928da99]
/lib64/libgtk-x11-2.0.so.0(+0x143074)[0x7f5f39343074]
/lib64/libgobject-2.0.so.0(g_closure_invoke+0x14a)[0x7f5f387b05da]
/lib64/libgobject-2.0.so.0(+0x415f0)[0x7f5f387e05f0]
/lib64/libgobject-2.0.so.0(+0x31519)[0x7f5f387d0519]
/lib64/libgobject-2.0.so.0(g_signal_emit_valist+0x41)[0x7f5f387d0f11]
/lib64/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f5f387d0fd3]
/lib64/libgtk-x11-2.0.so.0(+0x282794)[0x7f5f39482794]
/lib64/libgtk-x11-2.0.so.0(gtk_propagate_event+0x15b)[0x7f5f39346c7b]
/lib64/libgtk-x11-2.0.so.0(gtk_main_do_event+0x34b)[0x7f5f393402bb]
/lib64/libgdk-x11-2.0.so.0(+0x681ee)[0x7f5f391a91ee]
/lib64/libglib-2.0.so.0(+0x5c68c)[0x7f5f386ae68c]
/lib64/libglib-2.0.so.0(+0xbd788)[0x7f5f3870f788]
/lib64/libglib-2.0.so.0(g_main_loop_run+0x77)[0x7f5f386b4647]
gimp-2.10(app_run+0x360)[0x55ed2867c630]
gimp-2.10(main+0x362)[0x55ed28672482]
/lib64/libc.so.6(+0x2a088)[0x7f5f38365088]
/lib64/libc.so.6(__libc_start_main+0x8b)[0x7f5f3836514b]
gimp-2.10(_start+0x25)[0x55ed28672615]