在最近一次更新之后(Xorg 也被更新了),GTK 应用程序停止在我的 kde4 中运行。我有一个不稳定的 Debian,4 月 22 日左右更新。当我尝试运行它们时,出现以下错误:
ga@grzes:~$ iceweasel
The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadName (named color or font does not exist)'.
(Details: serial 888 error_code 15 request_code 45 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
ga@grzes:~$ gimp The program 'gimp' received an X Window
System error.
This probably reflects a bug in the program.
The error was 'BadName (named color or font does not exist)'.
(Details: serial 6955 error_code 15 request_code 45 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
(script-fu:4643): LibGimpBase-WARNING **: script-fu: gimp_wire_read():
error
我必须手动重新启动字体服务器才能修复它:
ga@grzes:~$ su
Password:
grzes:/home/ga# /etc/init.d/xfs restart
Stopping X font server: xfs.
Setting up X font server socket directory /tmp/.font-unix...done.
Starting X font server: xfs.
有什么想法可能是错的吗?是配置问题吗?我的系统已经更新了 7 年,所以我可以有一些旧的设置。
编辑:如果有人能将我指向相关的讨论列表或 bugzilla 站点,我将不胜感激,因为我遇到了这个问题。
据我所知,x11 字体服务器现在几乎被弃用,取而代之的是客户端字体。Ubuntu 当然不再使用 xfs(除非您专门安装它),我怀疑 Debian Unstable 是否默认安装它。
启动后,不要重新启动 xfs,而是尝试停止它。如果一切继续按预期工作,则只需将其卸载即可。
听起来可能是 Xorg 1.5 中的这个已知错误:
如果有人可以将我指向相关的讨论列表或 bugzilla 站点,我将不胜感激,因为我遇到了这个问题。
Xorg bugzilla:http ://bugs.freedesktop.org - 使用产品“xorg”
Xorg 邮件列表: http: //lists.freedesktop.org/mailman/listinfo/xorg
尝试在重启
xlsfonts
前后运行,并比较结果。xfs
差异可能非常明显!找到你可以运行的最简单的程序,它会给你这个错误,并在 ltrace 下运行它以缩小导致问题的确切调用。