Skip to content
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

MemoryError using y-dl with torify #9817

Closed
kradan opened this issue Jun 18, 2016 · 1 comment
Closed

MemoryError using y-dl with torify #9817

kradan opened this issue Jun 18, 2016 · 1 comment
Labels

Comments

@kradan
Copy link

@kradan kradan commented Jun 18, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.06.18.1

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
$ torify youtube-dl -v -f 140 -c beWnF4bjpMw
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'-f', u'140', u'-c', u'beWnF4bjpMw']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.06.18.1
[debug] Python version 2.7.11+ - Linux-4.5.0-2-686-pae-i686-with-debian-stretch-sid
Traceback (most recent call last):
  File "/usr/local/bin/youtube-dl", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 420, in main
    _real_main(argv)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/__init__.py", line 387, in _real_main
    with YoutubeDL(ydl_opts) as ydl:
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 352, in __init__
    self.print_debug_header()
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1991, in print_debug_header
    exe_versions = FFmpegPostProcessor.get_versions(self)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/postprocessor/ffmpeg.py", line 64, in get_versions
    return FFmpegPostProcessor(downloader)._versions
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/postprocessor/ffmpeg.py", line 48, in __init__
    self._determine_executables()
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/postprocessor/ffmpeg.py", line 105, in _determine_executables
    (p, get_exe_version(p, args=['-version'])) for p in programs)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/postprocessor/ffmpeg.py", line 105, in <genexpr>
    (p, get_exe_version(p, args=['-version'])) for p in programs)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/utils.py", line 1713, in get_exe_version
    out = out.decode('ascii', 'ignore')
MemoryError

Description of your issue, suggested solution and other information

When I use youtube-dl in combination with torify, a Tor wrapper, youtube-dl runs out of memory when a video download has finished.
During this time you avprobe consumes 100% of the CPU, later half half together with y-dl.
Downloading the video normally without torify works well.

I am glad to test again with future versions.

Thanks for all your work!

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jun 18, 2016

It's a known Tor-related bug, see #402 (comment). Use --proxy socks5://ip:port instead of wrapper programs like torify or torsocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.