Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-23-2017, 04:22 PM   #1
Steven Karp
Enthusiast
Steven Karp began at the beginning.
 
Posts: 38
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
Windows deleting Viewer's temp files?

Background: I use Calibre and its viewer on a Windows tablet. Since I mostly use the device as a reader, that means the main program and viewer are running constantly.

Lately--i.e. in the week since I upgraded the tablet to the Windows 10 Fall Creators Update--I've been experiencing a problem where the viewer fails the first time it needs to move from one file within a book to the next.

Example: I'm partway through Chapter 5 when I turn it off. When I resume reading, everything is fine until it tries to go to Chapter 6. At that point, I get an error message about missing files. If I close the viewer and relaunch it from Calibre, everything is fine again--I can move on to Chapter 6--until the next time I leave the tablet idle for a while.

This doesn't happen every time, but enough to be annoying. And, for the record, the Disk Cleanup tool is set to NOT delete temporary files. I had the same configuration in the previous version of Windows and never saw this problem.

Has anyone else seen this, and better yet, figured out how to fix it?
Steven Karp is offline   Reply With Quote
Old 10-23-2017, 11:33 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,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just set the CALIBRE_TEMP_DIR environment variable to point somewhere whatever temp file cleaner you are using wont regard as a temp folder. https://manual.calibre-ebook.com/cus...ment-variables
kovidgoyal is offline   Reply With Quote
Advert
Old 10-25-2017, 08:34 PM   #3
Steven Karp
Enthusiast
Steven Karp began at the beginning.
 
Posts: 38
Karma: 10
Join Date: May 2014
Device: Windows 10 Tablet / Calibre or Nexus 9 / Moon+
Thanks, I'll do that--but I'll just be guessing at where to set it. My point is that I'm not using a temp file cleaner. Windows just started deleting the Calibre temp files on its own. Hopefully anyplace outside of the "User" directory tree will be safe.
Steven Karp is offline   Reply With Quote
Old 10-25-2017, 11:24 PM   #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,342
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As far as I know, windows does not delete temp files on its own, but then again, I'm not a windows guru...
kovidgoyal is offline   Reply With Quote
Old 10-28-2017, 02:01 PM   #5
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,178
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Use Process Monitor https://docs.microsoft.com/en-us/sys...nloads/procmon to monitor the Calibre temp directory. This will tell you which processes are accessing files and possibly deleting them.
ShellShock is offline   Reply With Quote
Advert
Old 10-28-2017, 05:14 PM   #6
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,717
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Steven Karp View Post
Thanks, I'll do that--but I'll just be guessing at where to set it. My point is that I'm not using a temp file cleaner. Windows just started deleting the Calibre temp files on its own. Hopefully anyplace outside of the "User" directory tree will be safe.
In my experience Windows itself (at least up to 1703) has never deleted folders and files in the 'standard' 'temporary' locations, including %LOCALAPPDATA%\Temp, which is the one most commonly used by applications, including calibre.

Maybe there is something in the Windows 1709 release to auto-delete temporary files, but I would expect to find a Setting to control it - if not then IMO its definitely a bug.

Create a directory something like c:\_calibre\temporary, and set the CALIBRE_TEMP_DIR environment variable to refer to that directory.

If, like me, you find the squishy little Windows dialogue box for editing environment variables a PITA to use, try this ==>> Rapid Environment Editor

BR
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
External viewer opens temp file Aiwass Library Management 4 04-29-2013 04:44 AM
Temp files cleanup kiwidude Development 2 03-05-2011 10:56 AM
Temp files... BadGandalf Calibre 17 10-24-2010 11:38 AM
Temp files Jeff L Calibre 3 10-14-2010 05:58 PM
Deleting temp calibre files sometimes takes forever Takeshi_12 Calibre 6 07-29-2010 05:13 PM


All times are GMT -4. The time now is 12:13 PM.


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