![]() |
#1 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,029
Karma: 152037714
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Issue with calibre viewer
This is more of a operator issue but... I had a book open in calibre viewer and noticed that a chapter started on the same page as the previous chapter. I opened the epub in Sigil and found the two chapters were in the same file. I split the file, rebuilt the TOC, etc. and saved the epub. I went back to the calibre viewer and hit F5 to refresh. I ended up with a spinning cursor for ~5 minutes before I force closed the viewer. Tried this several times and 1 of the next 5 trials gave the same freeze with the 4 successful attempts giving the "Preparing book for first read" message and continuing after a few seconds.
If I close the viewer before editing and reopen it after the edit/save, no failures in those tests. Probably the best way to handle this task but since calibre's viewer does not seem to open the file in exclusive mode, I had hoped to save a few clicks. OS is Windows 10 build 19002.1 (191010-1436), calibre version is 4.2 x64. Last edited by DNSB; 10-20-2019 at 02:03 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,162
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I cant replicate, steps I tried:
Code:
calibre-debug -c "from calibre.utils.lock import windows_open as open; f = open('file.epub'); f.seek(1); input()" then tried refreshing file.epub in the viewer, it pops up an error about the file being locked, as expected. I dont know is sigil uses atomic file writing, but if not it might be that the eub was in an inconsistent state, causing issues. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 38,029
Karma: 152037714
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I was originally expecting Sigil to not be able to save the file while it was open in viewer so was happy to save a couple of clicks/seconds. |
|
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 11
Karma: 10
Join Date: Sep 2018
Location: Pacific Northwest
Device: Nook
|
Ever since the last update, I get the message "preparing book for first read" for every book I open! This is new, it's never happened before. It doesn't take long, usually just a few seconds. But I'm curious if this is normal. Thanks.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,162
Karma: 22670164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That happens th efirst time you open any book. But only the first time.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 11
Karma: 10
Join Date: Sep 2018
Location: Pacific Northwest
Device: Nook
|
Thank you!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre e-book viewer contents display [issue][help] | read4t2 | Calibre | 3 | 02-10-2019 08:36 PM |
E-book viewer issue | slayerwpww | Calibre | 2 | 12-02-2018 12:58 PM |
Issue in Calibre Viewer 3.6 | JSWolf | Calibre | 1 | 08-04-2017 09:13 AM |
calibre eBook Viewer - Table of Contents Issue(s) | Al Adams | Calibre | 8 | 07-17-2017 04:00 AM |
Issue with built in viewer | rcuadro | Calibre | 3 | 01-19-2010 10:02 AM |