Fontconfig 2.12.1 unable to cache /System/Library/Fonts on OS X

Zhiming Wang <[email protected]>
Newsgroups gmane.comp.fonts.fontconfig
Message-ID <[email protected]>
I sent the same report to the mailing list a few days ago, but it never
appeared on the archive (maybe because I didn't subscribe at that time), so I'm
not sure if it reached anyone and am resending the message. In the meantime, a
report titled "fontconfig performance issue on macOS" has been posted to the
list, which should be the same issue, but it didn't provide any details, so
I'm starting a new thread.

-------------------------------------------------------------------------------

Fontconfig 2.12.0 works fine on OS X (10.11.6), but 2.12.1 is unable to cache
/System/Library/Fonts. Whenever I try to cache it, I always get an error:

   /path/to/cache: invalid cache file: b0a71e6bf6a8a1a908413a823d76e21f-le64.cache-7

and no cache is created. This renders fontconfig 2.12.1 unusable -- every
single operation needs to go through a lengthy (failed) recache of
/System/Library/Fonts.

git-bisect tracks the issue down to 7a4a5bd "Properly validate offsets in cache
files."

Unfortunately I do not know what additional info may be helpful for debugging
purposes. For your reference, here's a valid cache of /System/Library/Fonts
created by fontconfig 2.12.0:

   https://dl.bintray.com/zmwangx/generic/fontconfig-2.12.0-cache.tar.gz

_______________________________________________
Fontconfig mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/fontconfig
signature.asc (application/pgp-signature, 801 B)
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXwkWUAAoJELvTHU0RAES4QR8P/05DJ7pWzVLym55R9zLVHmMW
eoGzIkdIAj79yPpRBRLXGlRVdkHh9F2vlqLTY61HOAS/J3LjCa+GhTFgrgLLvf1B
BqdSZeLWAoL+V3ibkPRq40uMe8CZjLVuzFfrtPPjddc/9GEN/Y2e4JmLckWsOuOi
yDS4P2dc4ZZV7ovREryICahw46XKORzDi3rCRc/dVwYVce5yfBII0amh93fVwizY
GXM5Fa35aa5XJdIbcoJsbdKbYPs3i/ftKzUPjgXc3VvlCOHHldZtl75WSlk0mBrV
obkiC/XkzdGNJLruJkcavijWCQDlUul4k6uFD53iP7jxgm4nbpiDve8GFzhEqpc9
tGFad8FUpZVgomMtC4Rq1MgQ53Zm1Rq9WnBMMvhyMXZic7yAI7A8Fh/8FAxuNaq1
Iy8CdY1u0xmUJJfF5F/tRbhDEfebGdrIM45b//Us+XJunIKZHHYZqdsmODs09y3r
VQlBBJ9b5FsyajSOpSXdg2JpXHnlgw1Vn+aDi3u02I/45hwAc5Zj7tYTOqFHqzQ4
zv3rhda1a6L5GiOvDHi9M0CwYU7yHMNdDiTA2t7B2eUsqzUEs+kOrKlkieJaO7qn
Usu1g/Mmy081/hobDZxleqceWschHaNYd8QK68E/5a9+dnv76DImEGxRraOrJVKC
XDL0e5hieyeVRMQOFViY
=hnVT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.