gimp
gimp copied to clipboard
GIMP Snap Appears Completely Broken in Arch Linux
I just installed the gimp snap on Arch Linux. (One of) The entire points of snaps is eliminating the need to keep track of dependencies and all that, and I'm not sure if this is a dependency issue or what, but the snap completely fails to open, and has failed to install the correct fonts. This is the only snap on my system, so there's no chance that I've borked my snapd install as I literally only have Gimp.
After running snap run gimp, it hangs for about 2 minutes, after which I get two errors about unfound modules, one for canberra-gtk-module, and one for appmenu-gtk-module. After another 2 or 3 minutes, the GIMP splash screen appears, and all the text at the bottom is gone, replaced by the white boxes you get when a font can't be found/loaded and therefore the characters can't be rendered. Shortly after that, the program crashes, with this being the entire terminal output from snap run gimp to crash:
snap run gimp
Gtk-Message: 01:27:25.028: Failed to load module "canberra-gtk-module"
Gtk-Message: 01:27:25.028: Failed to load module "appmenu-gtk-module"
/snap/gimp/227/usr/bin/gimp: Gimp-Widgets-WARNING: parse_iso_codes: error parsing '/build/gimp/parts/gimp/install/usr/share/xml/iso-codes/iso_639.xml': No such file or directory
Fontconfig warning: FcPattern object weight does not accept value [40 210)
/snap/gimp/227/usr/bin/gimp: Gimp-Text-CRITICAL: gimp_font_factory_load_names: assertion 'fontset' failed
Gtk-Message: 01:28:38.537: Failed to load module "canberra-gtk-module"
Gtk-Message: 01:28:38.537: Failed to load module "appmenu-gtk-module"
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_scale_simple: assertion 'dest_width > 0' failed
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:10410): GdkPixbuf-CRITICAL **: 01:28:45.278: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed
(gimp:10410): GLib-ERROR **: 01:28:45.278: ../../../../glib/gmem.c:333: overflow allocating 18446744073709551615*18446744073709551615 bytes
(script-fu:22753): LibGimpBase-WARNING **: 01:28:45.670: script-fu: gimp_wire_read(): error
[1] 10410 trace trap (core dumped) snap run gimp
snap version:
snap 2.42.2-1
snapd 2.42.2-1
series 16
arch -
kernel 5.4.6-arch3-1
snap info gimp:
name: gimp
summary: GNU Image Manipulation Program
publisher: Snapcrafters
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/snapcr
aft.yaml
commands:
- gimp
snap-id: KDHYbyuzZukmLhiogKiUksByRhXD2gYV
tracking: stable
refresh-date: today at 01:21 EST
channels:
stable: 2.10.12 2019-10-30 (227) 429MB -
candidate: ↑
beta: ↑
edge: 2.10.14 2019-11-21 (238) 242MB -
installed: 2.10.12 (227) 429MB -
I don't know what other information might be relevant, but I can tell you I have all the relevant systemd services enabled and running (snapd.socket, snapd.apparmor.service, apparmor.service, etc). I would just use the regular packaged version, but it seems that one is broken too, as it literally crashes on two different systems (one Arch, one Manjaro) any time I try to cut anything or really do any action. So I'd really appreciate if this could get fixed.
And.... now it loads, but still, it's broken. No fonts whatsoever.

I'm having a similar issue. Only solution I can see is to remove the Snap and switch to the Flatpak as per the instructions at https://www.gimp.org/downloads/
The latest version in the store has been reverted while we fix it. Anyone affected can snap revert gimp and just go back to the previous working version or snap refresh which should move you forwards (backwards because we reverted in the store) to the previous working version.
Note that @edent's issue is separate to the one reported by @gardotd426
Ah, well spotted, I replied to the latest comment. My bad :D
From looking at @gardotd426 's issue that started this thread, I think that will also be resolved once the new build is released to the store because there was a fix that was supposed to land with the build that was broken for @edent.
I have the same issue on the latest Ubuntu (20.04 LTS) with the latest snap (2.10.18)
I was able to fix that by removing my ~/.cache/fontconfig
I was able to fix that by removing my
~/.cache/fontconfig
I can confirm that removing the directory proposed by @nul0m works. Thank very much @nul0m
Its also completely broken on ubuntu. cant even open files on another partition or disk . . .
I was able to fix that by removing my
~/.cache/fontconfig
It worked man, thanks
I was able to fix that by removing my
~/.cache/fontconfig
You saved my day.... :-)
@nul0m thk thk thk !!!!!
IT does work when deleting the cache font folder
I can confirm as well that deleting ~/.cache/fontconfig as @nul0m suggested works.