MemoryError / Python(79442) malloc: *** mmap(size=1953792) failed (error code=12) #84

Closed
opened 2026-02-20 21:01:56 -05:00 by deekerman · 1 comment
Owner

Originally created by @npnp on GitHub (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

Originally created by @npnp on GitHub (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 <module> 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
Author
Owner

@rg3 commented on GitHub (Sep 10, 2011):

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

@rg3 commented on GitHub (Sep 10, 2011): Unable to reproduce. youtube-dl limits the chunk size to a sane value, anyway.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#84
No description provided.