|
|
#1 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2021
Device: Calibre on Windows 10
|
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 What do I do?
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 |
|
|
|
|
|
#3 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 48,831
Karma: 174631406
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. |
|
|
|
|
|
#4 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,690
Karma: 28549304
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
|
|
|
|
|
|
#5 |
|
Junior Member
![]() 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?
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,690
Karma: 28549304
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It will be in the next release, you just need to wait.
|
|
|
|
|
|
#7 |
|
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jun 2021
Device: Calibre on Windows 10
|
Okay, thank you!
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| An unknown error prevented deletion of book | stumped | Calibre Companion | 4 | 06-15-2018 12:55 AM |
| Unknown Book Type error v0.9.44 | aegisrose | Calibre | 0 | 08-21-2013 01:15 PM |
| Book viewer error | dicknskip | Sigil | 11 | 07-21-2013 09:10 PM |
| ERROR: Could not open ebook: Unknown book type | wooboo | Conversion | 0 | 05-06-2012 09:55 PM |
| Throwing Up Error on Subscription | Gideon | Calibre | 0 | 02-20-2009 09:41 PM |