6

My install of GIMP is suddenly crashing on startup.

The launcher window opens and runs through it's setup process, but the font is all messed up (see screenshot).

enter image description here

The same boxes show on the main GIMP window, which opens for a second, then closes.

I installed GIMP via snap, and when I try to open it via the terminal the following error is outputted:

kirk@masterblaster6:~$ gimp &
[1] 46505
kirk@masterblaster6:~$ /snap/gimp/281/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 width does not accept value [60 402) /snap/gimp/281/usr/bin/gimp: Gimp-Text-CRITICAL: gimp_font_factory_load_names: assertion 'fontset' failed gimp_check_updates_callback: loading of https://gimp.org/gimp_versions.json failed: Operation not supported

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_scale_simple: assertion 'dest_width > 0' failed

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_get_width: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_get_height: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_get_pixels_with_length: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_get_rowstride: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimp:46505): GdkPixbuf-CRITICAL **: 10:37:03.236: gdk_pixbuf_get_n_channels: assertion 'GDK_IS_PIXBUF (pixbuf)' failed

(gimp:46505): GLib-ERROR *: 10:37:03.236: ../../../../glib/gmem.c:333: overflow allocating 1844674407370955161518446744073709551615 bytes

(script-fu:46620): LibGimpBase-WARNING **: 10:37:03.370: script-fu: gimp_wire_read(): error

[1]+ Trace/breakpoint trap (core dumped) gimp

The only thing I can think of that I did recently that could have messed with my installation is I installed Google Fonts locally via this script, but other programs like Inkscape and OBS Studio are loading in the fonts without crashing no problem.

Anyone got any ideas?

saricDen
  • 213
  • 1
  • 4
  • 11

1 Answers1

11

I too faced the same issue. running the following commands to clear fontcache from the system solved the issue for me.

Commands:

sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
fc-cache -r

Turns out this is an issue with snap.