View Single Post
Old 10-29-2019, 10:08 PM   #1
retiredbiker
Evangelist
retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.retiredbiker ought to be getting tired of karma fortunes by now.
 
retiredbiker's Avatar
 
Posts: 450
Karma: 3886916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Kobo Forma
Memory Error in Editor

Hi all,
I've recently been getting an intermittent memory error in the Editor. It usually starts when I do a bug check or a fix html (all files). Once it happens, it comes up for most operations: bug check, fix html, smarten punctuation, edit toc, spell check, and so on.

There is 3.8 gig of free memory; I can go to another book and do all the functions with no problem. Come back to this book, and it is still there.

The most recent book, after saving, exiting, and editing again, it let me run the bug check just once...then anything else gave the error. That one bug check found three instances of orphan </span> endings. It would not take me to the errors--memory error on even that--so I found them manually and fixed them. Instantly, no more memory error, all back to normal. It never came back as I finished an edit session on this book.

It's happened maybe 5 out of the last 100 editing sessions, and this is the first time I've been able to recover...other times I've had to reload the book and start over.

Anybody have any ideas on this? Details:

Calibre 4.2
Ubuntu 18.04.03
Error message:
Spoiler:
calibre, version 4.2.0
ERROR: Unhandled exception: <b>MemoryError</b>:

calibre 4.2 embedded-python: True is64bit: True
Linux-5.0.0-32-generic-x86_64-with-debian-buster-sid Linux ('64bit', 'ELF')
('Linux', '5.0.0-32-generic', '#34~18.04.2-Ubuntu SMP Thu Oct 10 10:36:02 UTC 2019')
Python 2.7.16
Linux: ('debian', 'buster/sid', '')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 21, 0) && DeDRM (6, 6, 1) && Package KFX (from KFX Input) (1, 21, 0) && KoboTouchExtended (3, 1, 5) && Kobo Utilities (2, 9, 0) && Find Duplicates (1, 6, 3) && KFX metadata reader (from KFX Input) (1, 21, 0) && KFX Input (1, 21, 0) && EpubCheck (0, 2, 1) && Goodreads (1, 4, 0) && Diaps Editing Toolbag (0, 3, 5) && Reading List (1, 6, 6) && Count Pages (1, 8, 2) && Quality Check (1, 9, 11) && Job Spy (1, 0, 166) && Modify ePub (1, 4, 0) && Libgen Fiction (0, 1, 0) && EpubSplit (2, 7, 0) && NormComment (0, 0, 2) && KindleUnpack - The Plugin (0, 81, 5)
Traceback (most recent call last):
File "site-packages/calibre/gui2/tweak_book/boss.py", line 875, in fix_html
File "site-packages/calibre/ebooks/oeb/polish/pretty.py", line 228, in fix_all_html
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 610, in parsed
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 580, in parse
File "site-packages/calibre/ebooks/oeb/polish/container.py", line 207, in parse_xhtml
File "site-packages/calibre/ebooks/oeb/polish/parsing.py", line 92, in parse
File "site-packages/calibre/ebooks/oeb/polish/parsing.py", line 29, in parse_html5
File "site-packages/html5_parser/__init__.py", line 201, in parse
MemoryError


TIA...
retiredbiker is offline   Reply With Quote