Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2021, 06:36 PM   #1
esommer7
Junior Member
esommer7 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2021
Device: Calibre on Windows 10
Question E-book viewer keeps throwing an Unknown Error

I'm trying to read a large EPUB textbook. When the e-book viewer tries to load a new section, such as when I click on a link in the TOC, it loads for a moment and then gives this error:
calibre, version 5.22.1
ERROR: Unhandled error: Unknown error

Traceback (most recent call last):
at Number.onload (userscript:viewer.js:17472:21)
at IframeBoss.content_loaded (userscript:viewer.js:26979:22)
at IframeBoss.apply_highlights_on_load (userscript:viewer.js:27808:21)
at range_from_cfi (userscript:viewer.js:14511:21)
at decode (userscript:viewer.js:13821:25)
at node_for_path_step (userscript:viewer.js:13761:20)
at node_at_index (userscript:viewer.js:13723:48)
TypeError: Cannot read property 'calibreRangeWrapper' of undefined
What do I do?
esommer7 is offline   Reply With Quote
Old 06-29-2021, 06:47 PM   #2
esommer7
Junior Member
esommer7 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2021
Device: Calibre on Windows 10
Here is a screencapture of the problem.
esommer7 is offline   Reply With Quote
Advert
Old 06-29-2021, 07:46 PM   #3
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,190
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Given that, AFAIK, calibre's e-book viewer is Chromium based, I suspect it is being fed an undefined object when reading a property or calling a method. In your case, CalibreRangeWrapper is the culprit.

I could be wrong since I only know enough about JavaScript to be dangerous.
DNSB is offline   Reply With Quote
Old 06-29-2021, 10:12 PM   #4
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That looks like a bug in chromium, there's an element node in the DOM without the dataset property. This should work around it https://github.com/kovidgoyal/calibr...96e202ee5beca2
kovidgoyal is offline   Reply With Quote
Old 06-29-2021, 10:23 PM   #5
esommer7
Junior Member
esommer7 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2021
Device: Calibre on Windows 10
thank you so much for your help!

I'm relatively new to both coding and calibre. How do I use that workaround?

esommer7 is offline   Reply With Quote
Advert
Old 06-29-2021, 11:03 PM   #6
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,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It will be in the next release, you just need to wait.
kovidgoyal is offline   Reply With Quote
Old 06-30-2021, 06:52 AM   #7
esommer7
Junior Member
esommer7 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jun 2021
Device: Calibre on Windows 10
Okay, thank you!
esommer7 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
An unknown error prevented deletion of book stumped Calibre Companion 4 06-14-2018 11:55 PM
Unknown Book Type error v0.9.44 aegisrose Calibre 0 08-21-2013 12:15 PM
Book viewer error dicknskip Sigil 11 07-21-2013 08:10 PM
ERROR: Could not open ebook: Unknown book type wooboo Conversion 0 05-06-2012 08:55 PM
Throwing Up Error on Subscription Gideon Calibre 0 02-20-2009 08:41 PM


All times are GMT -4. The time now is 10:09 PM.


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