[okular] [Bug 451059] Okular freezes for up to 10 seconds when loading a document or switching windows

Amaury Pouly bugzilla_noreply at kde.org
Mon Apr 11 22:48:52 BST 2022


https://bugs.kde.org/show_bug.cgi?id=451059

--- Comment #10 from Amaury Pouly <amaury.pouly at gmail.com> ---
(In reply to Amaury Pouly from comment #9)
> I cannot explain yet *how* this can possibly lock for 10 seconds however.
I think this behaviour comes from QLockFile:
https://github.com/RSATom/Qt/blob/master/qtbase/src/corelib/io/qlockfile.cpp
In QLockFile::tryLock(), the sleep time is doubled on every failure, up to 5
seconds. So if all okular instances rush to lock the file, it is actually
possible that this happens.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list