https://bugs.kde.org/show_bug.cgi?id=451059
Bug ID: 451059
Summary: Okular freezes for up to 10 seconds when loading a
document or switching windows
Product: okular
Version: 21.12.2
Platform: Debian unstable
https://bugs.kde.org/show_bug.cgi?id=451059
Amaury Pouly changed:
What|Removed |Added
CC||amaury.po...@gmail.com
--
You are receiving
https://bugs.kde.org/show_bug.cgi?id=451059
--- Comment #3 from Amaury Pouly ---
(In reply to Albert Astals Cid from comment #2)
> I understand you don't have tabs enabled, right?
Yes that's correct.
--
You are receiving this mail because:
You are the assignee for the bug.
https://bugs.kde.org/show_bug.cgi?id=451059
--- Comment #5 from Amaury Pouly ---
(In reply to Albert Astals Cid from comment #4)
> I just tried with 32 okular instances open and the canOpenDocs elapsed time
> for all the instances when opening a new one never took more than 75ms
>
https://bugs.kde.org/show_bug.cgi?id=451059
--- Comment #7 from Amaury Pouly ---
(In reply to Albert Astals Cid from comment #6)
> But if it happens just by switching virtual desktops, it has nothing to do
> with dbus?
>
> dbus is not involved in that scenario that i can see
T
https://bugs.kde.org/show_bug.cgi?id=451059
--- Comment #9 from Amaury Pouly ---
Hi, I have made progress on this (I think)!
By running okular in a debugger and stopping the program when it freezes, I
have noticed that almost every time the backtrace is as follows (slightly
abbreviated):
#0
https://bugs.kde.org/show_bug.cgi?id=451059
--- Comment #10 from Amaury Pouly ---
(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/qtb