Issue metadata
Sign in to add a comment
|
font cache version not match with system font cache
Reported by
s...@sbw.so,
May 23 2018
|
||||||||||||||||||||||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 Steps to reproduce the problem: 1. clear all system font cache in /var/cache/fontconfig and ~/.cache/fontconfig 2. execute fc-cache -rsf to re-generate font cache 3. start chrome, chrome is start very slow(abot 2 mins) and I using strace to follow syscall, I found it's re-generate cache in ~/.cache/fontconfig What is the expected behavior? using system cache, not re-generate own font cache. What went wrong? my fontconfig library is 2.12.2-1.2 in deepin (which is based on Debian) and fc-cache will generate cache file in /var/cache/fontconfig with suffix "cache-4", the -4 is cache version. but chrome will re-generate cache in ~/.cache/fontconfig and with suffix "cache-7". I guess maybe chrome is static-link high-version fontconfig library and not compatible with old. Did this work before? Yes 63.0.3239.132-1 Chrome version: 66.0.3359.117 Channel: stable OS Version: deepin 15.5 Flash Version:
,
May 24 2018
Unable to triage this issue from TE-End, hence adding appropriate component and TE-NeedsTriageHelp label for further triage
,
May 25 2018
,
May 25 2018
This is about the browser process potentially using the system font cache. Not blink font rendering.
,
Sep 7
This happens because Chromium statically links a newer libfontconfig. Unfortunately, this is expected. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by s...@sbw.so
, May 24 2018more information: $ ls /var/cache/fontconfig 089dead882dea3570ffc31a9898cfb69-le64.cache-4 099525ddca5eae4f2477b69cf2d7f16d-le64.cache-4 0bd3dc0958fa2205aaaa8ebb13e2872b-le64.cache-4 16c2fda60d1b4b719f4b3d06fd951d25-le64.cache-4 188ac73a183f12857f63bb60a4a6d603-le64.cache-4 21a99156bb11811cef641abeda519a45-le64.cache-4 246184dc75a16901ca37d96895904249-le64.cache-4 3047814df9a2f067bd2d96a2b9c36e5a-le64.cache-4 365b55f210c0a22e9a19e35191240f32-le64.cache-4 3830d5c3ddfd5cd38a049b759396e72e-le64.cache-4 3f7329c5293ffd510edef78f73874cfd-le64.cache-4 4794a0821666d79190d59a36cb4f44b5-le64.cache-4 47e67d79d01846c7b6efd6b4f03a6092-le64.cache-4 4b14b093aebc79c320de5e86ae1d3314-le64.cache-4 4d6aee6d44eccb37054d3216e945f618-le64.cache-4 53d14c92082a93e67d5078324eb314ca-le64.cache-4 ....more outputs $ strace -e trace=open,write,mmap /opt/google/chrome/chrome ....more outputs mmap(NULL, 144864, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdee22000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreschola-italic.otf", O_RDONLY) = 24 mmap(NULL, 143152, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdee23000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreschola-regular.otf", O_RDONLY) = 24 mmap(NULL, 140596, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdee23000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyretermes-bold.otf", O_RDONLY) = 24 mmap(NULL, 139480, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdee23000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyretermes-bolditalic.otf", O_RDONLY) = 24 mmap(NULL, 144180, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdee22000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyretermes-italic.otf", O_RDONLY) = 24 mmap(NULL, 141324, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdee23000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre/texgyretermes-regular.otf", O_RDONLY) = 24 mmap(NULL, 140932, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdee23000 open("/home/.cache/fontconfig//8f02d4cb045bd6ce15663e43f347c9f8-le64.cache-7.TMP-Fs5x7f", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = 23 write(23, "31473\n", 6) = 6 open("/home/.cache/fontconfig//8f02d4cb045bd6ce15663e43f347c9f8-le64.cache-7.NEW", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 23 write(23, "\4\374\2\374\7\0\0\0\250\314\0\0\0\0\0\0@\0\0\0\0\0\0\0p\0\0\0\0\0\0\0"..., 52392) = 52392 open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math", O_RDONLY|O_CLOEXEC) = 23 open("/var/cache/fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.cache/fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math", O_RDONLY|O_CLOEXEC) = 23 open("/var/cache/fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.cache/fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 23 open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math/texgyrebonum-math.otf", O_RDONLY) = 24 mmap(NULL, 527408, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdedc5000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math/texgyredejavu-math.otf", O_RDONLY) = 24 mmap(NULL, 525008, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdedc5000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math/texgyrepagella-math.otf", O_RDONLY) = 24 mmap(NULL, 601220, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdedb3000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math/texgyreschola-math.otf", O_RDONLY) = 24 mmap(NULL, 596860, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdedb4000 open("/usr/share/texmf/fonts/opentype/public/tex-gyre-math/texgyretermes-math.otf", O_RDONLY) = 24 mmap(NULL, 532404, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdedc4000 open("/home/.cache/fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7.TMP-aEO26D", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = 23 write(23, "31473\n", 6) = 6 open("/home/.cache/fontconfig//16326683038b281783a0ef8c680e3a10-le64.cache-7.NEW", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 23 write(23, "\4\374\2\374\7\0\0\0\310!\0\0\0\0\0\0@\0\0\0\0\0\0\0x\0\0\0\0\0\0\0"..., 8648) = 8648 open("/usr/share/fonts/X11", O_RDONLY|O_CLOEXEC) = 23 open("/var/cache/fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.cache/fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/fonts/X11", O_RDONLY|O_CLOEXEC) = 23 open("/var/cache/fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.cache/fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/fonts/X11", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 23 open("/home/.cache/fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7.TMP-NTD461", O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC, 0600) = 23 write(23, "31473\n", 6) = 6 open("/home/.cache/fontconfig//c855463f699352c367813e37f3f70ea7-le64.cache-7.NEW", O_RDWR|O_CREAT|O_CLOEXEC, 0666) = 23 write(23, "\4\374\2\374\7\0\0\0X\1\0\0\0\0\0\0@\0\0\0\0\0\0\0X\0\0\0\0\0\0\0"..., 344) = 344 open("/usr/share/fonts/adobe-source-han-sans", O_RDONLY|O_CLOEXEC) = 23 open("/var/cache/fontconfig//fb42211fc6e0c1a73c189e83d3791827-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.cache/fontconfig//fb42211fc6e0c1a73c189e83d3791827-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.fontconfig//fb42211fc6e0c1a73c189e83d3791827-le64.cache-7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/fonts/adobe-source-han-sans", O_RDONLY|O_CLOEXEC) = 23 open("/var/cache/fontconfig//fb42211fc6e0c1a73c189e83d3791827-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.cache/fontconfig//fb42211fc6e0c1a73c189e83d3791827-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/home/.fontconfig//fb42211fc6e0c1a73c189e83d3791827-le64.cache-7", O_RDWR|O_CLOEXEC) = -1 ENOENT (No such file or directory) open("/usr/share/fonts/adobe-source-han-sans", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 23 open("/usr/share/fonts/adobe-source-han-sans/SourceHanSansSC-Bold.otf", O_RDONLY) = 24 mmap(NULL, 16983696, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdde13000 mmap(0x2db9ad6d0000, 1048576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2db9ad6d0000 open("/usr/share/fonts/adobe-source-han-sans/SourceHanSansSC-ExtraLight.otf", O_RDONLY) = 24 mmap(NULL, 15140064, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fddfd5000 open("/usr/share/fonts/adobe-source-han-sans/SourceHanSansSC-Heavy.otf", O_RDONLY) = 24 mmap(NULL, 17324776, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdddc0000 open("/usr/share/fonts/adobe-source-han-sans/SourceHanSansSC-Light.otf", O_RDONLY) = 24 mmap(NULL, 16229588, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fddecb000 open("/usr/share/fonts/adobe-source-han-sans/SourceHanSansSC-Medium.otf", O_RDONLY) = 24 mmap(NULL, 16490072, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fdde8c000 open("/usr/share/fonts/adobe-source-han-sans/SourceHanSansSC-Normal.otf", O_RDONLY) = 24 mmap(NULL, 16353464, PROT_READ, MAP_PRIVATE, 24, 0) = 0x7f8fddead000 ^C--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---