GIMP 安装在启动时崩溃

GIMP 安装在启动时崩溃

我安装的 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

我能想到的唯一一件最近可能会影响我安装的事情是我通过以下方式在本地安装了 Google 字体这个脚本,但其他程序(如 Inkscape 和 OBS Studio)可以加载字体而不会崩溃,没有任何问题。

有人有什么想法吗?

答案1

我也遇到了同样的问题。运行以下命令从系统中清除字体缓存可以解决这个问题。

命令:

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

事实证明这是一个问题带有快照。

相关内容