Crash while Copying a Layer inside a Layer Group
Environment/Versions
- GIMP version: 2.99.16
- Package: flatpak
- Operating System: Linux
Description of the bug
Description: When a selection is made outside a Layer's Boundary, and then the layer is copied, a window pops up - suggesting that GIMP 2.99.16 encountered a Bug.
This happens only when the Layer is inside of a Layer Group. When the Layer is OUTSIDE a Layer Group, things seem fine.
Error: GIMP-CRITICAL: gimp_drawable_edit_clear: assertion 'gimp_item_is_attached (GIMP_ITEM (drawable))' failed
Error Debug Data Report:
Click to expand
GNU Image Manipulation Program version 2.99.16
git-describe: GIMP_2_99_16
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/12.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 --with-tune=generic --enable-deterministic-archives --enable-shared --build=x86_64-bootstrapper-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 --with-tune=generic
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.2.0 (GCC)
# Libraries #
using babl version 0.1.106 (compiled against version 0.1.106)
using GEGL version 0.4.46 (compiled against version 0.4.46)
using GLib version 2.76.3 (compiled against version 2.76.3)
using GdkPixbuf version 2.42.10 (compiled against version 2.42.10)
using GTK+ version 3.24.38 (compiled against version 3.24.38)
using Pango version 1.50.14 (compiled against version 1.50.14)
using Fontconfig version 2.14.1 (compiled against version 2.14.1)
using Cairo version 1.17.8 (compiled against version 1.17.8)
# Flatpak info #
[Application]
name=org.gimp.GIMP
runtime=runtime/org.gnome.Platform/x86_64/44
[Instance]
instance-id=80389808
instance-path=/home/aryan/.var/app/org.gimp.GIMP
app-path=/var/lib/flatpak/app/org.gimp.GIMP/x86_64/beta/fa566e3685de8adae231cbaad64647641f1b06debb6248a1ee78a7c5b307b29e/files
app-commit=fa566e3685de8adae231cbaad64647641f1b06debb6248a1ee78a7c5b307b29e
runtime-path=/var/lib/flatpak/runtime/org.gnome.Platform/x86_64/44/584d7c3e03c7315975c6711d6503622c0b39c109b6faa89254a87d24cf918c6e/files
runtime-commit=584d7c3e03c7315975c6711d6503622c0b39c109b6faa89254a87d24cf918c6e
runtime-extensions=org.gnome.Platform.Locale=4a15233542e10e1cd0ffb1378ae00d08754086e255474c028040361a8af943ab;org.freedesktop.Platform.GL.default=883e807e4ba753885340388442bf13710c10296e38fa83f01f0d6c6010ed09b8;org.gtk.Gtk3theme.Yaru-dark=d4b294293b4367fa158814d79eaf4fa2fb482f1cbf4c3e490acf5f42eb11b59f;org.freedesktop.Platform.VAAPI.Intel=e05c6783a708d3cf867e1bc4e444f2ec3776ba768cae6954aaa23e41edd39196;org.freedesktop.Platform.openh264=bf24f23f3ba385f6e8c9215ed94d979db99814b0b614504a23a6d0751dc5f063;org.freedesktop.Platform.GL.default=4495199d06da9ade8f20876bbc3844aba2b3a1defecfa649fd30805e5f617647
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
GIMP-CRITICAL: gimp_drawable_edit_clear: assertion 'gimp_item_is_attached (GIMP_ITEM (drawable))' failed
Stack trace:
/app/lib/libgimpbase-3.0.so.0(gimp_stack_trace_print+0x44f) [0x7fda21ad441f]
gimp-2.99(gui_message+0x2a1) [0x55dc2c093941]
gimp-2.99(gimp_show_message+0xca) [0x55dc2beed0da]
gimp-2.99(+0x2cd07b) [0x55dc2c05207b]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x26e) [0x7fda214b87ee]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x93) [0x7fda214b8ae3]
gimp-2.99(gimp_edit_copy+0x3b3) [0x55dc2c056b73]
gimp-2.99(edit_copy_cmd_callback+0x74) [0x55dc2c1cf4b4]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x172) [0x7fda215b5442]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x2c5c8) [0x7fda215c95c8]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0xf95) [0x7fda215d0575]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7fda215d0743]
gimp-2.99(+0x38d39e) [0x55dc2c11239e]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(+0xd720a) [0x7fda204d720a]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(gtk_window_activate_key+0x1ad) [0x7fda207a382d]
gimp-2.99(+0x400b13) [0x55dc2c185b13]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(+0xa6c07) [0x7fda204a6c07]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x1865a) [0x7fda215b565a]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x39e) [0x7fda215cf97e]
/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93) [0x7fda215d0743]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(+0x37bad4) [0x7fda2077bad4]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(+0x21fc3f) [0x7fda2061fc3f]
/usr/lib/x86_64-linux-gnu/libgtk-3.so.0(gtk_main_do_event+0x6e6) [0x7fda20621836]
/usr/lib/x86_64-linux-gnu/libgdk-3.so.0(+0x42bc1) [0x7fda20333bc1]
/usr/lib/x86_64-linux-gnu/libgdk-3.so.0(+0x7a00e) [0x7fda2036b00e]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x199) [0x7fda214afd49]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x612a8) [0x7fda214b02a8]
/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x33) [0x7fda214b0343]
/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0(g_application_run+0x1dd) [0x7fda210da35d]
gimp-2.99(app_run+0x1be) [0x55dc2c051e3e]
gimp-2.99(main+0x3a7) [0x55dc2be85c97]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x2954a) [0x7fda1fe2954a]
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x8b) [0x7fda1fe2960b]
gimp-2.99(_start+0x25) [0x55dc2be85e05]
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- Make a Layer Group, create a new Layer INSIDE the Layer Group.
- It does not matter if the Layer has content or not, the Bug appears either way. Select a small region outside the Layer Boundary.
- Try to copy the Layer. This will result in a Bug Window popping up. …
Expected result: When selecting a region outside the Layer Boundary, copy and pasting the Layer should create a new Layer, with the same Layer Boundary size as the Selection. This exact thing happens when the Layer is outside a Layer group. Hence, I expect the same to happen when the Layer is inside a Layer Group.
Actual result: Bug Window pops up.
Additional information
The bug does NOT happen when the Layer is outside a Layer Group. The Bug only appears when the Layer is INSIDE a Layer Group.