'Edit Book' corrupts epub when find & replace fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Updated to 1.22 yesterday, today while editing some epubs to fix formatting problems/typos I've twice had it fail and error out, resulting in corruption to the epub file. As far as I can tell, it happens when I run a find and replace on something it is unable to find. For example, the second time it happened I was running a find for " </p>" (without quotes) and replacing with "</p>", in order to eliminate unnecessary spaces inserted prior to paragraph breaks. As often occurs, it took multiple passes to remove them all, so the results were something like replaced 258, 36, 1 and then on the next pass instead of reporting 0 it errored out.
The error message from that is:
calibre, version 1.22.0
ERROR: Unhandled exception: <b>TypeError<
calibre 1.22 [64bit] isfrozen: True is64bit: True
Windows-
('Windows', '7', '6.1.7601')
Python 2.7.5
Windows: ('7', '6.1.7601', 'SP1', 'Multiprocessor Free')
Traceback (most recent call last):
File "site-packages\
File "site-packages\
File "site-packages\
TypeError: QAbstractItemMo
Attempts to do any further finds generates further errors. If I save the epub after the error, the epub file ends up being corrupted. Attempting to open it again gets the following error:
calibre, version 1.22.0
ERROR: Could not open ebook: D:\Calibre Library\
Traceback (most recent call last):
File "site-packages\
File "threading.py", line 761, in run
File "site-packages\
File "site-packages\
File "site-packages\
ValueError: D:\Calibre Library\
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased