-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Memory Leak #402
Comments
Could you provide some more information for me?
Thanks |
Hey there for the purpose of this bug report I downloaded this video file: Settings I used:
Application settings (all default but I list them for the purpose of this ticket):
But as I first encountered the issue I was downloading a non listed 1080p video from about 5h length (past broadcast) |
Forgot to mention I run version 2023.6.2, which seems to be the latest. |
Well downloading an hour long 2K video or even a 5 hour video is definitely going to eat all your ram...that's just the nature of yt-dlp and ffmpeg TBH. This would be considered a "memory leak" if the usage doesn't go down after the video is done. If it does go back down, then this isn't an issue. What I would suggest is maybe using aria2 for these large videos and it splits and processes the video in chunks. |
The memory was only freed after closing the application. Running yt-dlp directly from command line didn't caused this issue and other yt-dlp front-ends don't do this either so I was suspecting something is weird with Tube Converter. Also tried: Video Downloader which claims to be an yt-dlp (not to be confused with youtube-dl) front end as well and the RAM usage keep consistent downloading the same video file. (36.9 MB) BUT I can confirm enabling aria2 solved the issue entirely, so I gonna close the issue here. Thank you for your time looking into this ❤️ |
Like I said it's probably all of the ffmpeg processing then. Turning off embed metadata and disallow conversions might help, while keeping aria2 off. But I'll look into it. Either yeah, glad it works with aria2 no problems. Like I said aria2 splits it into chunks so it definitely saves resources and is probably always recommended for larger videos. |
I'm going to reopen this as I said I would like to try and make it where it reclaims the memory at least when the download is done. |
Though, not an expert, but can it be that somehow may be |
I have a feeling it's definitely ffmpeg. Using aria2 doesn't have this issue cause like I said it splits each video into chubcks and processes each chunk separately. Whereas without aria2, it downloads the entire video and passes the whole thing to ffmpeg, using a lot of memory. I probably won't be able to fix the fact that it uses a lot of memory...but once the download finishes, that memory should be reclaimed and go down instead of staying high even with no download. Might have to fix the way we dispose the downloads when done. |
Ok I found the issue...I forgot to dispose of the |
Hello there,
As the title says, Tube Converter has serious memory leak issues.
The below screenshots shows the memory progression of my system with only my basic desktop and Tube Converter running.
During downloading one or multiple videos the application allocates more and more system ram as if it would try to load the entire video files into memory.
Until the point the entire desktop starts to freeze because of memory issues.
As long as the application is idle it does not hog memory, only during download.
This is a screenshot from htop after my system started swapping.
As you can se 21% (of 16GiB + 16GiB swap) belong to Tube Converter.
I am using the Flatpak build on openSUSE Aeon.
The text was updated successfully, but these errors were encountered: