Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTorrents with zero-length files crash on `fs.read` #461
Comments
This comment has been minimized.
This comment has been minimized.
|
@liyuhao Have you solved it? |
This comment has been minimized.
This comment has been minimized.
|
Same problem:
|
This comment has been minimized.
This comment has been minimized.
|
This is an odd error. How large is the torrent you're trying to download? |
This comment has been minimized.
This comment has been minimized.
|
I've detected torrent with zero length files, give this error. Running just this code:
The stack trace error is:
|
This comment has been minimized.
This comment has been minimized.
|
Aha! I've figured it out. This is caused by a bug in |
This comment has been minimized.
This comment has been minimized.
|
This is fixed in random-access-file 0.3.2. |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
Use the webtorrent as command app, and here is the log
DEBUG INFO: webtorrent 0.62.2, node v4.1.2, linux x64, exit 1
fs.js:582
binding.read(fd, buffer, offset, length, position, req);
^
Error: Offset is out of bounds
at Error (native)
at Object.fs.read (fs.js:582:11)
at /usr/lib/node_modules/webtorrent/node_modules/random-access-file/index.js:77:6
at apply (/usr/lib/node_modules/webtorrent/node_modules/thunky/index.js:16:28)
at /usr/lib/node_modules/webtorrent/node_modules/thunky/index.js:20:25
at onfinish (/usr/lib/node_modules/webtorrent/node_modules/random-access-file/index.js:37:4)
at /usr/lib/node_modules/webtorrent/node_modules/random-access-file/index.js:43:49
at FSReqWrap.oncomplete (fs.js:82:15)