Bug 135080

Summary: KDE log in process is very slow
Product: [openSUSE] SUSE Linux 10.1 Reporter: Alexander Lavrinenko <lavrinenko_alex>
Component: KDEAssignee: E-mail List <kde-maintainers>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Alpha 3   
Target Milestone: ---   
Hardware: x86   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: KDM log in screenshot
After logging in

Description Alexander Lavrinenko 2005-11-22 21:41:30 UTC
Hello,

after I updated to Alpha3 logging in with KDM became extremely slow. Desktop shows quite quickly, but rest of it takes a lot of time (apps in system tray, etc.). I attach screenshot I managed to take while logging in, showing that even splash screen is displayed incorrectly.
Comment 1 Alexander Lavrinenko 2005-11-22 21:44:15 UTC
Created attachment 58234 [details]
KDM log in screenshot

logging in... splash screen just dissapeared leaving piece of it in the bottom-left corner. Note that there're no system tray apps yet - kontact, kcall, klipper, knotes, kxkbd, kmix and friends.
Comment 2 Alexander Lavrinenko 2005-11-22 21:49:59 UTC
Created attachment 58305 [details]
After logging in

One more note: fonts seen on first screenshot (with parts of splash screen) differ from what I get finally after everything is loaded OK. Maybe this is font rendering library takes so long? Check this shot - here's how my desktop look like when load complete.
Comment 3 Stephan Kulow 2005-11-23 10:04:59 UTC
that the splash screen disappears after the wallpaper and kicker is loaded is a feature. That the rest of the desktop takes a while is ok too, but "extremely slow" is not. 

What gives time fc-match 'sans serif'?
Comment 4 Alexander Lavrinenko 2005-11-23 20:48:43 UTC
fc-match command results:
alex@barracuda:~> time fc-match 'sans serif'
arial.ttf: "Arial" "Regular"

real    0m0.480s
user    0m0.356s
sys     0m0.016s
alex@barracuda:~> time fc-match 'sans serif'
arial.ttf: "Arial" "Regular"

real    0m0.340s
user    0m0.288s
sys     0m0.016s
alex@barracuda:~> time fc-match 'sans serif'
arial.ttf: "Arial" "Regular"

real    0m0.416s
user    0m0.368s
sys     0m0.024s
alex@barracuda:~> time fc-match 'sans serif'
arial.ttf: "Arial" "Regular"

real    0m0.341s
user    0m0.328s
sys     0m0.012s
alex@barracuda:~>

Note: I added some extra fonts into font path (xorg.conf), but not too much:
windows xp fonts (copied from windows that came with my laptop; monotype's book antiqua, arial black, arial narrow, arial unicode ms, bookman old style, century, garamond, century gothic, monotype corsiva, microsoft's batang, ms outlook, wingdings 2, wingdings 3, simsun, haettenschweiler, ricoh's ms mincho and so on), sun OpenWindows PCF fonts downloaded with olgx/xview ages ago (edict's fixed, lucida, lucidatypewriter, sun's open look cursor and open look glyph), and some other PCF fonts by edict (avant garde, courier, helvetica, times, menu and terminal).

I used to have these fonts for more then 5 years together with linux without any problems, and there was no problem with SuSE 9.x and Alpha 1...
Comment 5 Stephan Kulow 2005-11-23 20:58:50 UTC
fc-list | wc -l ?

0.4s is way too slow for fc-match. Please attach a strace - does fc-cache -v output something?
Comment 6 Alexander Lavrinenko 2005-11-24 17:53:53 UTC
Both commands take some time:
alex@barracuda:~> fc-list | wc -l
297
alex@barracuda:~> fc-cache -v
fc-cache: "/usr/share/fonts": skipping, no such directory
fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, no write access
fc-cache: "/opt/kde3/share/fonts": skipping, no write access
fc-cache: "/usr/lib/ooo-2.0/share/fonts": skipping, no write access
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": skipping, no such directory
fc-cache: "/usr/X11R6/lib/Acrobat7/Resource/Font": skipping, no such directory
fc-cache: "/usr/local/share/fonts/": skipping, no such directory
fc-cache: "/home/alex/.fonts": skipping, no such directory
fc-cache: succeeded
alex@barracuda:~>

Here's output when run as root:
barracuda:~ # fc-list | wc -l
297
barracuda:~ # fc-cache -v
fc-cache: "/usr/share/fonts": skipping, no such directory
fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, 0 fonts, 16 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, 398 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/truetype": skipping, 70 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/URW": caching, 68 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": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 132 fonts, 0 dirs
Segmentation fault
barracuda:~ #
barracuda:~ # fc-cache -v
fc-cache: "/usr/share/fonts": skipping, no such directory
fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, 0 fonts, 16 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, 398 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/truetype": skipping, 70 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/URW": skipping, 68 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": skipping, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 132 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/util": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/uni": caching, 2 fonts, 0 dirs
Segmentation fault
barracuda:~ # time fc-cache -v
fc-cache: "/usr/share/fonts": skipping, no such directory
fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, 0 fonts, 16 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, 398 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/truetype": skipping, 70 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/URW": skipping, 68 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": skipping, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": skipping, 132 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/util": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/uni": caching, 2 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/openwin": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/pluspack": caching, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/windows": caching, 86 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc-orig": skipping, 130 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc-custom-alex": skipping, 132 fonts, 0 dirs
fc-cache: "/opt/kde3/share/fonts": caching, 1 fonts, 1 dirs
Segmentation fault

real    0m2.244s
user    0m1.916s
sys     0m0.036s
barracuda:~ # time fc-cache -v
fc-cache: "/usr/share/fonts": skipping, no such directory
fc-cache: "/usr/X11R6/lib/X11/fonts": skipping, 0 fonts, 16 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": skipping, 398 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/cyrillic": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/truetype": skipping, 70 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": skipping, 29 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/CID": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/URW": skipping, 68 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": skipping, 0 fonts, 1 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/local": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc": skipping, 132 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/util": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/uni": skipping, 2 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/openwin": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/pluspack": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/windows": skipping, 86 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc-orig": skipping, 130 fonts, 0 dirs
fc-cache: "/usr/X11R6/lib/X11/fonts/misc-custom-alex": skipping, 132 fonts, 0 dirs
fc-cache: "/opt/kde3/share/fonts": caching, 1 fonts, 1 dirs
fc-cache: "/opt/kde3/share/fonts/override": skipping, 0 fonts, 0 dirs
fc-cache: "/usr/lib/ooo-2.0/share/fonts": skipping, 0 fonts, 1 dirs
fc-cache: "/usr/lib/ooo-2.0/share/fonts/truetype": skipping, 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": skipping, no such directory
fc-cache: "/usr/X11R6/lib/Acrobat7/Resource/Font": skipping, no such directory
fc-cache: "/usr/local/share/fonts/": skipping, no such directory
fc-cache: "/root/.fonts": skipping, no such directory
fc-cache: succeeded

real    0m2.182s
user    0m0.012s
sys     0m0.020s
barracuda:~ #


xorg.conf Files section:
Section "Files"
  FontPath     "/usr/X11R6/lib/X11/fonts/windows"
  FontPath     "/usr/X11R6/lib/X11/fonts/openwin"
  FontPath     "/usr/X11R6/lib/X11/fonts/pluspack"
  FontPath     "/usr/X11R6/lib/X11/fonts/misc:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/local"
  FontPath     "/usr/X11R6/lib/X11/fonts/75dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/100dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/Type1"
  FontPath     "/usr/X11R6/lib/X11/fonts/URW"
  FontPath     "/usr/X11R6/lib/X11/fonts/Speedo"
  FontPath     "/usr/X11R6/lib/X11/fonts/PEX"
  FontPath     "/usr/X11R6/lib/X11/fonts/cyrillic"
  FontPath     "/usr/X11R6/lib/X11/fonts/latin2/misc:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/latin2/Type1"
  FontPath     "/usr/X11R6/lib/X11/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/baekmuk:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/japanese:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/kwintv"
  FontPath     "/usr/X11R6/lib/X11/fonts/truetype"
  FontPath     "/usr/X11R6/lib/X11/fonts/uni:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/CID"
  FontPath     "/usr/X11R6/lib/X11/fonts/ucs/misc:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/hellas/misc:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/hellas/Type1"
  FontPath     "/usr/X11R6/lib/X11/fonts/misc/sgi:unscaled"
  FontPath     "/usr/X11R6/lib/X11/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  InputDevices "/dev/ttyS0"
  InputDevices "/dev/ttyS1"
  InputDevices "/dev/ttyS2"
  InputDevices "/dev/ttyS3"
  InputDevices "/dev/ttyS4"
  InputDevices "/dev/ttyS5"
  InputDevices "/dev/ttyS6"
  InputDevices "/dev/ttyS7"
  InputDevices "/dev/ttyS8"
  InputDevices "/dev/psaux"
  InputDevices "/dev/logibm"
  InputDevices "/dev/sunmouse"
  InputDevices "/dev/atibm"
  InputDevices "/dev/amigamouse"
  InputDevices "/dev/atarimouse"
  InputDevices "/dev/inportbm"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/mouse"
  InputDevices "/dev/usbmouse"
  InputDevices "/dev/adbmouse"
  InputDevices "/dev/input/mice"
  InputDevices "/dev/input/event0"
  InputDevices "/dev/pointer0"
  InputDevices "/dev/pointer1"
  InputDevices "/dev/pointer2"
  InputDevices "/dev/pointer3"
EndSection
Comment 7 Lubos Lunak 2005-11-25 13:32:59 UTC
Try downgrading your fontconfig (and run SuSEconfig again).
Comment 8 Alexander Lavrinenko 2005-11-26 15:30:59 UTC
After downgrade fontconfig to 2.3.2.20050721-10 taken from OSS-stable log in process is considerably faster. And there're no segfaults on consequent runs of fc-cache -v. But now fc-list | wc -l shows 288 instead of 297. fc-match takes about the same time, but shows now Verdana instead of Arial:
alex@barracuda:~> time fc-match 'sans serif'
verdana.ttf: "Verdana" "Regular"

real    0m0.326s
user    0m0.316s
sys     0m0.008s
alex@barracuda:~> time fc-match 'sans serif'
verdana.ttf: "Verdana" "Regular"

real    0m0.327s
user    0m0.324s
sys     0m0.000s
alex@barracuda:~> time fc-match 'sans serif'
verdana.ttf: "Verdana" "Regular"

real    0m0.329s
user    0m0.260s
sys     0m0.064s
alex@barracuda:~> time fc-match 'sans serif'
verdana.ttf: "Verdana" "Regular"

real    0m0.328s
user    0m0.324s
sys     0m0.004s
alex@barracuda:~>
Comment 9 Stephan Kulow 2005-11-30 13:48:09 UTC
please try the packages from Factory