snapcrafters / gimp

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

[Bug]: Some G'MIC filters don't work on Gimp #237

Open lymphor opened 11 months ago

lymphor commented 11 months ago

What happened?

I'm using GIMP 2.10.30 on Ubuntu 22.04. I recently also installed G'MIC 3.2.6 from here: https://gmic.eu/download.html (I downloaded the stable version and copied it in both folders of plug-ins of GIMP). My problem is that when I try to use certain filters, like Brushify for instance, I get an error message like this one:

* Error in ./fx_brushify/local/brushify/local/substitute/max_wh/_minmax_whds/ Item substitution '{ mw = w; mh = h; md = d; ms = (...)s#k); ); ([mw,mh,md,ms])[0,2]}': Unrecognized function call 'repeat( l,k, mw = max(mw,w#k); mh = max(mh,h#k); md = max(m(...)' in expression '...repeat( l,k, mw = max(mw,w#k); mh = max(mh,h#k); md = max(m(...)...'. Screenshot from 2023-08-05 12-32-52

What should have happened?

Normally, a preview of the filtered image should be displayed instead of the error message.

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: 2022-08-26
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     cups:cups-control                 manual
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  :removable-media                  manual
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  22.04
kernel  6.2.0-26-generic

Relevant log output

[   67.039642] kernel: audit: type=1400 audit(1691231639.272:136): apparmor="DENIED" operation="capable" class="cap" profile="/usr/sbin/cupsd" pid=1622 comm="cupsd" capability=12  capname="net_admin"

Teminal output of app

gimp_color_transform_new: using babl for 'sRGB IEC61966-2-1 black scaled' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'sRGB IEC61966-2-1 black scaled' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'sRGB IEC61966-2-1 black scaled' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'sRGB IEC61966-2-1 black scaled' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'sRGB IEC61966-2-1 black scaled' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'GIMP built-in sRGB' -> 'sRGB IEC61966-2-1 black scaled'
gimp_color_transform_new: using babl for 'sRGB IEC61966-2-1 black scaled' -> 'GIMP built-in sRGB'
gimp_color_transform_new: using babl for 'GIMP built-in sRGB' -> 'sRGB IEC61966-2-1 black scaled'
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
QSocketNotifier: Can only be used with threads started with QThread
Using Wayland-EGL
EGL not available
Cannot find EGLConfig, returning null config
propsReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.270\" (uid=1000 pid=21161 comm=\"/usr/lib/gimp/2.0/plug-ins/gmic_gimp_qt -gimp 17 1\" label=\"snap.gimp.gimp (enforce)\") interface=\"org.freedesktop.DBus.Properties\" member=\"GetAll\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1456 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
nmReply "An AppArmor policy prevents this sender from sending this message to this recipient; type=\"method_call\", sender=\":1.270\" (uid=1000 pid=21161 comm=\"/usr/lib/gimp/2.0/plug-ins/gmic_gimp_qt -gimp 17 1\" label=\"snap.gimp.gimp (enforce)\") interface=\"org.freedesktop.NetworkManager\" member=\"GetDevices\" error name=\"(unset)\" requested_reply=\"0\" destination=\"org.freedesktop.NetworkManager\" (uid=0 pid=1456 comm=\"/usr/sbin/NetworkManager --no-daemon \" label=\"unconfined\")"
"Object path cannot be empty"
Using the 'xdg-shell' shell integration
Cannot find EGLConfig, returning null config