snapcrafters / gimp

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

[Bug]: gimp 2.99.10 "error while loading shared libraries: libgimpwidgets-3.0.so.0: cannot open shared object file: No such file or directory" #219

Open luispabon opened 1 year ago

luispabon commented 1 year ago

What happened?

The app crashes during startup with the following error:

 ~ snap list|grep gimp 
gimp                  2.99.10                     397    preview/edge   snapcrafters        -
 ~ gimp
/snap/gimp/397/usr/bin/gimp: error while loading shared libraries: libgimpwidgets-3.0.so.0: cannot open shared object file: No such file or directory
~

What should have happened?

The app starts up normally

Output of snap info $snap_name

~ snap info gimp
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:     preview/edge
refresh-date: today at 10:26 GMT
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.99.10            (397) 650MB -

Output of snap connections $snap_name

~ snap connections gimp
Interface               Plug                  Slot                            Notes
browser-support         gimp:browser-support  :browser-support                -
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  -
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 version
snap    2.58
snapd   2.58
series  16
ubuntu  22.10
kernel  5.19.0-29-generic

Relevant log output

~ dmesg -w

[21876.408342] audit: type=1400 audit(1675075090.857:583): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/17950/usr/lib/snapd/snap-confine" pid=490593 comm="snap-confine" capability=12  capname="net_admin"
[21876.408348] audit: type=1400 audit(1675075090.857:584): apparmor="DENIED" operation="capable" class="cap" profile="/snap/snapd/17950/usr/lib/snapd/snap-confine" pid=490593 comm="snap-confine" capability=38  capname="perfmon"

Teminal output of app

~ /snap/bin/gimp
/snap/gimp/397/usr/bin/gimp: error while loading shared libraries: libgimpwidgets-3.0.so.0: cannot open shared object file: No such file or directory
luispabon commented 1 year ago

The library does seem to be present on the snap:

~ ls -la /snap/gimp/397/usr/lib/libgimpwidgets* 
lrwxrwxrwx 1 root root   31 Aug 17 11:42 /snap/gimp/397/usr/lib/libgimpwidgets-3.0.so -> libgimpwidgets-3.0.so.0.9900.11
lrwxrwxrwx 1 root root   31 Aug 17 11:42 /snap/gimp/397/usr/lib/libgimpwidgets-3.0.so.0 -> libgimpwidgets-3.0.so.0.9900.11
-rwxr-xr-x 1 root root 3.1M Aug 17 11:42 /snap/gimp/397/usr/lib/libgimpwidgets-3.0.so.0.9900.11
ou-li commented 1 year ago

Same problem here