kcc icon indicating copy to clipboard operation
kcc copied to clipboard

Kindlegen not clearing /tmp when called through KCC

Open lapwat opened this issue 6 years ago • 3 comments

I have made an investigation about why the /tmp is not cleared when converting to MOBI.

2019-12-21-224704_1920x1080_scrot

First line top right is the original /tmp usage.

Second line is the same after performing an EPUB conversion: cache usage did not change.

The last line is the same after performing a MOBI conversion: cache usage increased, kindlegen could not clear its cache. Was it or its job killed to early? Did several kindlegen commands were thrown at the same time?

Can you reproduce?

This issue may be related to one of those makeMOBI functions here https://github.com/ciromattia/kcc/blob/259800e48b8622233d0a415d7a025f087de7e3cd/kindlecomicconverter/comic2ebook.py

PS: Tried to run kindlegen file.epub in my terminal and the cache was successfully cleared.

lapwat avatar Dec 21 '19 23:12 lapwat

I will check it during refactor.

AcidWeb avatar Jan 01 '20 11:01 AcidWeb

https://github.com/jisaacks/GitGutter/issues/284#issuecomment-257291258

May be related to this issue, it happens when working with temporary files. Sometimes the temporary files are not deleted because they do not exist already.

lapwat avatar Apr 22 '20 13:04 lapwat

I've found that kcc don't delete either his own temporary file (jpeg) or the kindlegen-related ones

as3ii avatar Feb 03 '21 15:02 as3ii

@as3ii @lapwat

is this bug still present after https://github.com/ciromattia/kcc/pull/459 ? waiting feedback in version v5.6.1

darodi avatar Jan 22 '23 13:01 darodi

tested the v5.6.1 appimage: temporary files are deleted successfully

as3ii avatar Jan 22 '23 16:01 as3ii

@as3ii Thanks, closing this

darodi avatar Jan 22 '23 16:01 darodi