snapcrafters / gimp

Unofficial GNU Image Manipulation Program (GIMP) installer for Linux
https://snapcraft.io/gimp
MIT License
51 stars 24 forks source link

[Bug]: Crashed on window switch #236

Open eewanco opened 1 year ago

eewanco commented 1 year ago

What happened?

I had just done an image properties information, followed by a metadata view, and shifted to another application to do some work. I then went back to use GIMP again and clicked on the window, and it disappeared with a crash. I had I believe two images open when this happened. I am pretty sure I clicked on a random spot within the window. I do not know which tool was active. It was a .PPM file, which I tried to attach here, but the bug tracker refuses to support it.

What should have happened?

When I clicked on GIMP it should have switched the keyboard focus

Output of snap info $snap_name

name:      gimp
summary:   GNU Image Manipulation Program
publisher: Snapcrafters✪
store-url: https://snapcraft.io/gimp
contact:   https://github.com/snapcrafters/gimp/issues
license:   unset
description: |
  Whether you are a graphic designer, photographer, illustrator, or scientist, GIMP provides you
  with sophisticated tools to get your job done. You can further enhance your productivity with GIMP
  thanks to many customization options and 3rd party plugins.

  This snap is maintained by the Snapcrafters community, and is not necessarily endorsed or
  officially maintained by the upstream developers.

  Upstream Project: https://www.gimp.org/
  snapcraft.yaml Build Definition:
  https://github.com/snapcrafters/gimp/blob/master/snap/snapcraft.yaml
commands:
  - gimp
snap-id:      KDHYbyuzZukmLhiogKiUksByRhXD2gYV
tracking:     latest/stable
refresh-date: 2023-05-30
channels:
  latest/stable:     2.10.30 2022-08-19 (393) 546MB -
  latest/candidate:  ↑                              
  latest/beta:       ↑                              
  latest/edge:       2.10.32 2022-08-23 (399) 547MB -
  preview/stable:    –                              
  preview/candidate: –                              
  preview/beta:      –                              
  preview/edge:      2.99.10 2022-08-17 (397) 650MB -
installed:           2.10.30            (393) 546MB -

Output of snap connections $snap_name

Interface                 Plug                  Slot                              Notes
browser-support           gimp:browser-support  :browser-support                  -
content[gnome-3-38-2004]  gimp:gnome-3-38-2004  gnome-3-38-2004:gnome-3-38-2004   -
content[gtk-2-engines]    gimp:gtk-2-engines    gtk2-common-themes:gtk-2-engines  -
content[gtk-3-themes]     gimp:gtk-3-themes     gtk-common-themes:gtk-3-themes    -
content[icon-themes]      gimp:icon-themes      gtk-common-themes:icon-themes     -
content[sound-themes]     gimp:sound-themes     gtk-common-themes:sound-themes    -
cups-control              gimp:cups-control     -                                 -
dbus                      -                     gimp:dbus-gimp                    -
desktop                   gimp:desktop          :desktop                          -
desktop-legacy            gimp:desktop-legacy   :desktop-legacy                   -
gsettings                 gimp:gsettings        :gsettings                        -
home                      gimp:home             :home                             -
network                   gimp:network          :network                          -
opengl                    gimp:opengl           :opengl                           -
removable-media           gimp:removable-media  -                                 -
unity7                    gimp:unity7           :unity7                           -
wayland                   gimp:wayland          :wayland                          -
x11                       gimp:x11              :x11                              -

Output of snap version

snap    2.59.5
snapd   2.59.5
series  16
ubuntu  20.04
kernel  5.15.0-76-generic

Relevant log output

[450745.566125] audit: type=1400 audit(1690834549.810:38426): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/etc/fstab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450745.572482] audit: type=1400 audit(1690834549.814:38427): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450745.626435] audit: type=1400 audit(1690834549.870:38428): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450745.645776] audit: type=1400 audit(1690834549.890:38429): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450753.328365] audit: type=1326 audit(1690834557.570:38430): auid=645083918 uid=645083918 gid=600260513 ses=4 subj=snap.gimp.gimp pid=3371515 comm="file-jpeg" exe="/usr/lib/gimp/2.0/plug-ins/file-jpeg/file-jpeg" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7ff0a2a2873d code=0x50000
[450753.518769] audit: type=1326 audit(1690834557.762:38431): auid=645083918 uid=645083918 gid=600260513 ses=4 subj=snap.gimp.gimp pid=3371531 comm="file-jpeg" exe="/usr/lib/gimp/2.0/plug-ins/file-jpeg/file-jpeg" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7f96d2b3473d code=0x50000
[450764.499452] audit: type=1400 audit(1690834568.742:38432): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450764.538973] audit: type=1326 audit(1690834568.782:38433): auid=645083918 uid=645083918 gid=600260513 ses=4 subj=snap.gimp.gimp pid=3371587 comm="file-jpeg" exe="/usr/lib/gimp/2.0/plug-ins/file-jpeg/file-jpeg" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fe6b5f8973d code=0x50000
[450792.067785] audit: type=1400 audit(1690834596.310:38434): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/etc/fstab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450792.073075] audit: type=1400 audit(1690834596.314:38435): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450792.095880] audit: type=1400 audit(1690834596.338:38436): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450792.107221] audit: type=1400 audit(1690834596.350:38437): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450817.542579] audit: type=1400 audit(1690834621.786:38438): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3371679/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[450817.543774] audit: type=1400 audit(1690834621.786:38439): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3371680/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[450827.036742] audit: type=1326 audit(1690834631.278:38440): auid=645083918 uid=645083918 gid=600260513 ses=4 subj=snap.gimp.gimp pid=3371683 comm="file-pnm" exe="/usr/lib/gimp/2.0/plug-ins/file-pnm/file-pnm" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fa5be4e373d code=0x50000
[450827.415074] audit: type=1400 audit(1690834631.658:38441): apparmor="DENIED" operation="open" profile="snap.gimp.gimp" name="/run/mount/utab" pid=1414883 comm="gimp" requested_mask="r" denied_mask="r" fsuid=645083918 ouid=0
[450861.127097] audit: type=1400 audit(1690834665.370:38442): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375119/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=645083918
[450968.594647] audit: type=1400 audit(1690834772.839:38443): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2722/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[450997.561718] audit: type=1400 audit(1690834801.807:38444): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375363/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[450997.561743] audit: type=1400 audit(1690834801.807:38445): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375364/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[450997.564324] audit: type=1400 audit(1690834801.807:38446): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375365/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[450997.564353] audit: type=1400 audit(1690834801.807:38447): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375366/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451278.595670] audit: type=1400 audit(1690835082.836:38448): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2722/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451297.112814] audit: type=1400 audit(1690835101.356:38449): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375947/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451297.112885] audit: type=1400 audit(1690835101.356:38450): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375948/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451297.112891] audit: type=1400 audit(1690835101.356:38451): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375949/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451297.114109] audit: type=1400 audit(1690835101.356:38452): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375950/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451297.114159] audit: type=1400 audit(1690835101.356:38453): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375952/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451297.114195] audit: type=1400 audit(1690835101.356:38454): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3375951/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451421.168814] audit: type=1400 audit(1690835225.412:38455): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3376335/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451421.204243] audit: type=1400 audit(1690835225.448:38456): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3376341/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451421.220588] audit: type=1400 audit(1690835225.464:38457): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3376347/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451421.234877] audit: type=1400 audit(1690835225.476:38458): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3376353/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451421.249381] audit: type=1400 audit(1690835225.492:38459): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3376359/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451421.266294] audit: type=1400 audit(1690835225.508:38460): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3376365/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451569.510767] audit: type=1400 audit(1690835373.753:38461): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3377697/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451581.384559] audit: type=1400 audit(1690835385.629:38462): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/2954134/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.400351] audit: type=1400 audit(1690835401.645:38463): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3377995/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.400691] audit: type=1400 audit(1690835401.645:38464): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3377998/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.403207] audit: type=1400 audit(1690835401.649:38465): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3378001/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.403364] audit: type=1400 audit(1690835401.649:38466): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3378000/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.405040] audit: type=1400 audit(1690835401.649:38467): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3377996/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.405116] audit: type=1400 audit(1690835401.649:38468): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3377994/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.405428] audit: type=1400 audit(1690835401.649:38469): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3377999/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.405571] audit: type=1400 audit(1690835401.649:38470): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3377997/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.407730] audit: type=1400 audit(1690835401.653:38471): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3378006/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451597.407830] audit: type=1400 audit(1690835401.653:38472): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/proc/3378007/cmdline" pid=3198 comm="sssd_nss" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[451650.095021] kauditd_printk_skb: 2 callbacks suppressed
[451650.095024] audit: type=1326 audit(1690835454.341:38475): auid=645083918 uid=645083918 gid=600260513 ses=4 subj=snap.gimp.gimp pid=3378239 comm="metadata-viewer" exe="/usr/lib/gimp/2.0/plug-ins/metadata-viewer/metadata-viewer" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7f1bcd51b73d code=0x50000
[451700.662903] audit: type=1326 audit(1690835504.909:38476): auid=645083918 uid=645083918 gid=600260513 ses=4 subj=snap.gimp.gimp pid=3378288 comm="gimp-debug-tool" exe="/usr/libexec/gimp-debug-tool-2.0" sig=0 arch=c000003e syscall=314 compat=0 ip=0x7fb9ae03973d code=0x50000

