我的 GIMP 安装在启动时突然崩溃。
启动器窗口打开并运行它的设置过程,但字体全乱了(见截图)。
相同的框显示在主 GIMP 窗口上,该窗口打开一秒钟,然后关闭。
我通过 安装了 GIMP snap
,当我尝试通过终端打开它时,输出以下错误:
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 18446744073709551615*18446744073709551615 bytes
(script-fu:46620): LibGimpBase-WARNING **: 10:37:03.370: script-fu: gimp_wire_read(): error
[1]+ Trace/breakpoint trap (core dumped) gimp
Run Code Online (Sandbox Code Playgroud)
我最近唯一能想到的可能会影响我的安装的是我通过这个脚本在本地安装了 Google Fonts ,但其他程序,如 Inkscape 和 OBS Studio 正在加载字体而没有崩溃没有问题。
有人有任何想法吗?
小智 5
我也面临同样的问题。运行以下命令从系统中清除字体缓存为我解决了这个问题。
命令:
sudo rm /var/cache/fontconfig/*
rm ~/.cache/fontconfig/*
fc-cache -r
Run Code Online (Sandbox Code Playgroud)
原来这是snap 的一个问题。