In the viewer search when a value is found receive and Uncaught RangerError

Bug #1874877 reported by David Yearsley
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I just installed version version 4.14 and now when I do a search in the viewer and a value if found, then it returns Uncaught RangerError error. See attachment for more information. It has only been happening since I upgraded this morning.

If it does not find the word it works as always.

Version 4.14
Windows 10

To reproduce, open one of the books and search for a word that is in the book.

Revision history for this message
David Yearsley (dlyearsley-msn) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1874877

Doesnt reproduce for me. Attach one of the books where you see this
alongwith the search you performed.

 status incomplete

Changed in calibre:
status: New → Incomplete
Revision history for this message
Indio (indio-f) wrote :

I have the same problem, with all the books.

Windows 8.1 x64
ebook: "calibre.epub". The last manual for calibre

----------------
calibre, version 4.14.0
ERROR: Unhandled error: Uncaught RangeError: Maximum call stack size exceeded<br><span style="font-size:smaller">Error at userscript:viewer.js:12784:37</span>

Traceback (most recent call last):
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21995:17)
    at ensure_selection_visible (userscript:viewer.js:21994:17)
    at current_layout_mode (userscript:viewer.js:12784:37)
RangeError: Maximum call stack size exceeded
-------------

After accept in the error message, the display gives a message of: loading the following section of... "ebook name" wait.. and it hangs up.

In the linux version, there are no problems.

Thank you very much for the best software of the world.
Indio from Spain.

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

Ah, this happens only in flow mode, put the viewer in paged mode and you
will be fine. The fix for flow mode will be in the next release.

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

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Incomplete → Fix Released
Revision history for this message
Indio (indio-f) wrote :

Ok, thank you, in paged mode be fine.

Thank you very much for the best software of the world.
Indio from Spain.

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.