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 / Python(79442) malloc: *** mmap(size=1953792) failed (error code=12) #111

Closed
npnp opened this issue Apr 19, 2011 · 1 comment

Comments

@npnp
Copy link

npnp commented Apr 19, 2011

Sometimes the script fails with the log pasted below.
If the download speed is decreased, it fails less often.

Let me know if I can send you more info.

Thanks for the great script,
n

Python(79442) malloc: *** mmap(size=1953792) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
dl_status: [download] 20.4% of 157.17M at 3.14M/s ETA 00:39
Traceback (most recent call last):
File "/youtube-dl.sh", line 2985, in
retcode = fd.download(all_urls)
File "/youtube-dl.sh", line 604, in download
ie.extract(url)
File "/youtube-dl.sh", line 844, in extract
return self._real_extract(url)
File "/youtube-dl.sh", line 1133, in _real_extract
'player_url': player_url,
File "/youtube-dl.sh", line 571, in process_info
success = self._do_download(filename, info_dict['url'].encode('utf-8'), info_dict.get('player_url', None))
File "/youtube-dl.sh", line 744, in _do_download
data_block = data.read(block_size)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 309, in read
data = self._sock.recv(recv_size)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 529, in read
s = self.fp.read(amt)
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py", line 309, in read
data = self._sock.recv(recv_size)
MemoryError

@rg3
Copy link
Collaborator

rg3 commented Sep 10, 2011

Unable to reproduce. youtube-dl limits the chunk size to a sane value, anyway.

@rg3 rg3 closed this as completed Sep 10, 2011
joedborg referenced this issue in joedborg/youtube-dl Nov 17, 2020
[pull] master from rg3:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants