snapcrafters / gimp

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

[Bug]: Crash on first startup in snapcraft #280

Open kaixoo opened 4 months ago

kaixoo commented 4 months ago

What happened?

The app crashed on startup in snap, preview/stable branch.

What should have happened?

Start normally.

Output of snap info $snap_name

error: the required argument `<snap> (at least 1 argument)` was not provided

Output of snap connections $snap_name

Interface                 Plug                                             Slot                             Notes
appstream-metadata        snap-store:appstream-metadata                    :appstream-metadata              -
audio-playback            firefox:audio-playback                           :audio-playback                  -
audio-record              firefox:audio-record                             :audio-record                    -
avahi-control             cups:avahi-control                               :avahi-control                   -
avahi-observe             firefox:avahi-observe                            :avahi-observe                   -
browser-support           firefox:browser-sandbox                          :browser-support                 -
browser-support           gimp:browser-support                             :browser-support                 -
camera                    firefox:camera                                   :camera                          -
content[gnome-3-28-1804]  arduino:gnome-3-28-1804                          gnome-3-28-1804:gnome-3-28-1804  -
content[gtk-3-themes]     arduino:gtk-3-themes                             gtk-common-themes:gtk-3-themes   -
content[icon-themes]      arduino:icon-themes                              gtk-common-themes:icon-themes    -
content[sound-themes]     arduino:sound-themes                             gtk-common-themes:sound-themes   -
content[gnome-42-2204]    firefox:gnome-42-2204                            gnome-42-2204:gnome-42-2204      -
content[gtk-3-themes]     firefox:gtk-3-themes                             gtk-common-themes:gtk-3-themes   -
content[icon-themes]      firefox:icon-themes                              gtk-common-themes:icon-themes    -
content[sound-themes]     firefox:sound-themes                             gtk-common-themes:sound-themes   -
content[gnome-42-2204]    firmware-updater:gnome-42-2204                   gnome-42-2204:gnome-42-2204      -
content[gtk-3-themes]     firmware-updater:gtk-3-themes                    gtk-common-themes:gtk-3-themes   -
content[icon-themes]      firmware-updater:icon-themes                     gtk-common-themes:icon-themes    -
content[sound-themes]     firmware-updater:sound-themes                    gtk-common-themes:sound-themes   -
content[gnome-42-2204]    gimp:gnome-42-2204                               gnome-42-2204:gnome-42-2204      -
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   -
content[gnome-42-2204]    snap-store:gnome-42-2204                         gnome-42-2204:gnome-42-2204      -
content[gtk-3-themes]     snap-store:gtk-3-themes                          gtk-common-themes:gtk-3-themes   -
content[icon-themes]      snap-store:icon-themes                           gtk-common-themes:icon-themes    -
content[sound-themes]     snap-store:sound-themes                          gtk-common-themes:sound-themes   -
content[gnome-42-2204]    snapd-desktop-integration:gnome-42-2204          gnome-42-2204:gnome-42-2204      -
content[gtk-3-themes]     snapd-desktop-integration:gtk-3-themes           gtk-common-themes:gtk-3-themes   -
content[icon-themes]      snapd-desktop-integration:icon-themes            gtk-common-themes:icon-themes    -
content[sound-themes]     snapd-desktop-integration:sound-themes           gtk-common-themes:sound-themes   -
cups-control              cups:cups-host                                   :cups-control                    -
cups-control              firefox:cups-control                             :cups-control                    -
desktop                   arduino:desktop                                  :desktop                         -
desktop                   firefox:desktop                                  :desktop                         -
desktop                   firmware-updater:desktop                         :desktop                         -
desktop                   gimp:desktop                                     :desktop                         -
desktop                   snap-store:desktop                               :desktop                         -
desktop                   snapd-desktop-integration:desktop                :desktop                         -
desktop-launch            snap-store:desktop-launch                        :desktop-launch                  -
desktop-legacy            arduino:desktop-legacy                           :desktop-legacy                  -
desktop-legacy            firefox:desktop-legacy                           :desktop-legacy                  -
desktop-legacy            firmware-updater:desktop-legacy                  :desktop-legacy                  -
desktop-legacy            gimp:desktop-legacy                              :desktop-legacy                  -
desktop-legacy            snap-store:desktop-legacy                        :desktop-legacy                  -
desktop-legacy            snapd-desktop-integration:desktop-legacy         :desktop-legacy                  -
fwupd                     firmware-updater:fwupd                           :fwupd                           -
gsettings                 arduino:gsettings                                :gsettings                       -
gsettings                 firefox:gsettings                                :gsettings                       -
gsettings                 firmware-updater:gsettings                       :gsettings                       -
gsettings                 gimp:gsettings                                   :gsettings                       -
gsettings                 snap-store:gsettings                             :gsettings                       -
gsettings                 snapd-desktop-integration:gsettings              :gsettings                       -
hardware-observe          firefox:hardware-observe                         :hardware-observe                -
home                      arduino:home                                     :home                            -
home                      cups:home                                        :home                            -
home                      firefox:home                                     :home                            -
home                      gimp:home                                        :home                            -
joystick                  firefox:joystick                                 :joystick                        -
login-session-observe     firefox:login-session-observe                    :login-session-observe           -
login-session-observe     snapd-desktop-integration:login-session-observe  :login-session-observe           -
mount-control             firefox:host-hunspell                            :mount-control                   -
network                   arduino:network                                  :network                         -
network                   cups:network                                     :network                         -
network                   firefox:network                                  :network                         -
network                   gimp:network                                     :network                         -
network                   snap-store:network                               :network                         -
network-bind              arduino:network-bind                             :network-bind                    -
network-bind              cups:network-bind                                :network-bind                    -
network-bind              firefox:network-bind                             :network-bind                    -
network-manager-observe   cups:network-manager-observe                     :network-manager-observe         -
opengl                    arduino:opengl                                   :opengl                          -
opengl                    firefox:opengl                                   :opengl                          -
opengl                    firmware-updater:opengl                          :opengl                          -
opengl                    gimp:opengl                                      :opengl                          -
opengl                    snap-store:opengl                                :opengl                          -
opengl                    snapd-desktop-integration:opengl                 :opengl                          -
packagekit-control        snap-store:packagekit-control                    :packagekit-control              -
personal-files            firefox:dot-mozilla-firefox                      :personal-files                  -
raw-usb                   arduino:raw-usb                                  :raw-usb                         -
raw-usb                   cups:raw-usb                                     :raw-usb                         -
removable-media           arduino:removable-media                          :removable-media                 -
removable-media           firefox:removable-media                          :removable-media                 -
screen-inhibit-control    firefox:screen-inhibit-control                   :screen-inhibit-control          -
shutdown                  firmware-updater:shutdown                        :shutdown                        -
snap-themes-control       snapd-desktop-integration:snap-themes-control    :snap-themes-control             -
snapd-control             snap-store:snapd-control                         :snapd-control                   -
system-files              cups:etc-cups                                    :system-files                    -
system-files              firefox:etc-firefox                              :system-files                    -
system-files              snapd-desktop-integration:snap                   :system-files                    -
system-packages-doc       firefox:system-packages-doc                      :system-packages-doc             -
u2f-devices               firefox:u2f-devices                              :u2f-devices                     -
unity7                    arduino:unity7                                   :unity7                          -
unity7                    firefox:unity7                                   :unity7                          -
unity7                    gimp:unity7                                      :unity7                          -
upower-observe            firefox:upower-observe                           :upower-observe                  -
upower-observe            firmware-updater:upower-observe                  :upower-observe                  -
wayland                   arduino:wayland                                  :wayland                         -
wayland                   firefox:wayland                                  :wayland                         -
wayland                   firmware-updater:wayland                         :wayland                         -
wayland                   gimp:wayland                                     :wayland                         -
wayland                   snap-store:wayland                               :wayland                         -
wayland                   snapd-desktop-integration:wayland                :wayland                         -
x11                       arduino:x11                                      :x11                             -
x11                       firefox:x11                                      :x11                             -
x11                       firmware-updater:x11                             :x11                             -
x11                       gimp:x11                                         :x11                             -
x11                       snap-store:x11                                   :x11                             -
x11                       snapd-desktop-integration:x11                    :x11                             -

Output of snap version

snap    2.63+24.04
snapd   2.63+24.04
series  16
ubuntu  24.04
kernel  6.8.0-36-generic

Relevant log output

[   40.409730] audit: type=1400 audit(1720701114.480:205): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=2807 comm="snap-confine" capability=12  capname="net_admin"
[   40.409752] audit: type=1400 audit(1720701114.480:206): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=2807 comm="snap-confine" capability=38  capname="perfmon"
[   40.416295] audit: type=1400 audit(1720701114.487:207): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.snapd-desktop-integration" name="/proc/2876/maps" pid=2876 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[   42.914639] audit: type=1400 audit(1720701116.985:208): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=3656 comm="snap-confine" capability=12  capname="net_admin"
[   42.914664] audit: type=1400 audit(1720701116.985:209): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=3656 comm="snap-confine" capability=38  capname="perfmon"
[   42.920976] audit: type=1400 audit(1720701116.991:210): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.snapd-desktop-integration" name="/proc/3690/maps" pid=3690 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[  495.141376] audit: type=1400 audit(1720701568.821:211): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/usr/local/share/" pid=4279 comm="5" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[  495.213370] audit: type=1400 audit(1720701568.893:212): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/proc/4291/maps" pid=4291 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[  496.369799] audit: type=1107 audit(1720701570.050:213): pid=1182 uid=101 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/timedate1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.136" pid=4256 label="snap.firefox.firefox" peer_pid=4378 peer_label="unconfined"
[  496.371839] audit: type=1107 audit(1720701570.052:214): pid=1182 uid=101 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/timedate1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.136" pid=4256 label="snap.firefox.firefox" peer_pid=4378 peer_label="unconfined"
[ 1775.048751] audit: type=1400 audit(1720702848.712:215): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=6871 comm="snap-confine" capability=12  capname="net_admin"
[ 1775.048764] audit: type=1400 audit(1720702848.712:216): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=6871 comm="snap-confine" capability=38  capname="perfmon"
[ 1775.203776] audit: type=1400 audit(1720702848.867:217): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firmware-updater" name="/proc/6897/maps" pid=6897 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 1775.412953] audit: type=1400 audit(1720702849.076:218): apparmor="DENIED" operation="open" class="file" profile="snap.firmware-updater.firmware-notifier" name="/proc/sys/vm/max_map_count" pid=6871 comm="firmware-notifi" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 2904.977481] audit: type=1400 audit(1720703978.672:219): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=8198 comm="snap-confine" capability=12  capname="net_admin"
[ 2904.977502] audit: type=1400 audit(1720703978.672:220): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=8198 comm="snap-confine" capability=38  capname="perfmon"
[ 2905.161180] audit: type=1400 audit(1720703978.856:221): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.snap-store" name="/proc/8228/maps" pid=8228 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 3478.928593] audit: type=1400 audit(1720704552.609:330): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=10153 comm="snap-confine" capability=12  capname="net_admin"
[ 3478.928608] audit: type=1400 audit(1720704552.609:331): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=10153 comm="snap-confine" capability=38  capname="perfmon"
[ 3478.935206] audit: type=1400 audit(1720704552.615:332): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.snap-store" name="/proc/10173/maps" pid=10173 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 3548.309871] audit: type=1400 audit(1720704621.990:367): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=10871 comm="snap-confine" capability=12  capname="net_admin"
[ 3548.309894] audit: type=1400 audit(1720704621.990:368): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=10871 comm="snap-confine" capability=38  capname="perfmon"
[ 3548.325739] audit: type=1400 audit(1720704622.006:369): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.gimp" name="/proc/10891/maps" pid=10891 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 3564.470941] audit: type=1400 audit(1720704638.152:499): apparmor="DENIED" operation="open" class="file" profile="snap.gimp.gimp" name="/etc/fstab" pid=10871 comm="gimp-2.99" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 3564.477460] audit: type=1400 audit(1720704638.158:500): apparmor="DENIED" operation="open" class="file" profile="snap.gimp.gimp" name="/run/mount/utab" pid=10871 comm="gimp-2.99" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 3565.757636] audit: type=1400 audit(1720704639.438:501): apparmor="DENIED" operation="open" class="file" profile="snap.gimp.gimp" name="/run/mount/utab" pid=10871 comm="gimp-2.99" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
[ 3565.980694] audit: type=1107 audit(1720704639.661:502): pid=1182 uid=101 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.203" pid=10871 label="snap.gimp.gimp" peer_pid=12907 peer_label="unconfined"
[ 3565.989456] audit: type=1107 audit(1720704639.670:503): pid=1182 uid=101 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_method_call"  bus="system" path="/org/freedesktop/hostname1" interface="org.freedesktop.DBus.Properties" member="GetAll" mask="send" name=":1.203" pid=10871 label="snap.gimp.gimp" peer_pid=12907 peer_label="unconfined"
[ 3598.744898] audit: type=1400 audit(1720704672.426:504): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=12946 comm="snap-confine" capability=12  capname="net_admin"
[ 3598.744927] audit: type=1400 audit(1720704672.426:505): apparmor="DENIED" operation="capable" class="cap" profile="/usr/lib/snapd/snap-confine" pid=12946 comm="snap-confine" capability=38  capname="perfmon"
[ 3598.754689] audit: type=1400 audit(1720704672.436:506): apparmor="DENIED" operation="open" class="file" profile="snap-update-ns.firefox" name="/proc/12965/maps" pid=12965 comm="5" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Teminal output of app

Programa de retoc d'imatges de GNU version 2.99.18
git-describe: GIMP_2_99_18
Build: org.gimp.GIMP.snapcraft.preview rev 0 for linux
# C compiler #
Using built-in specs.
COLLECT_GCC=/usr/bin/cc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --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-bootstrap --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 --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --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-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04) 

# Libraries #
using babl version 0.1.109 (compiled against version 0.1.109)
using GEGL version 0.4.49 (compiled against version 0.4.49)
using GLib version 2.78.1 (compiled against version 2.78.1)
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.51.0 (compiled against version 1.51.0)
using Fontconfig version 2.13.1 (compiled against version 2.13.1)
using Cairo version 1.18.0 (compiled against version 1.18.0)

> El GIMP-ADVERTIMENT: atk-bridge: get_device_events_reply: unknown signature

Stack trace:
\```
/snap/gimp/433/usr/lib/x86_64-linux-gnu/libgimpbase-3.0.so.0(gimp_stack_trace_print+0x50f) [0x711d8696fd4f]
/snap/gimp/433/usr/bin/gimp-2.99(gui_message+0x2f8) [0x5dac97b34498]
/snap/gimp/433/usr/bin/gimp-2.99(gimp_show_message+0xdc) [0x5dac9790833c]
/snap/gimp/433/usr/bin/gimp-2.99(+0x344387) [0x5dac97ad0387]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_logv+0x250) [0x711d86337510]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_log+0x92) [0x711d863377e2]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0(+0x12b35) [0x711d83f56b35]
/snap/gimp/433/gnome-platform/lib/x86_64-linux-gnu/libdbus-1.so.3(+0x11eb9) [0x711d838e2eb9]
/snap/gimp/433/gnome-platform/lib/x86_64-linux-gnu/libdbus-1.so.3(dbus_connection_dispatch+0xcb) [0x711d838e739b]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libatspi.so.0(+0x1f988) [0x711d838ad988]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x5eeda) [0x711d86329eda]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x6269f) [0x711d8632d69f]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x32) [0x711d8632df62]
/snap/gimp/433/gnome-platform/usr/lib/x86_64-linux-gnu/libgio-2.0.so.0(g_application_run+0x1a4) [0x711d860680d4]
/snap/gimp/433/usr/bin/gimp-2.99(app_run+0x244) [0x5dac97acfd14]
/snap/gimp/433/usr/bin/gimp-2.99(main+0x3ac) [0x5dac9787de4c]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d8f) [0x711d84b78d8f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x7f) [0x711d84b78e3f]
/snap/gimp/433/usr/bin/gimp-2.99(_start+0x24) [0x5dac9787dfd4]