Error on search in text
Ever since one of the latest versions (version 5, I don't know) I frequently get an error message when looking for a string of text in an e-book.
A number of search actions will work fine, but every now and then I get this message. I will see two hits listed in the bottom left corner, for instance. But when I want to click on the first of them, I get that message. Only if I close the book and re-open it can I perform the same search without errors.
Here's one such error message:
calibre, version 5.3.0
ERROR: Error in message handler: IndexSizeError: Failed to execute 'setBaseAndExtent' on 'Selection': The offset 153 is larger than the node's length (0).
Traceback (most recent call last):
at IframeClient.handle_message (userscript:viewer.js:16184:21)
at IframeBoss.show_search_result (userscript:viewer.js:25661:17)
at select_search_result (userscript:viewer.js:18652:13)
at select_find_result (userscript:viewer.js:18623:17)
Error: Failed to execute 'setBaseAndExtent' on 'Selection': The offset 153 is larger than the node's length (0).
|