Error while open book in epub editor - OverflowError: cannot convert float infinity to integer

Bug #1807556 reported by ashed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

calibre, version 3.35.0

ERROR: Unhandled exception::
ОШИБКА: Необработанное прерывание:: <b>OverflowError</b>:cannot convert float infinity to integer

calibre 3.35 embedded-python: True is64bit: True
Linux-3.19.0-32-generic-x86_64-with-debian-jessie-sid Linux ('64bit', 'ELF')
('Linux', '3.19.0-32-generic', '#37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015')
Python 2.7.12
Linux: ('debian', 'jessie/sid', '')
Interface language: ru
Successfully initialized third party plugins: Save Composite Custom Columns (1, 1, 0) && BigOven Recipe Reader (1, 0, 1) && Author Book Count Hierarchy (1, 1, 8) && Zotero Metadata Importer (1, 0, 59) && Favourites Menu (1, 0, 4) && Goodreads (1, 3, 0) && all recipes Recipe Reader (1, 0, 1) && Annotations (1, 8, 0) && Webscription (1, 1, 0) && Search The Internet (1, 7, 6) && Generate Cover (1, 5, 21) && User Category (1, 5, 3) && Medical Reader (1, 0, 1) && Hyphenate This! (0, 0, 8) && EpubCheck (0, 1, 4) && Walk Search History (1, 3, 1) && Kindle covers (G) (0, 3, 0) && CalibreSpy (1, 0, 65) && Wikidata (1, 1, 0) && EpubSplit (2, 5, 0) && Recipe Reader (1, 0, 1) && Modify ePub (1, 3, 13) && Unplugged (1, 0, 0) && Resize Cover (1, 0, 2) && Save Virtual Libraries To Column (2, 0, 0) && OPML Importer (1, 0, 1) && Send by RSYNC (1, 0, 2) && Consolidate All Library Metadata (2, 0, 32) && Similar Stories (1, 0, 58) && QuarantineAndScrub (3, 6, 103) && Library Splitter (1, 0, 0) && Audit Log (1, 0, 8) && Overdrive Link (2, 29, 0) && Amazon.com Multiple Countries (1, 0, 0) && Author Book Count (2, 1, 5) && Wiki Reader (2, 1, 0) && Extract ISBN (1, 4, 4) && MultiColumnSearch (1, 0, 74) && EpubMerge (2, 4, 0) && GetFileName (0, 0, 12) && Embed Comic Metadata (1, 3, 8) && Count Pages (1, 8, 2) && View Manager (1, 4, 3) && Open With (1, 5, 10) && Import List (1, 3, 0) && Media File Importer (1, 0, 20) && Kindle hi-res covers (0, 4, 0) && Diaps Editing Toolbag (0, 3, 5) && Job Spy (1, 0, 137) && Save To Format (0, 0, 6) && Manage Series (1, 2, 8) && SmartEject (2, 1, 0) && Save Virtual Libraries To Column GUI (2, 2, 1) && Prettify Cover 0.9.12 && Find Duplicates (1, 6, 3) && Quality Check (1, 9, 11) && Clean Metadata (0, 0, 6) && Quick Preferences (1, 4, 1)
Traceback (most recent call last):
  File "site-packages/calibre/gui2/viewer/documentview.py", line 1382, in resizeEvent
  File "site-packages/calibre/gui2/viewer/main.py", line 833, in viewport_resize_started
  File "site-packages/calibre/gui2/viewer/documentview.py", line 466, in fget
  File "site-packages/calibre/gui2/viewer/documentview.py", line 353, in javascript
OverflowError: cannot convert float infinity to integer

Revision history for this message
ashed (craysy) wrote :

Error in picture:
This page contains error
error in line 6 at column 25: Entity 'reg' not defined

Revision history for this message
ashed (craysy) wrote :

FIXED:

Bug in &
<dc:title>RHCSA/RHCE Red Hat Linux Certification Study Guide, Seventh Edition (Exams EX200 & EX300)</dc:title>

Fix: edit line5 in content.opf
5:<dc:title>RHCSA/RHCE Red Hat Linux Certification Study Guide, Seventh Edition (Exams EX200 and EX300)</dc:title>

Revision history for this message
Kovid Goyal (kovid) wrote :

An unescaped & is illegal in the OPF file. The correct fix is to replace it with

&amp;

Changed in calibre:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.