Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-04-2011, 09:45 AM   #1
The QCC
Junior Member
The QCC began at the beginning.
 
The QCC's Avatar
 
Posts: 9
Karma: 10
Join Date: Dec 2010
Location: Kitchener, ON Canada
Device: Augen EBA701 and Kindle Wi-Fi
Calibre Temp folders, yet again

I know this question was asked in 2009, but the problem still exists.
Calibre leaves dozens of temporary folders in the Windows 7 Temp folder.
Calibre NEVER clears these folders.
The folders are of this type:
calibre_0.7.47_tmp_nxydob

I can reduce the number of folders created by reducing the number of active worker processes to 2, but this does not solve the problem. If the worker processes are crashing and not cleaning up, then there is a problem with Calibre.

The previous recommended solution, close Calibre properly.
HOW?
There is no proper Exit or Close button. The only exit method is Alt F4.
Using the Calibre Restart option only creates more temporary folders.

If nothing else, Calibre should offer a manual Purge Temp Files option.

Carl.
The QCC is offline   Reply With Quote
Old 03-04-2011, 10:10 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,103
Karma: 780247
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I get around this by starting Calibre with a batch file that (amongst other things) contains the following:

Code:
SET CALIBRE_TEMP_DIR=%TEMP%\CALIBRE_TEMP
ECHO TEMPORARY FILES: %CALIBRE_TEMP_DIR%

IF EXIST "%CALIBRE_TEMP_DIR%" RMDIR /s /q "%CALIBRE_TEMP_DIR%"
MKDIR "%CALIBRE_TEMP_DIR%"
REM set the following for any components that do
REM not obey the CALIBRE_TEMP_DIR setting
SET TMP=%CALIBRE_TEMP_DIR%
SET TEMP=%CALIBRE_TEMP_DIR%
This does not mean that calibre cannot leave temporary files behind in any particular run, but it does mean that any calibre temporary files left from previous runs are removed before starting up calibre again.

This technique is also used in the "Calibre Portable.bat" file that is included with Calibre.

I hope this helps.
itimpi is offline   Reply With Quote
Old 03-04-2011, 11:18 AM   #3
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Part of the problem with the temp file issue is Windows. I have never run into left over temp files in Linux or OS X during normal use.

Closing the main window or choosing quit in the status icon (if you have it enabled) will properly close caibre and cause it to lean up any temp files.
user_none is offline   Reply With Quote
Old 03-04-2011, 11:35 AM   #4
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,906
Karma: 4329385
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
In Windows you get leftover temp files no matter how cleanly you exit calibre. I don't know of any way to keep them under control other than using itimpi's method.

Edit: At least in Windows XP SP3. I can't speak for other Windows versions.

Last edited by jackie_w; 03-04-2011 at 11:37 AM. Reason: clarification
jackie_w is offline   Reply With Quote
Old 03-04-2011, 11:55 AM   #5
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I'm seeing the same thing on XP SP3. Since I somewhat regularly clean out my temporary files, however, it's not that big of a deal. And Calibre doesn't leave any huge files behind, from what I can tell.
Manichean is offline   Reply With Quote
Old 03-04-2011, 12:16 PM   #6
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
On windows calibre leaves behind a few zero byte files. It's because of windows file locking. Either I have calibre wait for all worker process to shutdown and release the locks on their log files, which can take a while, making shutdown/restart times slow or I leave behind some zero byte files. I choose the latter.
kovidgoyal is offline   Reply With Quote
Old 03-04-2011, 12:23 PM   #7
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 2,906
Karma: 4329385
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, PB360, Kobo Glo/AuraHD/Aura6"/AuraH2O
Thank you for explaining.
jackie_w is offline   Reply With Quote
Old 03-04-2011, 12:47 PM   #8
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I have added some code that tries harder to clear the worker log files, by explicitly closing them when killing workers. It should make it less likely that they are left behind.
kovidgoyal is offline   Reply With Quote
Old 03-04-2011, 02:12 PM   #9
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
That sounds good.
Manichean is offline   Reply With Quote
Old 03-05-2011, 01:07 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 8,908
Karma: 12755553
Join Date: Feb 2009
Location: North Carolina
Device: Nexus 7
Quote:
Originally Posted by The QCC View Post
The previous recommended solution, close Calibre properly.

HOW?
There are two methods to exit out of calibre cleanly, Ctrl Q or right click on the icon in the system tray and selecting quit.
DoctorOhh is offline   Reply With Quote
Old 03-05-2011, 10:54 AM   #11
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,249
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
I use the Task tray icon Quit.
But not having a 'traditional' (text) Menu 'File:Quit' or Exit door Icon has always seemed odd to me considering the 'x' in the corner is only a close (the GUI, leave main in background)
theducks is offline   Reply With Quote
Old 03-05-2011, 10:56 AM   #12
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: 26,433
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
The X in the corner does quit calibre, unless you have the system tray enabled (it is disabled by default).
kovidgoyal is offline   Reply With Quote
Old 03-05-2011, 02:15 PM   #13
The QCC
Junior Member
The QCC began at the beginning.
 
The QCC's Avatar
 
Posts: 9
Karma: 10
Join Date: Dec 2010
Location: Kitchener, ON Canada
Device: Augen EBA701 and Kindle Wi-Fi
Thanks for the explanations.
My biggest concern about the left over Temp folders is for the non-tech savvy user of Calibre and Windows.

When I looked at a friend's computer, there were in excess of 250 temporary Calibre folders.

Most Windows users use their computers as appliances and do not know of the Temp folder or even where their ebooks are stored by Calibre.

Thanks Kovid for a great programme.
The QCC is offline   Reply With Quote
Old 03-05-2011, 02:46 PM   #14
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,473
Karma: 1053245
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Quote:
Originally Posted by The QCC View Post
My biggest concern about the left over Temp folders is for the non-tech savvy user of Calibre and Windows.
...
Most Windows users use their computers as appliances and do not know of the Temp folder
Which is why we only here complaints from technical users
user_none is offline   Reply With Quote
Old 03-05-2011, 05:37 PM   #15
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,249
Karma: 6020307
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by The QCC View Post
Most Windows users use their computers as appliances and do not know of the Temp folder or even where their ebooks are stored by Calibre.


Which is also why Windows provides a 'Clean-up Wizard'.
theducks is offline   Reply With Quote
Reply

Tags
temp folders

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Calibre To See Folders on IQ MmavisO Calibre 6 12-19-2010 04:28 PM
Instapaper folders and Calibre flyash Calibre 4 08-13-2010 03:01 AM
Deleting temp calibre files sometimes takes forever Takeshi_12 Calibre 6 07-29-2010 06:13 PM
Win Temp file mess w/ Calibre? Spiffy Calibre 1 06-01-2010 07:34 AM
Calibre files left in Temp folder itimpi Calibre 8 05-06-2009 07:15 AM


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


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