[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 Christoph Feckchanged: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #9 from Christoph Feck --- Thanks for the update; closing. -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 --- Comment #8 from Deepak Mittal--- On further investigation of strace output, and doing some grepping and filtering I found out the stat calls were made because of .glif files in /usr/share/fonts directory. All of these files were basically sources of source-code-pro font (https://github.com/adobe-fonts/source-code-pro). I deleted the entire directory of that font and that has fixed the problem. I'll file this bug with them and recommend them to not store source glyph files in the /usr/share/fonts. You can close this bug. Thankyou! -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 --- Comment #7 from Deepak Mittal--- This somehow looks similar to this bug is also affecting inkscape and GIMP - https://bugs.launchpad.net/ubuntu/+source/fontconfig/+bug/1614870 -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 --- Comment #6 from Deepak Mittal--- `sudo fc-cache -sf` didn't help. It's still making 55k stat calls in the /usr/share/fonts directory. -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 Rex Dieterchanged: What|Removed |Added CC||rdie...@gmail.com --- Comment #5 from Rex Dieter --- In contrast, for me: % time seconds usecs/call callserrors syscall -- --- --- - - 20.560.004742 3 1678 298 stat 11.910.002747 2 1144 480 access 10.590.002444 3 790 657 recvmsg 9.940.002294 2 110130 lstat 7.840.001809 4 46433 open For me, the only fonts that get opened are the ones actually *used* in the dialog. Otherwise, I also see lots of hits for stuff like: open("/var/cache/fontconfig//711dae798b6bff4224ea2776edcb5c93-le64.cache-7", O_RDONLY|O_CLOEXEC) = 6 which is obviously a fontconfig cache. If I had to speculate, one possibility is your fontconfig cache either doesn't exist or is invalidated (old?). Maybe try running (as root): fc-cache -sf -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 Dr. Chapatinchanged: What|Removed |Added CC||yy...@gmx.com -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 --- Comment #4 from Deepak Mittal--- Someone else having the same issue here: https://forums.opensuse.org/showthread.php/519936-Installing-new-fonts-in-Plasma-5-left-me-with-a-very-slow-system -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 --- Comment #3 from Deepak Mittal--- Also see this: grep 'usr/share/fonts' /tmp/dolphin | grep '^stat' | wc -l 47570 -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 --- Comment #2 from Deepak Mittal--- Yes pretty sure. This doesn't just happen on dialog boxes, so you may change the "product" for this bug. This happens with every KDE application. I thought dolphin and gwenview were generally slow, but when I moved bulk of my fonts outside of /usr/share/fonts, everything became snappy. Every KDE application is parsing the fonts directory, which is making the system unusably slow. This is first few lines from strace -C dolphin: % time seconds usecs/call callserrors syscall -- --- --- - - 55.310.000521 1 850 getdents 17.520.000165 0 55772 5920 stat 7.110.67 0 24605 127 lstat 5.200.49 0 11790 read 4.460.42 0 6217 close 3.930.37 0 7943 1735 open 3.610.34 0 6343 1654 readlinkat 1.060.10 0 11007 fstat 0.850.08 0 3742 359 access 0.530.05 0 2277 getrandom 0.420.04 0 1277 lseek 0.000.00 0 1299 write 0.000.00 0 802 poll 0.000.00 0 597 mmap 0.000.00 0 358 mprotect 0.000.00 0 111 munmap 0.000.00 067 brk 0.000.00 010 rt_sigaction 0.000.00 0 2 rt_sigprocmask 0.000.00 054 ioctl 0.000.00 0 453 writev 0.000.00 015 select Bulk of the stat calls are because of the fonts in /usr/share/fonts. I saved the strace output in /tmp/dolphin and then ran: grep 'usr/share/fonts' /tmp/dolphin | wc -l ⏎ 47834 Clearly it's a big issue and it needs to be fixed. -- You are receiving this mail because: You are watching all bug changes.
[kdialog] [Bug 378227] KDialog scans all fonts directory before showing dialog box making it super slow
https://bugs.kde.org/show_bug.cgi?id=378227 --- Comment #1 from Christoph Feck--- Are you sure the 5 stat calls are from /usr/share/fonts? Qt should only ask fontconfig to parse the font database once. What you might see are stat calls for the icon themes. -- You are receiving this mail because: You are watching all bug changes.