![]() |
#1 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Jan 2020
Device: OYO II
|
Ebook viewer text search bug
Since the latest update, I have following bug in the ebook viewer: If I have set the page layout to continuous mode and use the text search in an epub document (ctrl+f, enter text string, press return key):
Code:
calibre, version 4.14.0 FEHLER: Error in message handler: RangeError: Maximum call stack size exceeded 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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Thanks for fixing this. I am noticing a different problem in Flow Mode that I don't remember happening before, so I thought I'd mention it: In my CSS, I always use img {max-height: 100%; max-width: 100%}, but large images now spread across more than one screen. Paged Mode doesn't show this problem. I can't remember if this is new behavior or if Flow Mode has always done this?
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use 100vh and 100vw
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
I assume you mean in the CSS. I guess I can do a bulk update, but I've got a gazillion epubs with max-height: 100% and max-width: 100%. Does this mean that percentages are deprecated and won't work on anything anymore? I really don't look forward to updating ~2,000 epubs.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | ||
Not Quite Dead
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
|
Quote:
Quote:
On my Windows 10 test machine, I found that the unit change did not solve the problem. This involved chapter heading images placed thru the CSS file. The images bled into the next page if the Calibre viewer was not a certain width. Weird effect. If your images were placed more conventionally, Kovid's suggestion might work for you. Last edited by Brett Merkey; 04-29-2020 at 12:05 PM. |
||
![]() |
![]() |
![]() |
#7 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 817
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Thanks for the info. It's helpful. I've got all kinds of different images (full page, chapter headings, inline, etc.). Oh, well, I've got nothing else to do during the lockdown, so I guess I'll take a look. If my reader's software can deal with percentages (which it has in the past), maybe I'll just use Calibre's Paged Mode. I'm just worried that percentages will be handled differently for all devices from now on, which would force me to edit forty billion CSS files. Ugh, ugh, ugh. Thanks again for the info.
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to clear the search history in the ebook viewer? | willboliva | Library Management | 10 | 05-10-2020 12:21 AM |
Viewer - Hidden Text in search | BetterRed | Calibre | 4 | 02-24-2020 12:29 AM |
Ebook Viewer Search History | HogDrvr | Calibre | 2 | 09-09-2018 08:29 AM |
bug in ebook-viewer: the file is modified | tigran | Calibre | 6 | 02-11-2015 11:53 AM |
Calibre: eBook Viewer - CSS Bug | navjot001 | Library Management | 1 | 03-25-2014 08:55 AM |