我安装的 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
我能想到的唯一一件我最近做的可能会弄乱我的安装的事情是我通过这个脚本在本地安装了谷歌字体,但是像 Inkscape 和 OBS Studio 这样的其他程序正在加载字体而没有崩溃没有问题。
有人有什么想法吗?
我也面临同样的问题。运行以下命令从系统中清除 fontcache 为我解决了这个问题。
命令:
原来这是快照的问题。