gimp icon indicating copy to clipboard operation
gimp copied to clipboard

GIMP Snap Appears Completely Broken in Arch Linux

Open gardotd426 opened this issue 5 years ago • 15 comments
trafficstars

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.

gardotd426 avatar Dec 30 '19 06:12 gardotd426

And.... now it loads, but still, it's broken. No fonts whatsoever.

DeepinScreenshot_20191230020157

gardotd426 avatar Dec 30 '19 07:12 gardotd426

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/

edent avatar Jan 10 '20 17:01 edent

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.

popey avatar Jan 10 '20 18:01 popey

Note that @edent's issue is separate to the one reported by @gardotd426

lucyllewy avatar Jan 10 '20 18:01 lucyllewy

Ah, well spotted, I replied to the latest comment. My bad :D

popey avatar Jan 10 '20 18:01 popey

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.

lucyllewy avatar Jan 10 '20 18:01 lucyllewy

I have the same issue on the latest Ubuntu (20.04 LTS) with the latest snap (2.10.18)

nul0m avatar May 25 '20 07:05 nul0m

I was able to fix that by removing my ~/.cache/fontconfig

nul0m avatar May 25 '20 08:05 nul0m

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

Andres6936 avatar Jun 28 '20 19:06 Andres6936

Its also completely broken on ubuntu. cant even open files on another partition or disk . . .

neofutur avatar Oct 23 '20 10:10 neofutur

I was able to fix that by removing my ~/.cache/fontconfig

It worked man, thanks

hectorugc avatar Dec 12 '20 08:12 hectorugc

I was able to fix that by removing my ~/.cache/fontconfig

You saved my day.... :-)

RodriAndreotti avatar Mar 17 '21 14:03 RodriAndreotti

@nul0m thk thk thk !!!!!

FreezeSoul avatar Jun 02 '21 09:06 FreezeSoul

IT does work when deleting the cache font folder

jcamiot avatar Jun 26 '21 21:06 jcamiot

I can confirm as well that deleting ~/.cache/fontconfig as @nul0m suggested works.

dmguezjaviersnet avatar Jan 18 '22 17:01 dmguezjaviersnet