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

Stacktrace on current devel head: 'ascii' codec can't decode byte 0xe2 in position 32: ordinal not in range(128) #99

Closed
whirm opened this issue Apr 18, 2013 · 4 comments

Comments

@whirm
Copy link

whirm commented Apr 18, 2013

This is @ rev: fa48344

nosetests Tribler/Test/test_libtorrent_download.py 
LinuxSingleInstanceChecker returned 
Language file: /media/data/feina/code/delft/git/tribler/Tribler/Lang english.lang
Client Starting Up.
Tribler Version: 6.1.0 Build: Build 31061
Tribler is using /media/data/feina/code/delft/git/tribler as working directory
Tribler is expecting swift in /media/data/feina/code/delft/git/tribler/swift
SwiftProcess: __init__: Running ['/media/data/feina/code/delft/git/tribler/swift', '-j', '-l', '0.0.0.0:7758', '-c', '127.0.0.1:27758', '-g', '127.0.0.1:17758', '-w', '-e', '/media/data/feina/code/delft/git/tribler/TriblerDownloads/collected_torrent_files', '-T', '180'] workdir .
spm: get_or_create_sp: Creating new 29104
spm: Need to sleep 1 second for swift to start on Linux?! FIXME
CWD /tmp
cmdgw: Creating new TCP listener on addr 127.0.0.1:27758
swift: Mainloop
cmd: Got new cmd connection 9
lmc: Dispersy is listening on port 7759 [55287504]
cachedb: init: SQL FILE /media/data/feina/code/delft/git/tribler/.Tribler/sqlite/tribler.sdb
No existing database found. Attempting to creating a new database '/media/data/feina/code/delft/git/tribler/.Tribler/sqlite/tribler.sdb'
begin page_size upgrade...
...end page_size upgrade
Using actual DB thread <Tribler.dispersy.callback.Callback object at 0x2afb5d0>
SQLiteNoCacheDB.initialBegin: BEGIN
lmc: Dispersy communities are ready
pymdht: bootstrap: mainfile /media/data/feina/code/delft/git/tribler/Tribler/Core/DecentralizedTracking/pymdht/core/bootstrap.main
pymdht: bootstrap: backfile /media/data/feina/code/delft/git/tribler/Tribler/Core/DecentralizedTracking/pymdht/core/bootstrap.backup
tgs: condition satisfied after 1 seconds, calling callback
tgs: found instance, staring to wait for lm to be initcomplete
LibtorrentMgr: could not restore dht state, starting from scratch
Instance2Instance binding to 127.0.0.1:57891
tgs: condition satisfied after 0 seconds, calling callback
tgs: lm initcomplete, staring to wait for GUIUtility to be ready
tgs: condition satisfied after 0 seconds, calling callback
tgs: lm initcomplete, staring to wait for frame to be ready
tgs: condition satisfied after 0 seconds, calling callback
LibtorrentMgr: restarting dht because not enough nodes are found (0)
LibtorrentMgr: dht is working enough nodes are found (11)
Could not create a TorrentDef instance {'g\x03\x08\xa6\xfb\xe4\x87\x0c\xaa\xaf>C~\x05\x9f\x8bz\xc8\xf2\xd0'} 1363400998 Safety Not Guaranteed (2012) [1080p] ((u'Safety.Not.Guaranteed.2012.1080p.BRrip.x264.YIFY.mp4', 1389009361), (u'Safety.Not.Guaranteed.2012.1080p.BRrip.x264.YIFY.srt', 86373), (u'WWW.YIFY-TORRENTS.COM.jpg', 130677)) ('udp://tracker.yify-torrents.com/\xe2\x80\x8bannounce', 'udp://twig.gs:6969', 'udp://tracker.publichd.eu/announ\xe2\x80\x8bce', 'http://tracker.publichd.eu/annou\xe2\x80\x8bnce', 'udp://tracker.police.maori.nz/an\xe2\x80\x8bnounce', 'udp://tracker.1337x.org:80/annou\xe2\x80\x8bnce', 'udp://exodus.desync.com:6969', 'udp://tracker.istole.it:80', 'udp://tracker.ccc.de:80/announce', 'http://tracker.yify-torrents.com\xe2\x80\x8b/announce', 'udp://9.rarbg.com:2710/announce', 'http://fr33dom.h33t.com:3310/ann\xe2\x80\x8bounce') DISP {'dispersy_id': 1763}
Traceback (most recent call last):
  File "/media/data/feina/code/delft/git/tribler/Tribler/Core/CacheDB/SqliteCacheDBHandler.py", line 642, in addExternalTorrentNoDef
    torrent_id = self._addTorrentToDB(torrentdef, source, extra_info, False)
  File "/media/data/feina/code/delft/git/tribler/Tribler/Core/CacheDB/SqliteCacheDBHandler.py", line 783, in _addTorrentToDB
    self._addTorrentTracker(torrent_id, torrentdef, extra_info, commit=False)
  File "/media/data/feina/code/delft/git/tribler/Tribler/Core/CacheDB/SqliteCacheDBHandler.py", line 845, in _addTorrentTracker
    self._addTorrentTrackerList(torrent_id, announce, announce_list, extra_info, add_all, commit)
  File "/media/data/feina/code/delft/git/tribler/Tribler/Core/CacheDB/SqliteCacheDBHandler.py", line 879, in _addTorrentTrackerList
    self._db.executemany(sql_insert_torrent_tracker, values, commit=commit)
  File "/media/data/feina/code/delft/git/tribler/Tribler/Core/CacheDB/sqlitecachedb.py", line 2474, in executemany
    return self._executemany(sql, args)
  File "/media/data/feina/code/delft/git/tribler/Tribler/Core/CacheDB/sqlitecachedb.py", line 2377, in invoke_func
    return func(*args, **kwargs)
  File "/media/data/feina/code/delft/git/tribler/Tribler/Core/CacheDB/sqlitecachedb.py", line 2587, in _executemany
    raise msg
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 32: ordinal not in range(128)
SQLiteNoCacheDB.commitNow: BEGIN
tgs: condition satisfied after 77 seconds, calling callback
mainframe: startDownload: None /media/data/feina/code/delft/git/tribler/TriblerDownloads None <Tribler.Core.TorrentDef.TorrentDefNoMetainfo instance at 0x7f1f80d0e098> False None
MainFrame: startDownload: Starting in DL mode
Allowing refresh in 3 seconds 1366291381
@NielsZeilemaker
Copy link

