Fontconfig error

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

Post Reply
dustball
Posts: 15
Joined: Sat Sep 10, 2016 7:01 pm

Fontconfig error

Post by dustball »

Hello there,

on an up to date ArchLinux, xnviewmp throws fontconfig errors:

Code: Select all

Fontconfig error: "/etc/fonts/fonts.conf", line 42600367: syntax error
Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
Fontconfig warning: no <cachedir> elements found. Check configuration.
Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
Fontconfig warning: adding <cachedir prefix="xdg">fontconfig</cachedir>
For one, the line is impossible (my fonts.conf is only 89 lines long), secondly an strace doesn't seem to be of much more help either:

Code: Select all

access("/etc/fonts/fonts.conf", R_OK)   = 0  
stat("/etc/fonts/fonts.conf", {st_mode=S_IFREG|0644, st_size=2339, ...}) = 0
openat(AT_FDCWD, "/etc/fonts/fonts.conf", O_RDONLY|O_CLOEXEC) = 7
read(7, "<?xml version=\"1.0\"?>\n<!DOCTYPE "..., 8192) = 2339 
read(7, "", 8192)                       = 0
close(7)                                = 0
getrandom("\x0d\x9c\xb7\xf9\x69\x54\x6e\xbe", 8, GRND_NONBLOCK) = 8
write(2, "Fontconfig error: \"/etc/fonts/fo"..., 58Fontconfig error: "/etc/fonts/fonts.conf", line 49611807: ) = 58 
write(2, "syntax error", 12syntax error)            = 12
write(2, "\n", 1
)                       = 1
write(2, "Fontconfig error: ", 18Fontconfig error: )      = 18 
write(2, "Cannot load config file from /et"..., 50Cannot load config file from /etc/fonts/fonts.conf) = 50 
write(2, "\n", 1
)                       = 1
write(2, "Fontconfig warning: no <cachedir"..., 71Fontconfig warning: no <cachedir> elements found. Check configuration.
) = 71 
write(2, "Fontconfig warning: adding <cach"..., 70Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
) = 70 
write(2, "Fontconfig warning: adding <cach"..., 72Fontconfig warning: adding <cachedir prefix="xdg">fontconfig</cachedir>
) = 72 
The fontconfig version is 2.12.6. It does work with version 2.12.5 though.

Edit: Somehow I managed to open this bug in the wrong category. It's XnViewMP, not Classic.
User avatar
pangwolin
Posts: 60
Joined: Sun Sep 25, 2016 7:53 pm

Re: Fontconfig error

Post by pangwolin »

Had you used the search function, you would have seen topics on the subject already opened.

Anyway, this should be fixed in the next version 0.88 soon.
Post Reply