Teminal output of app

<!-- Copy-paste this whole debug data to report to developers -->

GNU Image Manipulation Program version 2.10.30
git-describe: GIMP_2_10_30
Build: org.gimp.GIMP.snapcraft.stable rev 0 for linux
# C compiler #
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/build/gimp/stage/usr/bin/../lib/gcc/x86_64-linux-gnu/9/lto-wrapper
    OFFLOAD_TARGET_NAMES=nvptx-none:hsa
    OFFLOAD_TARGET_DEFAULT=1
    Target: x86_64-linux-gnu
    Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.4.0-1ubuntu1~20.04.1' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-Av3uEd/gcc-9-9.4.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
    Thread model: posix
    gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) 

# Libraries #
using babl version 0.1.92 (compiled against version 0.1.92)
using GEGL version 0.4.36 (compiled against version 0.4.36)
using GLib version 2.64.6 (compiled against version 2.64.6)
using GdkPixbuf version 2.40.1 (compiled against version 2.40.0)
using GTK+ version 2.24.32 (compiled against version 2.24.32)
using Pango version 1.48.0 (compiled against version 1.44.7)
using Fontconfig version 2.13.1 (compiled against version 2.13.1)
using Cairo version 1.17.4 (compiled against version 1.16.0)

fatal error: Segmentation fault

Stack trace:

/snap/gimp/393/usr/lib/libgimpbase-2.0.so.0(gimp_stack_trace_print+0x3e8)[0x7f2b49e50e38]
/snap/gimp/393/usr/bin/gimp(+0x7268ee)[0x5637a8a8b8ee]
/snap/gimp/393/usr/bin/gimp(+0x7269ce)[0x5637a8a8b9ce]
/snap/gimp/393/usr/bin/gimp(+0x7269ed)[0x5637a8a8b9ed]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)[0x7f2b4a67f420]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_type_check_instance_cast+0x26)[0x7f2b4947f0d6]
/snap/gimp/393/usr/bin/gimp(+0x59f91f)[0x5637a890491f]
/snap/gimp/393/usr/bin/gimp(gimp_display_shell_canvas_tool_events+0x89)[0x5637a8904b19]
/snap/gimp/393/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x13db9b)[0x7f2b4a0b7b9b]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_closure_invoke+0x1b2)[0x7f2b494548b2]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(+0x277d3)[0x7f2b494687d3]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit_valist+0x98d)[0x7f2b494754fd]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0(g_signal_emit+0x93)[0x7f2b49476143]
/snap/gimp/393/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(+0x25922d)[0x7f2b4a1d322d]
/snap/gimp/393/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_propagate_event+0xac)[0x7f2b4a0b5ccc]
/snap/gimp/393/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0(gtk_main_do_event+0x2f3)[0x7f2b4a0b60c3]
/snap/gimp/393/usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0(+0x5f6d0)[0x7f2b49f1e6d0]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x28d)[0x7f2b4935c99d]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x59c40)[0x7f2b4935cc40]
/snap/gimp/393/data-dir/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_loop_run+0x83)[0x7f2b4935cf33]
/snap/gimp/393/usr/bin/gimp(app_run+0x425)[0x5637a8a8c005]
/snap/gimp/393/usr/bin/gimp(main+0x37e)[0x5637a844ec4e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x7f2b4a49d083]
/snap/gimp/393/usr/bin/gimp(_start+0x2e)[0x5637a844edce]