You only have a YouTube live radio running 24/7 right? And the memory leak you see only appears after around 24 hours or earlier? Does ist increase from the beginning over time? The more informations we have, the better.
0 Voter
Memory leak ffmpeg
Hi, after running a 24-hour youtube radio, the bot starts to increase its ram consumption until the machine crashes
here's the error :
ERROR: ffmpeg exited with code 1
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/container/TS3MusicBot/system/yt/__main__.py", line 17, in <module>
yt_dlp.main()
File "/home/container/TS3MusicBot/system/yt/yt_dlp/__init__.py", line 1072, in main
_exit(*variadic(_real_main(argv)))
File "/home/container/TS3MusicBot/system/yt/yt_dlp/__init__.py", line 1062, in _real_main
return ydl.download(all_urls)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 3572, in download
self.__download_wrapper(self.extract_info)(
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 3547, in wrapper
res = func(*args, **kwargs)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 1595, in extract_info
return self.__extract_info(url, self.get_info_extractor(key), download, extra_info, process)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 1606, in wrapper
return func(self, *args, **kwargs)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 1762, in __extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 1821, in process_ie_result
ie_result = self.process_video_result(ie_result, download=download)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 2982, in process_video_result
self.process_info(new_info)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 3448, in process_info
success, real_download = self.dl(temp_filename, info_dict)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 3169, in dl
return fd.download(name, new_info, subtitle)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/downloader/common.py", line 466, in download
ret = self.real_download(filename, info_dict)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/downloader/external.py", line 80, in real_download
self.report_error('%s exited with code %d' % (
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 1073, in report_error
self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs)
File "/home/container/TS3MusicBot/system/yt/yt_dlp/YoutubeDL.py", line 1001, in trouble
tb_data = traceback.format_list(traceback.extract_stack())