Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 06-29-2021, 03:36 PM   #1
lkstrummer
Enthusiast
lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.
 
Posts: 30
Karma: 8892
Join Date: Feb 2011
Device: Sony Daily Edition PRS-950SC
E-book viewer in Calibre 5.22.1 hangs forever on new books

Opening new epubs loads the "Preparing book for first read, please wait" message on the e-book viewer. However, the viewer hangs forever and the book doesn't open. No error message is generated either as it hangs indefinitely.

Previously opened epubs will still open as usual unless there's another instance of the e-book viewer trying to open another epub for the first time (and hanging indefinitely). Two or more instances of epubs that have previously been opened will still continue to open normally. The process is only disrupted by an instance of the e-book viewer preparing an epub for the first read and hanging.

In the case of the previously opened epub that won't open with an instance of the e-book viewer that is hanging on a new book, an error message is generated. The error message:

WindowsError: [Error 32] The process cannot access the file because it is being used by another process.: u'C:\\Users\\xxxxx\\AppData\\Local\\calibre-cache\\ev2\\metadata.json'

I've searched for a solution to this error and was pointed towards making an exception to the cache folder in my antivirus (avast). I've done so and I also turned off Avast to both repair and reinstall the latest calibre 5.22.1. However, this error with the e-book viewer persists.
lkstrummer is offline   Reply With Quote
Old 06-29-2021, 10:04 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,267
Karma: 27111060
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
reboot in safe mode and see if the error goes away.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-01-2021, 11:07 AM   #3
lkstrummer
Enthusiast
lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.
 
Posts: 30
Karma: 8892
Join Date: Feb 2011
Device: Sony Daily Edition PRS-950SC
So it seems that it hangs for a long time rather than endlessly when opening a new epub for the first time. It takes roughly 10-15 minutes to load a new epub (again, 'new' as in previously unopened). My mistake previously was closing the instance that was hanging on opening the new epub and then trying to reopen the same file and then the behavior repeating. However, waiting the duration of the 10-15 minutes to open the e-book fixes this flaw, at least temporarily.

Once the new epub is opened and that particular instance of the viewer closed (and all instances closed, as well) further epubs opened for the first time don't require this time premium. They open in just seconds even when they're the only active instance of the viewer. The viewer hanging flaw is temporarily fixed.

I say temporarily because once this was "fixed" yesterday and further new and preloaded epubs were opening just fine I closed all instances. However, when I tried to open another 'new' epub today, the behavior repeated, meaning the long hanging time before everything was 'fixed' again. So it seems that the viewer is building some temporary cache that either only valid for some x amount of time or is disappearing after x amount of time, forcing the viewer to (slowly) build it again.

My test files are all already in my calibre library. I use Avast antivirus with an behavior exception for the calibre cache folder located in Appdata. I don't use Avast's ransomware shield which restricts writing to certain files. I also use Comodo firewall in Safe mode with the extraneous features disabled (HIPS, Website Filtering, Auto-containment, VirusScope)
lkstrummer is offline   Reply With Quote
Old 07-04-2021, 03:09 PM   #4
lkstrummer
Enthusiast
lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.lkstrummer shines like a glazed doughnut.
 
Posts: 30
Karma: 8892
Join Date: Feb 2011
Device: Sony Daily Edition PRS-950SC
Kovid, I did reboot in Safe Mode (without networking) and the the problem exists there as well. New books take a very long time ~10 minutes~ to load, after which subsequent new books and pre-loaded books load normally up to some time less than 24 hours. After this period expires without active instances (I believe) open, the long load time problem reappears. I also believe that each new instance opened in the absence of other instances in this refraction period seems to reset the clock, thereby extending the time to this less than 24 hr period before the problem emerges again.

Again, it seems like some cache is being constantly rebuilt and expiring very quickly.
lkstrummer is offline   Reply With Quote
Old 07-04-2021, 06:41 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,681
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try giving calibre a dedicated location for its caches via CALIBRE_CACHE_DIRECTORY

See ==>> Environment variables

If that works it's probably an over-zealous third party %appdata% clean up utility.

BR

Last edited by BetterRed; 07-04-2021 at 06:44 PM.
BetterRed is offline   Reply With Quote
Advert
Old Yesterday, 03:39 AM   #6
zandonov
Junior Member
zandonov began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2025
Device: Kindle paperwhite
Clear temp file

I solved this problem by cleaning the temp folder on my Win 11 PC.

In search type: Disk Cleanup and select temporary files.

You can select also other options to save disk space, but if you are not sure what is what just keep them unselected
zandonov is offline   Reply With Quote
Old Yesterday, 07:19 AM   #7
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,505
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by zandonov View Post
I solved this problem by cleaning the temp folder on my Win 11 PC.

In search type: Disk Cleanup and select temporary files.

You can select also other options to save disk space, but if you are not sure what is what just keep them unselected
You solve the problem by installing the latest calibre 8 instead of 5.22.1.
JSWolf is offline   Reply With Quote
Old Yesterday, 03:47 PM   #8
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 45,591
Karma: 168929308
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Ummm... Jon, the OP (@lkstrummer) had this issue with calibre 5.22.1 when they posted in 2021. The person (@zandonov) you are responding to does not mention what version of calibre they are using.
DNSB is offline   Reply With Quote
Reply

Tags
calibre 5.22.1, e-book viewer


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewer hangs; calibre-parallell is not responding BoerOpi Library Management 5 04-13-2020 11:42 AM
Conversion hangs forever ONLY when coverting to PDF primer Conversion 3 03-02-2020 09:30 PM
Calibre E-Book Viewer only showing blue and white question mark for all books elduderino Calibre 2 02-10-2019 02:28 AM
E-book viewer takes forever to load flow Iznogood Calibre 7 04-06-2013 11:37 PM
Calibre hangs when importing books Cheepnis Library Management 9 02-05-2012 07:21 PM


All times are GMT -4. The time now is 03:05 PM.


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