Big memory consumption spike
See original GitHub issueChecklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I’m running yt-dlp version 2022.01.21. (update instructions)
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Description
Calling extract_info
with url https://redd.it/sdl0bi
in parameters will cause big memory consumption spike, up to 400 MB for me. For other links all work as intended.
Verbose log
yt-dlp -vU 'https://redd.it/sdl0bi'
[debug] Command-line config: ['-vU', 'https://redd.it/sdl0bi']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, err utf-8, pref UTF-8
[debug] yt-dlp version 2022.01.21 [f20d607b0]
[debug] Python version 3.9.9 (CPython 64bit) - macOS-10.15.7-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.4.1 (setts), ffprobe 4.4.1, rtmpdump 2.4
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.01.21, Current version: 2022.01.21
yt-dlp is up to date (2022.01.21)
[debug] [generic] Extracting URL: https://redd.it/sdl0bi
[generic] sdl0bi: Requesting header
[redirect] Following redirect to https://www.reddit.com/comments/sdl0bi
[debug] [generic] Extracting URL: https://www.reddit.com/comments/sdl0bi
[generic] sdl0bi: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] sdl0bi: Downloading webpage
[generic] sdl0bi: Extracting information
[debug] Looking for video embeds
ERROR: Unsupported URL: https://www.reddit.com/comments/sdl0bi
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line 1367, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/yt_dlp/YoutubeDL.py", line 1437, in __extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python3.9/site-packages/yt_dlp/extractor/common.py", line 612, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.9/site-packages/yt_dlp/extractor/generic.py", line 3966, in _real_extract
raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://www.reddit.com/comments/sdl0bi
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Windows 10 High Memory Usage [Causes and Solutions]
This article explains what high memory usage is and how to check it. It also gives 11 methods to fix Windows 10 high...
Read more >High Memory utilization and their root causes | Dynatrace
The following are the two most common causes for Java high memory usage. Incorrect Cache Usage. It may seem counterintuitive, but excessive cache...
Read more >What's causing my memory usage spike?
I haven't had any problems with my editor before and recently it's been spiking in memory usage HARD. I'll open my project and...
Read more >High memory usage when indexing - Progress Community
This article provides information for a problem with High memory usage when reindexing search ... Memory usage spike when indexing documents
Read more >Huge Memory Usage Spike #5728 - rust-lang/rust-analyzer
I have been encountering random memory usage spikes while using rust-analyzer in either VSCode or coc-rust-analyzer since the updated ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The spike happens at this code https://github.com/yt-dlp/yt-dlp/blob/fa8fd951184017b9ba164dfa5e6d95d44ff6edd4/yt_dlp/extractor/generic.py#L3533-L3537
@zmousm, could you take a look
Even bigger spike(up to 1GB) with such link(yt-dlp updated from master) https://accounts.google.com/ServiceLogin?service=wise&passive=1209600&continue=https://docs.google.com/forms/d/e/1FAIpQLSeNnjEancwnmDKba_vbS3BbNo1rNmJwcqmE2ewq7oA8_U1nlA/viewform?usp%3Dsend_form&followup=https://docs.google.com/forms/d/e/1FAIpQLSeNnjEancwnmDKba_vbS3BbNo1rNmJwcqmE2ewq7oA8_U1nlA/viewform?usp%3Dsend_form<mpl=forms