Describe the bug
Once an EPUB file is opened, Foliate freezes while navigating around with the arrow keys. Clicking with the mouse unfreezes Foliate for a moment and moves past the pages depending on the number of times you pressed the arrow key. Eventually, Foliate stops responding to even mouse clicks and freezes completely and doesn't let you navigate the pages.
To Reproduce
Steps to reproduce the behavior:
Launch Foliate
Open an EPUB file
Navigate around the pages
Expected behavior
Expected behavior is that the EPUB file opens and its possible to read it without any hiccups
Screenshots
Here's a video of me launching an EPUB and navigating around it - you can clearly notice Foliate freezing unless I keep clicking on the screen.
Here's a graph of the CPU and memory usage of the process including its children, plotted with the command psrecord $(pgrep "gjs.*") --interval 1 --plot foliate-usage.png --include-children
Version:
Foliate version: 2.6.4-2
OS/Distribution and version: Fedora Linux 36
Desktop environment: KDE Plasma 5.27.3
Installation method: DNF
Additional context
There are also some other problems.
Once I open a book for the first time and quit Foliate and launch Foliate again, it doesn't load the book at all and the cog is spinning till forever. If I remove the book from the library and then open it again, the book loads just fine but the freezing and lagging is still there.
Describe the bug Once an EPUB file is opened, Foliate freezes while navigating around with the arrow keys. Clicking with the mouse unfreezes Foliate for a moment and moves past the pages depending on the number of times you pressed the arrow key. Eventually, Foliate stops responding to even mouse clicks and freezes completely and doesn't let you navigate the pages.
To Reproduce Steps to reproduce the behavior:
Expected behavior Expected behavior is that the EPUB file opens and its possible to read it without any hiccups
Screenshots Here's a video of me launching an EPUB and navigating around it - you can clearly notice Foliate freezing unless I keep clicking on the screen.
Here's a graph of the CPU and memory usage of the process including its children, plotted with the command
psrecord $(pgrep "gjs.*") --interval 1 --plot foliate-usage.png --include-children
Version:
Additional context There are also some other problems. Once I open a book for the first time and quit Foliate and launch Foliate again, it doesn't load the book at all and the cog is spinning till forever. If I remove the book from the library and then open it again, the book loads just fine but the freezing and lagging is still there.
EPUB file size: 255.4 KB