[FYI] - Left overs in temp

Bug #1280040 reported by Better Red
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

I've noticed for a long time that calibre does not always delete the folder it creates in Temp.

It's never has and still doesn't bother me, I just clean them up occasionally.

They usually only contain an empty log file. Today I happen to notice a couple weren't empty, so I'm attaching a screen shot with the log file contents shown, and with the past few weeks left over folders - as you can see its sporadic, I have no idea why this should be. I never get crashes in calibre, or Windows and I always close calibre (and everything else) gracefully.

I thought perhaps, scant as it is, the log file contents might be of interest. The ones that have something in them, have the same thing

BR

Revision history for this message
Better Red (urbanetiger) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1280040

From that log it looks like it is happening because the background
worker the editor uses is occassionally not being shutdown fast enough,
prevents its log file from being deleted. I've added some code to wait
for the worker to quit which should fix this.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
Better Red (urbanetiger) wrote :

OK, I'll keep my eye on it and let you know what I see.

Revision history for this message
Better Red (urbanetiger) wrote :

Found another case - created an epub catalog for a small virtual library and the following got left in _CalTemp

C:\_CalTemp\calibre_eqfhzc\cono2h_epub_mobi_catalog\content\stylesheet.css
C:\_CalTemp\calibre_eqfhzc\cono2h_epub_mobi_catalog\DefaultCover.jpg

No need to respond unless to ask for more info

BR

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1280040

I cannot replicate that, generating a catalog does not leave any files
behind after calibre is quit.

Revision history for this message
Better Red (urbanetiger) wrote :

Nor me every time - must be something like the recycle bin issue, windows missing something in its message loop when deleting things ?

BR

Revision history for this message
Kovid Goyal (kovid) wrote :

The usual cause for left over temp files is if some other process has
them open while calibre is quitting, so calibre cannot delete the file
as it is locked by the other process. If you can monitor what processes
have a file open then you may be able to get some useful data.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.