(ebook-viewer) weird behaviour dealing with current page in ePub

Bug #1360621 reported by Pablo Rodríguez on 2014-08-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

With some books (such http://www.mobileread.com/forums/attachment.php?attachmentid=126930&d=1408265519) the ebook-viewer from calibre-2.0 has problems to deal with the current page of the ePub document.

It happens both with the default option to remember current page when closing or with the new implemented feature (many thanks for it) to reload the ePub document at the current page.

The weird thing is that the ePub file is opened/reloaded on other page, but it goes to the right previous or next page.

The issue can be reproduced following these steps:

- Open the ePub file form the URL above and open it with ebook-viewer.
- Keep the space bar pressed for a couple of seconds.
- Press the F5 key to reload the book.
- Book is reloaded on page 4 (in this particular book).
- If you go to previous or next page, it will be the right page.

So, it seems that ebook-viewer retains the right page, but for some reason it isn’t able to display it.

Could you fix this issue?

Many thanks for your help and your excellent work,


As far as I can see, the reloading is happening correctly, it is just
that the page number display is not being updated after reloading. So
when you click prev page/next page, the page number display gets updated
and everything is fine.

Is that what you mean?

 status incomplete

Changed in calibre:
status: New → Incomplete

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

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
Pablo Rodríguez (ousia) wrote :

Many thanks for your fast fix, Kovid.

I have applied the patch and it works fine.

Many thanks for your help,


To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers