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
Huge memory consumption #105
Comments
That's strange. Twitch-dl should not use much memory since VODs are saved to disk and not held in memory. The only thing that comes to mind if WSL keeps temp files in memory for some reason... import tempfile
tempfile.gettempdir() |
$ python
|
If anyone is running WSL, I'd love some help debugging this issue. |
Hi, I can reproduce this issue. @petepi3 you can get the memory freed up by shutting down WSL, by running |
@ihabunek Indeed, this isn't a memory leak in the traditional sense -- the memory used by the Your suspicion was correct: cleaning up twitch-dl's temp files (e.g. @petepi3 as another temporary workaround, you could execute the above file removal command under WSL after you've finished your download (assuming, of course, that the download finishes before the memory limit is reached). |
Hm, WSL stores
|
Unfortunately, this has no effect on the memory consumption -- in my case, I explicitly configured WSL to use 4GB by creating the file
|
I believe not only wsl have |
Running on Ubuntu trough WSL, memory consumption steadily rises few megabytes every second until antirety of my system memory is full and twitch-dl gets stuck. Shutting the program down doesn't release any of that memory.
this happens everytime with every download consistently between system reboots.
Possible memory leak?
WSL 10.0.19041.1566 running ubuntu 20.04 LTS
16GB of system memory
I can provide any other specs / logs if necessary
The text was updated successfully, but these errors were encountered: