![]() |
#16 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
Quote:
But I have an other option. Is it possible to add (1 of this) option(s): 1. A funciton like test db (clear temp files) 2. A clean-up interval setting (clean calibre every 2 files) 3. A clean-up function on update |
|
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
I launch calibre in a Windows shell from a batch file using calibre-debug -g. Before launching, I set the temp folder(s) for that shell session so that all Calibre temp files go into the same temp folder. I delete the temp folder both before and after the shell session. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The zero byte files problem on windows was fixed many versions ago. As long as you quit calibre cleanly, there should be no temp files left.
I just tried it on win7 and saw no temp files being left behind. |
![]() |
![]() |
![]() |
#19 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
1) I don't always exit cleanly, and 2) I had excluded my Calibre-specific temp folders from antivirus monitoring, but didn't want to do that to the real temp folders. Neither would be a sufficient reason for me to set it up now. |
|
![]() |
![]() |
![]() |
#20 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
I still get 2 zero-length calx.tmp files which are not deleted. I also have 2 non-empty directories which are not deleted: gen_py and fontconfig. In addition, if I do a Ctrl-R to restart calibre I also get a 3rd directory containing a subdirectory of what looks like my 3 news recipes (which I rarely use). This doesn't get deleted when closing down either. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,957
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
My XP Temp dir listing:
Spoiler:
|
![]() |
![]() |
![]() |
#22 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
gen_py and fontconfig are created once and not recreated each time calibre is restarted. In other words you will not have more than one of those. I'm interested in temp files that multiply with each calibre restart.
The cal(whatever).tmp files are news to me. I'll have to look into what is creating them. All temp files created by calibre itself (as opposed to those created by libraries/programs calibre uses) should be in the calibre_0.7.59_something directory, which is deleted on exit. Last edited by kovidgoyal; 05-05-2011 at 01:13 PM. |
![]() |
![]() |
![]() |
#23 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Ah, I think I know what is causing the cal(whatever).tmp files. I always start calibre as
calibre-debug -g which does not create those files, it's a normal invocation of calibre that does. Fix will be in the next release. |
![]() |
![]() |
![]() |
#24 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,957
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
All exits are not by choice (conventional exit)
I see at least 1 Dr Watson a week (usually a Qt...). Nothing I know enough about to turn the crash into a Bug report ![]() |
![]() |
![]() |
![]() |
#25 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,251
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Quote:
This seems to be created by calibre as it starts. If I do a normal exit the dir is deleted. If I do a Ctrl-R a second calibre_0.7.59_tmp_x directory is created. On normal exit only one of them is deleted. So there can be a build-up if you do lots of restarts. Probably not common practice, but I noticed it when I was doing a lot of work editing my plugin. |
|
![]() |
![]() |
![]() |
#26 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@jackie_w: Thanks, good catch, I'll look into fixing that as well.
|
![]() |
![]() |
![]() |
#27 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,259
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
I've committed fixes for both the cal(whatever).tmp files and the restart bugs.
|
![]() |
![]() |
![]() |
#28 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 293
Karma: 21022
Join Date: Mar 2011
Location: NL
Device: Sony PRS-650
|
And again a lesson learned.
Use a second pc without debug start ![]() Thank you for fixing this in this short time! Great! |
![]() |
![]() |
![]() |
Tags |
temp folders |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Calibre To See Folders on IQ | MmavisO | Calibre | 6 | 12-19-2010 03:28 PM |
Instapaper folders and Calibre | flyash | Calibre | 4 | 08-13-2010 02:01 AM |
Deleting temp calibre files sometimes takes forever | Takeshi_12 | Calibre | 6 | 07-29-2010 05:13 PM |
Win Temp file mess w/ Calibre? | Spiffy | Calibre | 1 | 06-01-2010 06:34 AM |
Calibre files left in Temp folder | itimpi | Calibre | 8 | 05-06-2009 06:15 AM |