Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
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
Old 10-29-2019, 10:52 PM   #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,351
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That looks like an issue in the html parser calibre uses. Can you send me one of these problem books before doing any fixing.
kovidgoyal is offline   Reply With Quote
Advert
Old 10-30-2019, 12:22 AM   #3
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
Quote:
Originally Posted by kovidgoyal View Post
That looks like an issue in the html parser calibre uses. Can you send me one of these problem books before doing any fixing.
Sure, I'll be happy to. The next one I run into I'll just stop and send it as is.
retiredbiker is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Error, need help! Seeker407 Conversion 7 03-21-2023 12:48 AM
Memory Error when trying to do conversion Mr_IT Library Management 0 03-19-2012 03:11 PM
Memory Error hairybiker Calibre 0 04-02-2010 05:54 AM
Another Memory Error Ambermonk Calibre 2 03-14-2010 01:29 PM


All times are GMT -4. The time now is 03:50 AM.


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