Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-28-2020, 08:48 PM   #1
Alsweider
Junior Member
Alsweider began at the beginning.
 
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
Alsweider is offline   Reply With Quote
Old 04-28-2020, 10:24 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://bugs.launchpad.net/calibre/+bug/1874877
kovidgoyal is offline   Reply With Quote
Advert
Old 04-29-2020, 02:46 AM   #3
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
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?
icallaci is offline   Reply With Quote
Old 04-29-2020, 03:05 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,318
Karma: 27111242
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use 100vh and 100vw
kovidgoyal is offline   Reply With Quote
Old 04-29-2020, 11:43 AM   #5
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
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.

Quote:
Originally Posted by kovidgoyal View Post
Use 100vh and 100vw
icallaci is offline   Reply With Quote
Advert
Old 04-29-2020, 11:57 AM   #6
Brett Merkey
Not Quite Dead
Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.Brett Merkey ought to be getting tired of karma fortunes by now.
 
Posts: 195
Karma: 654170
Join Date: Jul 2015
Device: Paperwhite 4; Galaxy Tab
Quote:
Does this mean that percentages are deprecated and won't work on anything anymore?
Percentages are fine but are calculated based on tag parent size. The vh and vw units are calculated based on the device view box size. Usually a subtle difference but sometimes important.

Quote:
I can do a bulk update, but I've got a gazillion epubs
First, test to see if the unit change solves the problem you complained of — and then figure out the next step.

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.
Brett Merkey is offline   Reply With Quote
Old 04-29-2020, 12:08 PM   #7
icallaci
Guru
icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.icallaci ought to be getting tired of karma fortunes by now.
 
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:
Originally Posted by Brett Merkey View Post
Percentages are fine but are calculated based on tag parent size. The vh and vw units are calculated based on the device view box size. Usually a subtle difference but sometimes important.


First, test to see if the unit change solves the problem you complained of — and then figure out the next step.

On my own 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. If your images were placed more conventionally, Kovid's suggestion might work for you.
icallaci is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 12:37 AM.


MobileRead.com is a privately owned, operated and funded community.