Temporary CADModel files can fill disk space
ssilburn opened this issue · 1 comments
It looks like there is an issue with the CADModel cleanup not always running, which results in filling up the disk more and more each time a CADModel() is loaded.
After checking it out, there isn't a bug and the code is working as intended. But, because CAD models are unzipped to a temp directory during use, if the Python process is terminated hard the (large) temporary files are not cleaned up. It seems in most circumstances they are cleaned up properly, however (tested PyCharm stop and Ctrl+C on Ubuntu, Ctrl+C on Windows. One circumstance it doesn't work is PyCharm stop on Windows).
Ultimately the solution to this is to re-write the ZipSaveFile class such that it can work with the contents of zip files without decompressing them. But this is not trivial.