View Single Post
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: 45,432
Karma: 27757438
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 online now   Reply With Quote