-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporary folder is never cleaned up #69
Comments
Thanks for the report. Regarding the logs, it is intended behavior, though this could be a settings for sure (I never faced gigabytes of it, hence it didn't come to mind). Regarding the render directory, it should clean up by itself either on shut down or start up of the app. Does the logs shows errors or warnings related to the temp directory? It could also be that the code doesn't handle MacOS there, as I have no way to test and build on that platform... Though I am aware of the insane memory usage, that's one of the reasons for a rewrite, to change the architecture to try to avoid such crazy numbers. |
Some limited feedback after a render on OSX. I get a small error during shutdown:
After shut down, my render folder was 82GB. So part of the issue is just a large operational space. Will also test doing 2 renders without closing the program and checking folder size. No update on Windows as of yet. My friend is rendering on windows so I have to get that info second hand. |
Confirmed with my friend that windows acts the same way. So quite noticable on smaller harddrives. |
Thanks for the additional information. I hate this behavior too. I'll see if I can eventually plan a patch beyond the rewrite to clean it up more regularly, but due to how the render works, it has to write all frames on disk. So this specific issue can't be fixed easily without a rewrite. Though, regarding the double render, it should overwrite existing render files instead of adding additional files. It might just not clean up all of them if, for instance, the previous render was longer. Lastly, you might want to enable jpeg export, from what I remember it is both faster and lighter on the disk. |
Reconfirmed with my friend on the Windows results and I misread what data he was dropping to me. I'm not sure if OSX is working this way or not at this time. Overall, I think the resolution for the storage issue is to clean up after each successful render. As we have work arounds to handle things right now, I really wanted this discussion to be there for you to think of during the rewrite and for anyone else encountering the problem to see the discussion on it to understand what their options are. |
Describe the bug
The temporary and logs folder never get cleaned out, slowly consuming the drive where wav2bar is installed.
To Reproduce
Run a number of renders.
Check the temporary folder and logs folder.
Expected behavior
Temporary files are cleared after each render.
Oldest logs get removed if they grow too large.
Additional Info
My system showed over 100gb of usage in the wav2bar temp folder and 2.3 around logs.
A friend showed over 60gb of usage in the wav2bar temp folders.
Windows:
Mac/OSX:
I ran the build commands to get wav2bar running:
I cleaned out the temp/renders folder via: find . -delete (while prompt is in the renders folder)
I used find instead of rm due to an "argument list too long" error using rm.
I cleaned out the logs/ folder via: rm * (while prompt is in the logs folder)
The text was updated successfully, but these errors were encountered: