Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
MemoryError / Python(79442) malloc: *** mmap(size=1953792) failed (error code=12) #111
Comments
|
Unable to reproduce. youtube-dl limits the chunk size to a sane value, anyway. |
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