Does this still happen in the devel branch?

@whirm
Copy link
Author

whirm commented May 31, 2013

Ill send you the log by mails as it is too big to pastebin it.

======================================================================

ERROR: test_downloadfrommagnet (Tribler.Test.test_libtorrent_download.TestLibtorrentDownload)

Traceback (most recent call last):
File "/media/data/feina/code/delft/tribler/Tribler/Test/test_as_server.py", line 306, in tearDown
assert boolean, reason
AssertionError: Condition was not satisfied in 120 seconds
-------------------- >> begin captured stdout << ---------------------
/media/data/feina/code/delft/tribler/Tribler/Test/test_.Tribler/sqlite/tribler.sdb
Creating SwiftTracker
Setting up languages
GUI Complete.

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
Tribler.community.bartercast3.community: DEBUG: loading the Barter community
Tribler.community.bartercast3.community: DEBUG: cycle 761106. first climbing phase. wait 215.45 seconds until the next phase
Tribler.community.bartercast3.community: DEBUG: unloading the Barter community
--------------------- >> end captured logging << ---------------------

======================================================================

ERROR: test_downloadfromurl (Tribler.Test.test_libtorrent_download.TestLibtorrentDownload)

Traceback (most recent call last):
File "/media/data/feina/code/delft/tribler/Tribler/Test/test_as_server.py", line 306, in tearDown
assert boolean, reason
AssertionError: no download progress
-------------------- >> begin captured stdout << ---------------------
/media/data/feina/code/delft/tribler/Tribler/Test/test_.Tribler/sqlite/tribler.sdb
Creating SwiftTracker
Setting up languages
GUI Complete.

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
Tribler.community.bartercast3.community: DEBUG: loading the Barter community
Tribler.community.bartercast3.community: DEBUG: cycle 761106. first climbing phase. wait 74.91 seconds until the next phase
Tribler.community.bartercast3.community: DEBUG: unloading the Barter community
--------------------- >> end captured logging << ---------------------

ERROR: test_stopresumedelete (Tribler.Test.test_libtorrent_download.TestLibtorrentDownload)

Traceback (most recent call last):
File "/media/data/feina/code/delft/tribler/Tribler/Test/test_as_server.py", line 306, in tearDown
assert boolean, reason
AssertionError: no download progress
-------------------- >> begin captured stdout << ---------------------
/media/data/feina/code/delft/tribler/Tribler/Test/test_.Tribler/sqlite/tribler.sdb
Creating SwiftTracker
Setting up languages
GUI Complete.

--------------------- >> end captured stdout << ----------------------
-------------------- >> begin captured logging << --------------------
Tribler.community.bartercast3.community: DEBUG: loading the Barter community
Tribler.community.bartercast3.community: DEBUG: cycle 761107. first climbing phase. wait 855.06 seconds until the next phase
Tribler.community.bartercast3.community: DEBUG: unloading the Barter community
--------------------- >> end captured logging << ---------------------


Ran 5 tests in 1245.515s

FAILED (errors=3)

@NielsZeilemaker
Copy link

Which branch is this? And which version of Libtorrent?

@whirm
Copy link
Author

whirm commented May 31, 2013

Nevermind, it works, I forgot to rebuild the latest swift

@whirm whirm closed this as completed May 31, 2013
rkeulemans pushed a commit to rkeulemans/tribler that referenced this issue Jun 1, 2017
Failing integration test fix
qstokkink pushed a commit that referenced this issue Aug 8, 2024
Fix not being able to download after metainfo lookup fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants