[Fontconfig-bugs] [Bug 100096] fontconfig update racy, causes update storm that freezes the desktop

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jul 30 10:27:00 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100096

--- Comment #1 from Akira TAGOH <akira at tagoh.org> ---
(In reply to Jan Alexander Steffens (heftig) from comment #0)
> Maybe fontconfig can at least reduce the impact by rechecking whether the
> cache is up-to-date after acquiring the lock?

Maybe not possible. that is why this is racy. one who knows the targeted
directories is updated is only one or a few where is kicking updates. but it
isn't necessarily true that the updated caches contains the updates coming
during updating.

>                                               This way there should be only
> one unexpected cache update instead of a dozen or more.

Thus this isn't true.
If the updates on fonts directories is often happening, maybe good to increase
the rescan interval in the config to check. other option is to implement a
feature stops updating caches in fontconfig during loading caches. this will
prevents unexpected freeze on runtime. but someone needs to take care of the
outdated caches instead of fontconfig and re-create caches as needed then.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20170730/15330540/attachment.html>


More information about the Fontconfig-bugs mailing list