All sort of errors with 0.1.0
Hello!
Thanks for all your good work on the latest version of BTQueue!
I do have a lot of problems running it though. I get lots of errors with backtraces, such as:
EXCEPTION:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont
it.next()
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck
self.infohash, errorfunc, resumefile)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__
data = self.storage.read(piece_size * i, self._piecelen(i))
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read
h = self._get_file_handle(filename, False)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle
handlebuffer.remove(filename)
ValueError: list.remove(x): x not in list
FAILURE: 34
EXCEPTION:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont
it.next()
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck
self.infohash, errorfunc, resumefile)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__
data = self.storage.read(piece_size * i, self._piecelen(i))
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read
h = self._get_file_handle(filename, False)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle
handlebuffer.remove(filename)
ValueError: list.remove(x): x not in list
FAILURE: 36
EXCEPTION:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont
it.next()
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck
self.infohash, errorfunc, resumefile)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__
data = self.storage.read(piece_size * i, self._piecelen(i))
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read
h = self._get_file_handle(filename, False)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle
handlebuffer.remove(filename)
ValueError: list.remove(x): x not in list
FAILURE: 7
EXCEPTION:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont
it.next()
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck
self.infohash, errorfunc, resumefile)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__
data = self.storage.read(piece_size * i, self._piecelen(i))
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read
h = self._get_file_handle(filename, False)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle
handlebuffer.remove(filename)
ValueError: list.remove(x): x not in list
FAILURE: 12
EXCEPTION:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont
it.next()
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck
self.infohash, errorfunc, resumefile)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__
data = self.storage.read(piece_size * i, self._piecelen(i))
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read
h = self._get_file_handle(filename, False)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle
handlebuffer.remove(filename)
ValueError: list.remove(x): x not in list
FAILURE: 13
EXCEPTION:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont
it.next()
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck
self.infohash, errorfunc, resumefile)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__
data = self.storage.read(piece_size * i, self._piecelen(i))
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read
h = self._get_file_handle(filename, False)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 155, in _get_file_handle
handlebuffer.remove(filename)
ValueError: list.remove(x): x not in list
FAILURE: 45
>>> pause 46
>>> FAILURE: Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 467, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitQueue/launchmanycore_bittorrent.py", line 381, in terminated
item = self.downloads[torrent.infohash]
KeyError: 'B\x9e\xb0\xec\xab,j\x11P. H\xf1\x99\xfe\xc6%\xf0\xb4\xac'
EXCEPTION:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/BitTorrent/RawServer.py", line 46
7, in _make_wrapped_call
function(*args)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 226, in cont
it.next()
File "/usr/local/lib/python2.4/site-packages/BitTorrent/download.py", line 293, in hashcheck
self.infohash, errorfunc, resumefile)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/StorageWrapper.py", line 142, in __init__
data = self.storage.read(piece_size * i, self._piecelen(i))
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 176, in read
h = self._get_file_handle(filename, False)
File "/usr/local/lib/python2.4/site-packages/BitTorrent/Storage.py", line 169, in _get_file_handle
del self.handles[oldfile]
KeyError: '/home/btorrent/incoming/bla.avi'
FAILURE: 61
And so on. Furthermore, I had 64 torrents running in 0.0.18. For some reason, 0.1.0 wants to recheck all of these torrents (they were already in seed mode), and starts doing so. But: it starts checking all 64 torrents at once! What's more, using my system's tracing utility, I can see that it is reading each file one byte at a time! Letting it check all 64 torrents (about 20 gigabytes total) would take forever...
Thanks for your good work and I hope you can use these reports to make version 0.1.0 a little more stable. Oh, by the way, I'm using Python 2.4 on FreeBSD 4.x.
CU!
Sven
- 1508 reads

python 2.4 on freebsd
strange metadata
Re: strange metadata
Re: python 2.4 on freebsd
Post new comment