calibre viewer shows "Unhandled error: Uncaught InvalidStateError: Failed to execute 'surroundContents' on 'Range'" after RegExp searching in epub-file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Environment:
xUbuntu 18.04.5
Python 3.6.9
calibre 5.7.2; was installed over the 3.21.0 version (from of.ubuntu-
sudo -v && wget -nv -O- https:/
STR:
1. open the book from attachment in Calibre E-book viewer
2. open the Search dialog (Ctrl+F), select Regex type of searching
3. enter to the Serch field value \s+\w+ *: *\w+ *= *\w+
4. press Find next match trice (starting from the beginning of the book)
5. make sure the error is present
(full text of the error message):
calibre, version 5.7.2
ERROR: Unhandled error: Uncaught InvalidStateError: Failed to execute 'surroundContents' on 'Range': The Range has partially selected a non-Text node.<br><span style="
Traceback (most recent call last):
at Number.onload (userscript:
at IframeBoss.
at IframeBoss.
at IframeBoss.
at IframeBoss.
at wrap_range (userscript:
Error: Failed to execute 'surroundContents' on 'Range': The Range has partially selected a non-Text node.
(should you need additional information please ask me in comments or any other ways)
That regex gives me no matches. Since the problem is with the third
match why dont you just post it as plain text.
status incomplete