Memory Error/ Failed to convert to opf for id:
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Not sure if this is due to the large number of books, or an error processing a particular file. I uninstalled and re-installed, no difference. Calibre goes into an infinite loop, ramping up memory to about 2.8 GB, then dropping back down to about 300MB and trying again. The debug lists:
calibre 1.27 isfrozen: True is64bit: False
Linux-3.
('Linux', '3.2.0-
Python 2.7.5
Linux: ('debian', 'wheezy/sid', '')
Starting up...
Failed to read metadata from font file: /usr/share/
Failed to read metadata from font file: /usr/share/
Failed to convert to opf for id: 229273
Traceback (most recent call last):
File "site-packages/
File "site-packages/
File "site-packages/
File "lxml.etree.pyx", line 1413, in lxml.etree.
File "apihelpers.pxi", line 123, in lxml.etree.
File "apihelpers.pxi", line 111, in lxml.etree.
File "apihelpers.pxi", line 264, in lxml.etree.
File "apihelpers.pxi", line 1327, in lxml.etree._utf8 (src/lxml/
MemoryError
Failed to convert to opf for id: 229273
This repeats over and over, about every 5 seconds.
Running Ubuntu 12.04.
I reported this once before, but didn't have the debug output. Just thought you might want to be aware of a potential infinite loop based on a memory request error. Or a memory request error due to a failure to convert, possibly. Good Luck, and thanks for the great program. I have 4 GB on this machine, may upgrade to 8 to see if it gets past the memory error. Calibre reports 220280 books in the library, but the failure is on id 229273. The GUI is working, albeit very slowly. Some task is using 100% of one CPU for processing this.
I uninstalled and reinstalled. Then ran Library Maintenance/Check Library. It vacuumed for quite a while, and then I had it clean up the stuff it said needed cleaning. Still no luck. Rescan finds no errors.
Will probably work around by starting a new library and copying files into it. Will try rebuilding database first.
Under debug it cycles between 2.3 and 2.6 GB on each retry.
Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.
status fixreleased