Bugzilla – Bug 143715
New fontconfig slows down desktop
Last modified: 2006-02-23 17:33:10 UTC
The fontconfig_2.3.93.20060110-0.1_i586.rpm available from suse-projects causes a massive slowdown on my gnome desktop: - running SuSEconfig.fonts takes 10-15 minutes, EVERY time it is run, regardless of whether anything has changed or not - logging in to the desktop takes 3-4 times as long, and several panel applets fail - I presume they time out - opening any X based program is very slow Regressing to fontconfig-2.3.93.20060103-1.1_i586.rpm, rerunning SuSEconfig.fonts and restarting solves the problem.
Clinton> from suse-projects You mean from ftp://ftp.suse.com/pub/projects/m17n/10.0/ ?
(In reply to comment #1) > Clinton> from suse-projects > > You mean from ftp://ftp.suse.com/pub/projects/m17n/10.0/ ? > From http://ftp.gwdg.de/pub/linux/suse/apt/SuSE/10.0-i386/RPMS.suse-projects/ but yes - it looks like the same package
OK. I'll update that package soon. I trying to fix another serious bug in fontconfig right now, when I am successful I'll upload new packages.
Please try the updated packages which I have uploaded. Version should be 2.3.93.20060116-0.1, last changelog entry should be: * Wed Jan 18 2006 - mfabian@suse.de - add add-dir-early-in-FcDirScanConfig.patch to fix the problem reported in http://lists.freedesktop.org/archives/fontconfig/2006-January/001904.html
(In reply to comment #4) > Please try the updated packages which I have uploaded. Hi Mike - tried the package, and it is a bit better, but still far from usable. When I run SuSEconfig and it hits 'Creating cache files for Xft', there are three stages: - pre-dots : took 3 minutes - dots : quick (slow with the 20060110 package - post-dots : took 8 minutes 'generative java font setup' took 5 minutes. I rebooted, and it was really slow - 1.5 minutes to start the X server. 2.5 minutes to log on (to the point at which the notification panel appeared). I reran SuSEconfig to see if the delay was once off. This time, the pre-dots part was fast, but everything else was just as slow. Rebooted again, just as slow. By comparison, when I rolled back to the 20060103 package, the whole SuSEconfig.fonts took about 30 seconds to run. When fc-cache is running, it consumes 95% of the processor - sometimes with lots of disk accesses, sometimes with nothing. Similarly, the delay in logging in appears to be due to the font library - each application in turn consumes a lot of processor power as it loads. I assume this is because it is looking for fonts. Just in case it helps, these are the font packages I have installed (plus the microsoft core fonts): agfa-fonts-2003.03.19-15 ghostscript-fonts-std-8.15rc1-29 efont-unicode-0.4.2-6 free-ttf-fonts-1.0-161 fonts-config-20060104-1.1 xorg-x11-fonts-scalable-6.8.2-100 efont-serif-ttf-20010312-492 freefont-0.20040227-69 xorg-x11-fonts-75dpi-6.8.2-100 susefont-1.26.2-718 ghostscript-fonts-other-8.15rc1-29 hope this helps
I have updated the fontconfig packages in ftp://ftp.suse.com/pub/projects/m17n/10.0/ again (version 2.3.93.20060120). This should be another improvement. Although it is probably still not perfect.
where can i get fontconfig-2.3.93.20060103-1.1_i586.rpm
axell bin> where can i get fontconfig-2.3.93.20060103-1.1_i586.rpm Why do you want to try exactly this version? It was certainly very buggy as well. Just try the latest version which I uploaded to ftp://ftp.suse.com/pub/projects/m17n/10.0/RPMS/
(In reply to comment #6) > I have updated the fontconfig packages in > ftp://ftp.suse.com/pub/projects/m17n/10.0/ > again (version 2.3.93.20060120). > > This should be another improvement. Although it is probably still not perfect. For this version, the dot phase of SuSEconfig.fonts is much shorter, but the post dot phase is still very long, and applications take minutes to open. > (In reply to comment #8) > axell bin> where can i get fontconfig-2.3.93.20060103-1.1_i586.rpm > > Why do you want to try exactly this version? It was certainly > very buggy as well. Just try the latest version which I can understand why - the current version is so slow (at least on my system) as to be unusable. axell - I got the older version from here: http://rpm.pbone.net/index.php3/stat/4/idpl/2553914/com/fontconfig-2.3.93.20060103-1.1.i586.rpm.html
http://rpm.pbone.net/index.php3/stat/4/idpl/2553914/com/fontconfig-2.3.93.20060103-1.1.i586.rpm.html no file exist the latest fontconfig coz major slowdown to my suse 10 that why im asking
*** Bug 144645 has been marked as a duplicate of this bug. ***
*** Bug 144669 has been marked as a duplicate of this bug. ***
Clinton> I can understand why - the current version is so slow (at Clinton> least on my system) as to be unusable. But we must try to fix this, therefore it is helpful if you always try the latest version and report in detail here what doesn't work.
By the way, if you use updated fontconfig packages from ftp://ftp.suse.com/pub/projects/m17n/ please make sure that you always update the "fonts-config" package from the same directory where you found the "fontconfig" package as well. The new "fonts-config" script has been adapted to changes in the new "fontconfig", if you are using the an old "fonts-config" package it will certainly cause extra slowness.
jfyi: i fixed the slowness after fontconfig-update by "rm /root/.fonts.cache-2 /var/cache/fontconfig/*" and also removing .fonts.cache-2 in my homedir. After that and logging out / in, my system is fast again.
(In reply to comment #15) > jfyi: i fixed the slowness after fontconfig-update by "rm /root/.fonts.cache-2 > /var/cache/fontconfig/*" and also removing .fonts.cache-2 in my homedir. > After that and logging out / in, my system is fast again. > works for me too - now super fast
*** Bug 144652 has been marked as a duplicate of this bug. ***
add rm /root/.fonts.cache-2 to /etc/init.d/boot.local works thanks
(In reply to comment #18) > add rm /root/.fonts.cache-2 to /etc/init.d/boot.local works > > thanks > I mean that You need to add the same comand about /home/users.
*** Bug 146649 has been marked as a duplicate of this bug. ***
(In reply to comment #16) > (In reply to comment #15) > > jfyi: i fixed the slowness after fontconfig-update by "rm /root/.fonts.cache-2 > > /var/cache/fontconfig/*" and also removing .fonts.cache-2 in my homedir. > > After that and logging out / in, my system is fast again. > > > > works for me too - now super fast All programs now open more quickly than they used to. One exception is that starting the X-server with gdm is slower than before. Is there another cache I need to delete?
The relevant cache file should be in the home directory of the user who starts gdm. That user is root, i.e. the home directory should be "/root". But sometimes the home directory of root can be "/". Do you have a .fonts.cache-2 file in "/"?
I thought this was fixed. SuSEconfig --fonts during installation of beta3 took 35 minutes for me.
I don't know. I opened the bug against Beta2 which was the latest ISO on kirk.provo.novell.com last Friday.
(In reply to comment #22) > The relevant cache file should be in the home directory of the user > who starts gdm. That user is root, i.e. the home directory should > be "/root". But sometimes the home directory of root can be "/". > Do you have a .fonts.cache-2 file in "/"? I've deleted and recreated the .fonts.cache-2 files in /home/* and /root several times with varying results. Just done it mode 3 (ie without X server running) and it seems to have had the best effect - X startup is fast and applications open quickly. Why would it make a difference running it without X? The cache isn't changed by any of the running programs is it?
*** Bug 147292 has been marked as a duplicate of this bug. ***
*** Bug 147966 has been marked as a duplicate of this bug. ***
Changing Product to SUSE Linux 10.1.
adjusting severity. I think we got it all sorted out, but just for formal reasons :)
The numerous problems with fontconfig seem to be finally fixed now. Many thanks to Takashi IWAI <tiwai@suse.de> and Dirk Müller <dmueller@suse.de>. SUSE 10.1 Beta4 will already have fixed fontconfig packages. Packages for Beta3 are here: ftp://ftp.suse.com/pub/projects/m17n/10.1/RPMS/ Packages for SUSE 10.0 are here: ftp://ftp.suse.com/pub/projects/m17n/10.0/RPMS/ Closing as FIXED. Please test carefully and REOPEN if any problems remain.
FIXED for Beta4.
It still has problems for me on SuSE 10.0. When I run SuSEconfig, it tells me that numerous font caches are out of date and that I should run fc-cache -f as root. I have tried that, as well as rebooting, deleting all the fonts.cache/scale/dir files I could find and to no avail. I still get the error messages (as well as rendering my X server unstartable - something I'd deleted). After reinstalling all the affected packages (including fontconfig), running fc-cache -f, and SuSEconfig --module fonts, this is the output: fc-cache -vf fc-cache: "/usr/share/fonts": caching, 0 fonts, 1 dirs fc-cache: "/usr/share/fonts/wine": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 10 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/CID": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/URW": caching, 43 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/uni": caching, 2 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 144 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/util": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 398 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/local": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/truetype": caching, 472 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": caching, 0 fonts, 1 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": caching, 0 fonts, 0 dirs fc-cache: "/opt/kde3/share/fonts": caching, 3 fonts, 1 dirs fc-cache: "/opt/kde3/share/fonts/override": caching, 0 fonts, 0 dirs fc-cache: "/usr/lib/ooo-2.0/share/fonts": caching, 0 fonts, 1 dirs fc-cache: "/usr/lib/ooo-2.0/share/fonts/truetype": caching, 1 fonts, 0 dirs fc-cache: "/usr/lib/ooo-1.1/share/fonts": skipping, no such directory fc-cache: "/opt/OpenOffice.org/share/fonts": skipping, no such directory fc-cache: "/opt/staroffice6.0/share/fonts": skipping, no such directory fc-cache: "/usr/lib64/jvm/java-1.5.0-sun-1.5.0_01/jre/lib/fonts": skipping, no such directory fc-cache: "/usr/lib/jvm/java-1.5.0-sun-1.5.0_01/jre/lib/fonts": skipping, no such directory fc-cache: "/usr/lib/jvm/java-1.4.2-sun-1.4.2.06/jre/lib/fonts": caching, 0 fonts, 0 dirs fc-cache: "/usr/lib/jvm/java-1_4_2-sun-1.4.2.10/jre/lib/fonts": skipping, no such directory fc-cache: "/usr/X11R6/lib/Acrobat7/Resource/Font": caching, 16 fonts, 1 dirs fc-cache: "/usr/X11R6/lib/Acrobat7/Resource/Font/PFM": caching, 0 fonts, 0 dirs fc-cache: "/usr/local/share/fonts/": skipping, no such directory fc-cache: "/root/.fonts": skipping, no such directory fc-cache: succeeded obelix:/home/clinton # SUSEgreeter obelix:/home/clinton # SuSEconfig --module fonts Starting SuSEconfig, the SuSE Configuration Tool... Running module fonts only Reading /etc/sysconfig and updating the system... Executing /sbin/conf.d/SuSEconfig.fonts... Creating fonts.{scale,dir} files .......... /etc/fonts/suse-hinting.conf unchanged /etc/fonts/suse-bitmaps.conf unchanged Creating cache files for Xft ..FC: cache for /usr/X11R6/lib/X11/fonts is outdated, consider running "fc-cache -f" as root! FC: cache for /usr/X11R6/lib/X11/fonts is outdated, consider running "fc-cache -f" as root! FC: cache for /usr/X11R6/lib/X11/fonts is outdated, consider running "fc-cache -f" as root! ............................ generating java font setup writing /usr/lib/jvm/java-1.4.2-sun-1.4.2.10/jre/lib/font.properties.ja Finished.
I believe this is the symlink issue which we fixed today. AJ, can we put up new fontconfig rpms as fixed rpms?
I downloaded the packages available on ftp://ftp.suse.com/pub/projects/m17n/10.0/RPMS/ which are version 2.3.93.20060131 If that's NOT the latest, let me know when the new ones are up and I'll test them out again.
the latest changelog entry should be: Fri Feb 03 16:33:38 CET 2006 - mfabian@suse.de
(In reply to comment #35) > the latest changelog entry should be: > > Fri Feb 03 16:33:38 CET 2006 - mfabian@suse.de > In that case, no : * Thu Feb 02 2006 - tiwai@suse.de - Fixed language detections. Now :lang=xxx should work. * Thu Feb 02 2006 - dmueller@suse.de - add patch to never open or validate font caches when fc-cache -f is used.
I'm putting Mike's fontconfig RPMs from the m17n dir on ftp.opensuse.org now.
It's not the latest package. Andreas, could you put the ones on mbuild/bari-tiwai-77 for testing? Also, just to make sure, try to remove all files under /var/cache/fontconfig, then run fc-cache as root again. The warning appears if a validity check fails. It's either that the timestamp of the font directory is newer than the corresponding cache file, or that the cache doesn't exist. If the message appears even after the update to the latest package and regeneration of system caches, check which file in /var/cache/fontconfig/* corresponds to the directory warned (e.g. /usr/X11R6/lib/X11/fonts) by running fc-cat for each file. % cd /var/cache/fontconfig % for i in *; do echo $i; fc-cat $i | head -1; done Then you can know what's wrong there. (Or, it might be that the timestamp of that directory is screwed...)
Takashi, I put your latest file now on the server... the version number of the packages is 2.3.93.20060131-3
(In reply to comment #39) > Takashi, I put your latest file now on the server... > > the version number of the packages is 2.3.93.20060131-3 > Where can I download a copy for testing? I'm not from around these here Suse parts... :)
Not sure if this is of any help because I'm still using fontconfig-2.3.93.20060131-0.1. Will rerun when the new packages are available. > Also, just to make sure, try to remove all files under /var/cache/fontconfig, > then run fc-cache as root again. I had 400 odd files in /var/cache/fontconfig - deleted them all and ran fc-cache -f. It only generated 23 files. And I still have the warning when I run SuSEconfig. I'll try it again when the new packages are available for download. ls -l /var/cache/fontconfig: drwxr-xr-x 2 root root 1224 2006-02-04 12:16 . drwxr-xr-x 11 root root 288 2005-10-10 02:08 .. -rw-r--r-- 1 root root 364544 2006-02-04 12:16 0357813fd01911d26e40012cc37afd61.cache-2 -rw-r--r-- 1 root root 413696 2006-02-04 12:16 0b603ee0e9d5cb4fa2facb46225be8ca.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:15 1a6373b41cc8b1a8bb70c0d4702b0ffa.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 23002276f4a1426e25a8e612f94f2def.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 40cee161e0fe0937641fba5c8eb34a2e.cache-2 -rw-r--r-- 1 root root 8192 2006-02-04 12:16 43b8e6e859be885e1b4c4769cd73a3f9.cache-2 -rw-r--r-- 1 root root 12288 2006-02-04 12:16 47969f914275157783f61e1bd1ed3d89.cache-2 -rw-r--r-- 1 root root 434176 2006-02-04 12:16 4ab329b95251bfa96df993af29394e5c.cache-2 -rw-r--r-- 1 root root 45056 2006-02-04 12:15 4bb2d563570aa4a6604f1a918c8f8681.cache-2 -rw-r--r-- 1 root root 32768 2006-02-04 12:16 57fddf4aeff95a0b98650bf3f13c26fe.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 797f92e5b22f80352b57a2fae67f68bf.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 94eeeeb6fa18ca4fb999642d7df0fdde.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:15 b219960f116ab25f17b640e8e78a644e.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 bd8fd6dd519baf4e6bbfe1811997385b.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 c211f6911994e213edad0c84b065c05f.cache-2 -rw-r--r-- 1 root root 28672 2006-02-04 12:16 d0814903482a18ed8717ceb08fcf4410.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:15 d5596017884525514807a8393841d78c.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 d6cbef6a154fbb58de4106ebbde5ea2b.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 dce1b17513a8a75397033c457cb95b54.cache-2 -rw-r--r-- 1 root root 20480 2006-02-04 12:15 de3900050b586a5b68cdc42e4d82842b.cache-2 -rw-r--r-- 1 root root 4096 2006-02-04 12:16 f787dc6c1b5e9c2530076eb83b7defc2.cache-2 for i in *; do echo $i; fc-cat $i | head -1; done 0357813fd01911d26e40012cc37afd61.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/75dpi/fonts.cache-2 0b603ee0e9d5cb4fa2facb46225be8ca.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/misc/fonts.cache-2 1a6373b41cc8b1a8bb70c0d4702b0ffa.cache-2 fc-cat: printing directory cache for cache which would be named /usr/share/fonts/wine/fonts.cache-2 23002276f4a1426e25a8e612f94f2def.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/local/fonts.cache-2 40cee161e0fe0937641fba5c8eb34a2e.cache-2 fc-cat: printing directory cache for cache which would be named /usr/lib/ooo-2.0/share/fonts/fonts.cache-2 43b8e6e859be885e1b4c4769cd73a3f9.cache-2 fc-cat: printing directory cache for cache which would be named /usr/lib/ooo-2.0/share/fonts/truetype/fonts.cache-2 47969f914275157783f61e1bd1ed3d89.cache-2 fc-cat: printing directory cache for cache which would be named /opt/kde3/share/fonts/fonts.cache-2 4ab329b95251bfa96df993af29394e5c.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/truetype/fonts.cache-2 4bb2d563570aa4a6604f1a918c8f8681.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/URW/fonts.cache-2 57fddf4aeff95a0b98650bf3f13c26fe.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/Type1/fonts.cache-2 797f92e5b22f80352b57a2fae67f68bf.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/encodings/large/fonts.cache-2 94eeeeb6fa18ca4fb999642d7df0fdde.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/encodings/fonts.cache-2 b219960f116ab25f17b640e8e78a644e.cache-2 fc-cat: printing directory cache for cache which would be named /usr/share/fonts/fonts.cache-2 bd8fd6dd519baf4e6bbfe1811997385b.cache-2 fc-cat: printing directory cache for cache which would be named /opt/kde3/share/fonts/override/fonts.cache-2 c211f6911994e213edad0c84b065c05f.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/util/fonts.cache-2 d0814903482a18ed8717ceb08fcf4410.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/Acrobat7/Resource/Font/fonts.cache-2 d5596017884525514807a8393841d78c.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/CID/fonts.cache-2 d6cbef6a154fbb58de4106ebbde5ea2b.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/fonts.cache-2 dce1b17513a8a75397033c457cb95b54.cache-2 fc-cat: printing directory cache for cache which would be named /usr/lib/jvm/java-1.4.2-sun-1.4.2.06/jre/lib/fonts/fonts.cache-2 de3900050b586a5b68cdc42e4d82842b.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/X11/fonts/uni/fonts.cache-2 f787dc6c1b5e9c2530076eb83b7defc2.cache-2 fc-cat: printing directory cache for cache which would be named /usr/X11R6/lib/Acrobat7/Resource/Font/PFM/fonts.cache-2
*** Bug 148148 has been marked as a duplicate of this bug. ***
*** Bug 148226 has been marked as a duplicate of this bug. ***
*** Bug 148095 has been marked as a duplicate of this bug. ***
*** Bug 147527 has been marked as a duplicate of this bug. ***
The warnings at the first fc-cache are expected. Do you still get that warning when you start an app?
Clinton Gormley> Not sure if this is of any help because I'm still using Clinton Gormley> fontconfig-2.3.93.20060131-0.1. Will rerun when the new packages are Clinton Gormley> available. New packages for SuSE 10.0 are available now at ftp://ftp.suse.com/pub/projects/m17n/10.0/RPMS/ Packages for Beta3/Beta4 are here: ftp://ftp.suse.com/pub/projects/m17n/10.1/RPMS/ Last changelog entry should be: * Mon Feb 06 2006 - mfabian@suse.de - update to 2.3.93.20060206.16: improved version of seife-crash.diff now included upstream.
Closing as FIXED. Please REOPEN if problems remain with the latest version.
New packages with some more updates are available in ftp://ftp.suse.com/pub/projects/m17n/10.0/RPMS/ ftp://ftp.suse.com/pub/projects/m17n/10.1/RPMS/ Please test! (You need to update both the "fontconfig" and the "fonts-config" packages!).
Created attachment 66759 [details] Output when updating font cache
The attachment I created above) is the output when updating the font cache with the new font packages installed. Still getting the 'run fc-cache -f' messages, but it is fast and I don't see out of date messages when I open a gnome application. Running this on SuSE 10
Apart from the consider running "fc-cache -f" as root! FC: cache for /usr/X11R6/lib/X11/fonts is outdated, I can see nothing weird in this output. Clinton> but it is fast Then the problem in this bugreport is fixed. Clinton> and I don't see out of date messages when I open a Clinton> gnome application. Maybe because you don't start the gnome application from a terminal? There is a separate bug report for the 'run fc-cache -f' messages, see bug #148359. I'll add you to the CC:. If this is the only remaining problem, I can close this bug as FIXED again.
> I can see nothing weird in this output. > > Clinton> but it is fast > > Then the problem in this bugreport is fixed. Yes. > > Clinton> and I don't see out of date messages when I open a > Clinton> gnome application. > > Maybe because you don't start the gnome application from a terminal? > no - i did. I tried gcalctool and gedit from the terminal, both as root and as my user - no errors. > There is a separate bug report for the 'run fc-cache -f' messages, > see bug #148359. I'll add you to the CC:. Many thanks - and thanks for all the work.
*** Bug 147593 has been marked as a duplicate of this bug. ***