Gimp crash while closing the app
Environment/Versions
- GIMP version: 2.99.12
- Package: flatpak
- Operating System: Linux (Fedora 36)
Description of the bug
I edited several JPG images on a USB flash drive by right-clicking each in Dolphin and choosing Open With > (beta) GNU Image Manipulation Program. After editing each with no issues (great program!) and Exporting as JPEG back to the USB flash drive, I closed each image in GIMP discarding changes, so that GIMP showed its blank "Unstable Development Version" window, then closed GIMP itself (I can't remember how, probably the (x) icon in the title bar). GIMP went away but the GIMP Crash Debug window appeared, so here I am. The crash stack trace includes file_save_dialog_save_image
, so maybe I was discarding the last image or had a stray export JPEG dialog open, but again I'm pretty sure I remember seeing the blank "Unstable Development Version" window.
Reproduction
Is the bug reproducible? Happened only once. I tried again editing two images with no crash. I will update this bug if it happens again.
Reproduction steps:
- Retry description above?
Expected result: no crash
Actual result: crash
Additional information
I closed GIMP because I couldn't "safely remove" the USB flash drive because the cwd of GIMP (and bwrap, xdg-dbug, file-jpeg, and script-fu according to lsof
) was the directory on the USB flash drive, probably the way "Open With" works. But the USB flash drive was still mounted.
Here's the GIMP Crash Debug info:
GNU Image Manipulation Program version 2.99.12
git-describe: GIMP_2_99_12
Build: org.gimp.GIMP.flatpak.dev rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-unknown-linux-gnu/11.3.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 11.3.0 (GCC)
# Libraries #
using babl version 0.1.92 (compiled against version 0.1.92)
using GEGL version 0.4.38 (compiled against version 0.4.38)
using GLib version 2.72.4 (compiled against version 2.72.3)
using GdkPixbuf version 2.42.9 (compiled against version 2.42.9)
using GTK+ version 3.24.34 (compiled against version 3.24.34)
using Pango version 1.50.11 (compiled against version 1.50.8)
using Fontconfig version 2.13.1 (compiled against version 2.13.1)
using Cairo version 1.17.6 (compiled against version 1.17.6)
# Flatpak info #
[Application]
name=org.gimp.GIMP
runtime=runtime/org.gnome.Platform/x86_64/42
[Instance]
instance-id=3668370218
instance-path=/home/spage/.var/app/org.gimp.GIMP
app-path=/var/lib/flatpak/app/org.gimp.GIMP/x86_64/beta/fc43a98fcaa945e7d6590d034f0a1b80824573909e3fc4e4932db4b1f831398b/files
app-commit=fc43a98fcaa945e7d6590d034f0a1b80824573909e3fc4e4932db4b1f831398b
runtime-path=/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/42/a7cca4febd67a0644df0770c2e0f6328bc509ecccb2dd1532308ff42da30e502/files
runtime-commit=a7cca4febd67a0644df0770c2e0f6328bc509ecccb2dd1532308ff42da30e502
runtime-extensions=org.gnome.Platform.Locale=b64ea16bc911a3018bafe3a44c3f43b6ba17e84c4b2b136e88ed259eef9acd59;org.freedesktop.Platform.GL.default=927c51d661eb70910a3a51e3e05e923cbaadd2c8be77f0bd7fedb18b9c079ce7;org.freedesktop.Platform.VAAPI.Intel=22521e76f9717b19be38e431b8794224bf845d87430e3a3ec9009230f741242d;org.freedesktop.Platform.openh264=73f998362a6fc0d57e0c7e83e928d32b0ec14d10d0d94291033976bdcecc6b6b
branch=beta
arch=x86_64
flatpak-version=1.12.7
session-bus-proxy=true
system-bus-proxy=true
[Context]
shared=network;ipc;
sockets=x11;wayland;fallback-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]
ALSA_CONFIG_PATH=/usr/share/alsa/alsa-flatpak.conf
GI_TYPELIB_PATH=/app/lib/girepository-1.0
GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/usr/lib/extensions/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0
XDG_DATA_DIRS=/app/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share
ALSA_CONFIG_DIR=/usr/share/alsa
__EGL_EXTERNAL_PLATFORM_CONFIG_DIRS=/etc/egl/egl_external_platform.d:/usr/lib/x86_64-linux-gnu/GL/egl/egl_external_platform.d:/usr/share/egl/egl_external_platform.d
fatal error: Segmentation fault
Stack trace:
/app/lib/libgimpbase-3.0.so.0(gimp_stack_trace_print+0x417)[0x7fa7f1d3c557]
gimp-2.99(+0x1050d4)[0x55e0cc0090d4]
gimp-2.99(+0x1054fc)[0x55e0cc0094fc]
gimp-2.99(+0x10771e)[0x55e0cc00b71e]
/usr/lib/x86_64-linux-gnu/libpthread.so.0(+0x12e60)[0x7fa7f0316e60]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_type_check_instance_is_fundamentally_a+0x11)[0x7fa7f1b37bc1]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_object_unref+0x22)[0x7fa7f1b18cf2]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_value_unset+0x30)[0x7fa7f1b3ad60]
/app/lib/libgimpbase-3.0.so.0(gimp_value_array_unref+0x5d)[0x7fa7f1d3cc2d]
gimp-2.99(gimp_pdb_execute_procedure_by_name+0x81d)[0x55e0cc319f4d]
gimp-2.99(file_save+0x67d)[0x55e0cc24969d]
gimp-2.99(file_save_dialog_save_image+0xb6)[0x55e0cc393676]
gimp-2.99(+0x48fdf4)[0x55e0cc393df4]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x179)[0x7fa7f1b13569]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2af1f)[0x7fa7f1b26f1f]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x110f)[0x7fa7f1b2df3f]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7fa7f1b2e093]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x17798)[0x7fa7f1b13798]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x104b)[0x7fa7f1b2de7b]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7fa7f1b2e093]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(+0xf6f22)[0x7fa7f0af6f22]
/usr/lib/x86_64-linux-gnu/libgdk-3.so.0(+0x35cdd)[0x7fa7f0929cdd]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x5aa09)[0x7fa7f161ca09]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x19b)[0x7fa7f161bcdb]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x5a1e8)[0x7fa7f161c1e8]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x83)[0x7fa7f161c503]
gimp-2.99(app_run+0x37c)[0x55e0cc0088cc]
gimp-2.99(main+0x3a7)[0x55e0cc006057]
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fa7f0147b80]
gimp-2.99(_start+0x2e)[0x55e0cc0061be]