[Bug 227385] New: fc-cache always fails with error "(dir): failed to write cache"
https://bugzilla.novell.com/show_bug.cgi?id=227385 Summary: fc-cache always fails with error "(dir): failed to write cache" Product: openSUSE 10.2 Version: Final Platform: i686 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: X.Org AssignedTo: sndirsch@novell.com ReportedBy: belphegor@belbel.or.jp QAContact: sndirsch@novell.com This is an system which upgraded from 10.1 (final release with many patches) to 10.2 (final release). When I started the application "fc-cache", many errors occured as follows. --- /usr/share/fonts: failed to write cache /usr/share/fonts/100dpi: failed to write cache /usr/share/fonts/75dpi: failed to write cache /usr/share/fonts/CID: failed to write cache /usr/share/fonts/CID/Adobe-CNS1: failed to write cache /usr/share/fonts/CID/Adobe-CNS1/AFM: failed to write cache /usr/share/fonts/CID/Adobe-CNS1/CFM: failed to write cache (...) /usr/share/fonts/Speedo: failed to write cache /usr/share/fonts/Type1: failed to write cache /usr/share/fonts/URW: failed to write cache /usr/share/fonts/cyrillic: failed to write cache /usr/share/fonts/encodings: failed to write cache --- And this may be an additional information, "fc-list" takes too long time. On openSUSE 10.1 system, "fc-list" takes about <1 sec, But on openSUSE 10.2 system, "fc-list" takes about 30 sec. I think that this problem was caused by this (fc-cache) failure. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 sndirsch@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|sndirsch@novell.com |mfabian@novell.com Component|X.Org |Other -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |belphegor@belbel.or.jp ------- Comment #1 from mfabian@novell.com 2006-12-11 06:23 MST ------- I cannot reproduce this. Do you have cache files in /var/cache/fontconfig ? What happens if you run /usr/sbin/fonts-config -v -f as root? Do you have cache files in /var/cache/fontconfig afterwards? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 belphegor@belbel.or.jp changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|belphegor@belbel.or.jp | ------- Comment #2 from belphegor@belbel.or.jp 2006-12-11 07:10 MST ------- Something cached files ("(hex)-x86.cache-2") surely exist in /var/cache/fontconfig. "/usr/sbin/fonts-config -v -f" shows as follows. --- /usr/share/fonts: caching, 0 fonts, 12 dirs /usr/share/fonts: failed to write cache /usr/share/fonts/100dpi: caching, 398 fonts, 0 dirs /usr/share/fonts/100dpi: failed to write cache /usr/share/fonts/75dpi: caching, 398 fonts, 0 dirs /usr/share/fonts/75dpi: failed to write cache /usr/share/fonts/CID: caching, 0 fonts, 5 dirs /usr/share/fonts/CID: failed to write cache /usr/share/fonts/CID/Adobe-CNS1: caching, 0 fonts, 4 dirs /usr/share/fonts/CID/Adobe-CNS1: failed to write cache /usr/share/fonts/CID/Adobe-CNS1/AFM: caching, 0 fonts, 0 dirs /usr/share/fonts/CID/Adobe-CNS1/AFM: failed to write cache /usr/share/fonts/CID/Adobe-CNS1/CFM: caching, 0 fonts, 0 dirs /usr/share/fonts/CID/Adobe-CNS1/CFM: failed to write cache (...) --- For additional information, I had ran "strace fc-cache" in this machine (approx. 2MB). I'll submit as a attachment. I wish that this text helps you.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 ------- Comment #3 from belphegor@belbel.or.jp 2006-12-11 07:11 MST ------- Created an attachment (id=109155) --> (https://bugzilla.novell.com/attachment.cgi?id=109155&action=view) "strace fc-cache" log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |belphegor@belbel.or.jp ------- Comment #4 from mfabian@novell.com 2006-12-11 07:50 MST ------- I still don't understand that. Does it help if you delete all files in /var/cache/fontconfig/ and /root/.fontconfig/ and try again? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 belphegor@belbel.or.jp changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|belphegor@belbel.or.jp | ------- Comment #5 from belphegor@belbel.or.jp 2006-12-12 05:49 MST ------- I'd deleted all files in /var/cache/fontconfig, delete a file "/root/.fonts.cache-2" ("/root/.fontconfig" does not exist) and tried again ("fc-cache"). But errors still occured. When "fc-cache" completed, the only one file (88 bytes data) seemes to be created. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 mfabian@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |belphegor@belbel.or.jp ------- Comment #6 from mfabian@novell.com 2006-12-12 10:09 MST -------
When "fc-cache" completed, the only one file (88 bytes data) seemes to be created.
Where is this file created? It is so weird because I cannot reproduce this problem at all. Are you sure you have updated to the final release of 10.2 *completely*? What is the latest changelog entry of your fontconfig package? It should be: mike@linux:~$ rpm -q --changelog fontconfig | head * 月 11月 20 2006 - mfabian@suse.de - Meiryo is not good for monospace. * 水 11月 15 2006 - mfabian@suse.de - sync hinting and bitmap setup with fonts-config: • Bugzilla #215602: don't use the embedded bitmaps in the IPA fonts because they are only available in 12, 14, and 16 pixels. • Bugzilla #215602: Don't use the autohinter for fonts where it it distorts the metrics so badly that even the digits which should be monospaced are not monospaced at all anymore. mike@linux:~$ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 ------- Comment #7 from belphegor@belbel.or.jp 2006-12-13 06:14 MST -------
When "fc-cache" completed, the only one file (88 bytes data) seemes to be created. Where is this file created?
Sorry for missing detail. This file is created under /var/cache/fontconfig. The file name is "5ca8086aeacc9c68e81a71e7ef846b3b-x86.cache-2".
It is so weird because I cannot reproduce this problem at all.
Certainly this problem occurs on only one machine. The same problem occured on another machine, but it was disappered during modifying settings. I think this is very rare problem..
Are you sure you have updated to the final release of 10.2 *completely*?
Yes. No alpha and beta release is/was installed now and in past. Upgrading was 10.1-release (with some updates provided by SUSE) to 10.2-release. Installation source is DVD media which downloaded from BitTorrent. MD5SUM and checking media in YaST was successfully completed (I've checked before installation).
What is the latest changelog entry of your fontconfig package?
I've tried it. The same log was shown. micropc:/home/belphegor # rpm -q --changelog fontconfig | head * Mon Nov 20 2006 - mfabian@suse.de - Meiryo is not good for monospace. * Wed Nov 15 2006 - mfabian@suse.de - sync hinting and bitmap setup with fonts-config: ? Bugzilla #215602: don't use the embedded bitmaps in the IPA fonts because they are only available in 12, 14, and 16 pixels. ? Bugzilla #215602: Don't use the autohinter for fonts where it it distorts the metrics so badly that even the digits which should be monospaced are not monospaced at all anymore. I'm now currently debugging with gdb why fc-cache fails to write cache. I'll report later. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 belphegor@belbel.or.jp changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|belphegor@belbel.or.jp | Resolution| |FIXED ------- Comment #8 from belphegor@belbel.or.jp 2006-12-13 07:33 MST ------- An analysis was completed now. This problem ("failed to write cache") can occur when the last modified time of a font directory (example; "/usr/share/fonts/Type1") is future than the system time. In my machine, the last modified time of "/usr/share/fonts/" is "20 Dec 2006", but the system time is now "13 Dec 2006". If I corrected the last modified time as "12 Dec 2006", "fc-cache" finished without errors. It's careless mistake of me. I should apologize to you... Thank you for your kind support and making time for me. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 ------- Comment #9 from mfabian@novell.com 2006-12-15 08:34 MST ------- Nevertheless I think fontconfig should handle this case a little bit better. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=227385 ------- Comment #10 from belphegor@belbel.or.jp 2006-12-19 05:19 MST ------- Thank you for your kindness :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com