[okular] [Bug 396137] Okular hangs when scrolling fast on both pdf and djvu documents

Tobias Deiminger bugzilla_noreply at kde.org
Thu Jan 30 08:59:29 GMT 2020


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

Tobias Deiminger <haxtibal at posteo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/kde/
                   |                            |okular/commit/593803b0a1d98
                   |                            |eba64aac38316aa521130b4ae78
         Resolution|---                         |FIXED

--- Comment #11 from Tobias Deiminger <haxtibal at posteo.de> ---
Git commit 593803b0a1d98eba64aac38316aa521130b4ae78 by Tobias Deiminger.
Committed on 30/01/2020 at 08:15.
Pushed by aacid into branch 'release/19.12'.

Fix render stop and high load due to timing issue

Text generation is connected to pixmap generation thread started signal.
However the signal may have been emitted faster than the connect could took
place,
and because started is fired only once, the connected lambda never got
executed.

generatePixmap tried to sync up with that never happening text generation
anyway
by means of scheduling itself. This lead to a infinite loop via a no more
sleeping QEventLoop.

Fixed by moving the connect in front of starting the thread.
Related: bug 396087, bug 403643

M  +2    -2    core/generator.cpp

https://invent.kde.org/kde/okular/commit/593803b0a1d98eba64aac38316aa521130b4ae78

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


More information about the Okular-devel mailing list