loading flow for some ebooks takes painfully long in linux

Bug #1774884 reported by eternyx on 2018-06-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Attached is a pretty good example.

Navigating to the beginning of chapter 2 on one computer (3.25, arch linux) takes about 3 minutes stuck on "loading flow".

Also tested in debian (3.24.2, debian testing, I originally thought it was debian unstable) on an older, slower computer, and it took closer to 10 minutes. The difference is probably entirely due to the cpu though (it's an early quad-core kentsfield), I don't think debian is broken in some way that Arch isn't.

In windows 10 (3.25), rendering lag switching to chapter 2 is not bad, about 1-2 seconds.

The html files for both parts of chapter 2 are small <200kb each, and while they embed a fair number of equation images, it's nothing absurd (about 500 images total in the ebook). There are a handful of embedded fonts but they're 200-400kb, and fairly standard (dejavu and times).

I cut out the rest of the chapters to make the file size more manageable, since chapter 2 was a good example.

Perhaps it has something to do with font rendering (unicode fonts?), or lots of tiny images, or unusual css, or some combination. I tried extracting the epub contents, viewing ch2 or ch2a html files in a real web browser (chrome, and even konqueror), and it's just about instant, not even the 1-2 second delay seen in ebook-viewer on windows.

There was a bug over a year ago related to loading of large fonts. I don't know whether that's related, but that one was marked fixed. https://bugs.launchpad.net/calibre/+bug/1658578

While internal file transitions are fast enough in most ebooks not to be annoying, the example in this bug might indicate that navigation is slower than it needs to be even for most ebooks where it's acceptably fast.

eternyx (runningdoglackey) wrote :
description: updated
description: updated

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments