Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-20-2019, 01:25 AM   #1
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 10-20-2019, 02:50 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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()"
this locks file.epub until you press enter

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.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-20-2019, 03:33 AM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 38,029
Karma: 152037714
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by kovidgoyal View Post
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()"
this locks file.epub until you press enter

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.
When I was testing, 2 in 6 times I got the failure so given the differences between software (this was on a Windows Insider preview) and hardware (running on a VMWare Workstation VM), not too surprising. As I said, in future, close the viewer and then re-open after editing is going to be my workflow.

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.
DNSB is offline   Reply With Quote
Old 11-13-2019, 10:40 AM   #4
nwgal
Member
nwgal began at the beginning.
 
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.
nwgal is offline   Reply With Quote
Old 11-13-2019, 10:58 AM   #5
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 11-13-2019, 01:32 PM   #6
nwgal
Member
nwgal began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Sep 2018
Location: Pacific Northwest
Device: Nook
Thank you!
nwgal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:24 AM.


MobileRead.com is a privately owned, operated and funded community.