首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何修复Fontconfig错误

如何修复Fontconfig错误
EN

Unix & Linux用户
提问于 2014-07-04 22:42:01
回答 4查看 42.2K关注 0票数 5

每当Fontconfig由应用程序运行(在我的具体情况下,是蒸汽中的Civ ),它就会输出这个错误:

代码语言:javascript
复制
Fontconfig error: "/usr/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/usr/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/usr/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number

虽然应用程序并没有完全崩溃,但是当这个错误被打印并且音频继续运行时,视频就会冻结。

  • Fontconfig错误是否导致了问题?
  • 我该怎么解决呢?

编辑:

计算机为Ubuntu 14.04 32位。我怀疑这个问题与fontconfig有关,因为视频(Aspyr )在打印此错误时会结冰,就在shift选项卡蒸汽社区消息显示的时候。那篇文章格式错误、臃肿,而不是不显眼。下面是由steam 2> error.txt创建的文件,我在问题发生后将其杀死。

代码语言:javascript
复制
    rm: cannot remove ‘/home/seth/.steam/steam’: Is a directory
    rm: cannot remove ‘/home/seth/.steam/bin’: Is a directory
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
    [0705/210154:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    [HTTP Remote Control] HTTP server listening on port 27037.
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Generating new string page texture 2: 48x256, total string texture memory is 49.15 KB
    Generating new string page texture 3: 256x256, total string texture memory is 311.30 KB
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Adding licenses for the following package(s): 0, 11092, 11707, 14631, 28756, 29136
    roaming config store loaded successfully - 716 bytes.
    migrating temporary roaming config store
    Installing breakpad exception handler for appid(steam)/version(1404163764_client)
    Failed to init SteamVR because it isn't installed
    ExecCommandLine: "/home/seth/.steam/ubuntu12_32/steam"
    System startup time: 6.84 seconds
    Generating new string page texture 73: 1024x256, total string texture memory is 1.36 MB
    Generating new string page texture 74: 128x256, total string texture memory is 131.07 KB
    Generating new string page texture 75: 128x256, total string texture memory is 1.49 MB
    Generating new string page texture 76: 64x256, total string texture memory is 1.56 MB
    Generating new string page texture 77: 32x256, total string texture memory is 1.59 MB

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    Generating new string page texture 82: 128x256, total string texture memory is 1.72 MB
    Generating new string page texture 83: 384x256, total string texture memory is 2.11 MB
    ExecCommandLine: "/home/seth/.steam/root/ubuntu12_32/steam steam://open/driverhelperready"
    ExecSteamURL: "steam://open/driverhelperready"
    Game update: AppID 8930 "Sid Meier's Civilization V", ProcID 4526, IP 0.0.0.0:0
    ERROR: ld.so: object '/home/seth/.steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.

    (steam:4437): LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent.
    ERROR: ld.so: object '/home/seth/.steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
    Setting breakpad minidump AppID = 8930
    Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198080162579 [API loaded no]
    Installing breakpad exception handler for appid(gameoverlayui)/version(20140630132217_client)
    Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)
    non-double matrix element
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
    [0705/210210:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
    Installing breakpad exception handler for appid(gameoverlayui)/version(1.0_client)    
EN

回答 4

Unix & Linux用户

发布于 2015-02-01 00:37:51

代码语言:javascript
复制
fc-cache -v | grep -i err

也会在第78行给你一个错误(对我来说)。结果是,<matrix>元素在/etc/fonts/conf.d/10-scale-bitmap-fonts.conf中只有两个<name>元素,而它应该只有一个。做:

代码语言:javascript
复制
sudo nano "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf"

并删除另一行内容如下:

代码语言:javascript
复制
<name>pixelsizefixupfactor</name>

使fc-缓存查询不再返回错误,并且当加载蒸汽(和随后的游戏)时,Fontconfig error:行不再存在。

根据http://linux.die.net/man/5/fonts-conf,我想我们需要<matrix>中的4个<double>元素,但似乎没有必要。

票数 4
EN

Unix & Linux用户

发布于 2014-08-23 23:47:18

试着关掉蒸汽覆盖层。右击游戏库中的游戏,选择“属性”,并取消选中“启用蒸汽覆盖在游戏中”。这个帮我修好了。

票数 1
EN

Unix & Linux用户

发布于 2014-07-05 19:54:25

有人提到了这里这个解决方案:

只需删除/usr/local/etc/fonts/fonts.conf文件中的fontconfig即可。

你能试试吗?

要找出导致视频冻结问题的真正原因,请执行以下操作:

  • 在一个终端的命令行中启动steam .
  • 在另一个终端的命令行中启动Civ。find蒸汽目录中的可执行文件(Ubuntu上的~/.local/share/Steam),如下所示:find ~/.local/share/Steam/ -executable -type f | grep -i civ
  • 好玩的时候!播放Civ V,直到您体验到错误。快杀了Civ。
  • 查看steam和civ二进制文件的输出,并将其张贴在这里或Google以获得如下错误信息:" Error : Term",使用双引号。
票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/140852

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档