Deluge crash with 'exceptions.UnicodeDecodeError' if python-rencode is installed

Bug #1705066 reported by Andrei Borzenkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
deluge (Ubuntu)
New
Undecided
Unassigned

Bug Description

I run Ubuntu with Russian locale and all desktop directories have Russian name by default (Downloads, Video, etc) so deluge by default saves torrents in directories with non-ASCII paths. Today I tried to install deluge 2.0 from ppa and it crashed when I tried run it. I then reverted to version shipped with Xenial which still crashed. I removed additional packages pulled in by 2.0 one by one and to my surprise mere existence of python-rencode causes deluge crash. This is rather show stopper for me as I cannot update to 2.0 (which I need due to improved proxy settings).

bor@bor-Latitude-E5450:~$ deluge-console info

Name: xxx
ID: yyy
...

bor@bor-Latitude-E5450:~$ sudo apt install python-rencode
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Следующие пакеты устанавливались автоматически и больше не требуются:
 ...
Для их удаления используйте «sudo apt autoremove».
НОВЫЕ пакеты, которые будут установлены:
  python-rencode
обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 31,3 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 102 kB.
Пол:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 python-rencode amd64 1.0.3-1build2 [31,3 kB]
Получено 31,3 kБ за 0с (43,4 kБ/c)
Выбор ранее не выбранного пакета python-rencode.
(Чтение базы данных … на данный момент установлено 299035 файлов и каталогов.)
Подготовка к распаковке …/python-rencode_1.0.3-1build2_amd64.deb …
Распаковывается python-rencode (1.0.3-1build2) …
Настраивается пакет python-rencode (1.0.3-1build2) …
bor@bor-Latitude-E5450:~$ deluge-console info

Name: xxx
ID: yyy
State: Seeding Up Speed: 0.0 КБ/с
Seeds: 0 (-1) Peers: 1 (-1) Availability: 0.00
Size: 6.2 ГБ/6.2 ГБ Ratio: 0.811
Seed time: 11 days 14:22:05 Active: 11 days 14:49:42
Error getting torrent info: [Failure instance: Traceback: <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xd0 in position 43: ordinal not in range(128)
/usr/lib/python2.7/dist-packages/twisted/protocols/policies.py:120:dataReceived
/usr/lib/python2.7/dist-packages/deluge/ui/client.py:179:dataReceived
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:393:callback
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:501:_startRunCallbacks
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:588:_runCallbacks
/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/info.py:154:on_torrents_status
/usr/lib/python2.7/dist-packages/deluge/ui/console/commands/info.py:215:show_info
/usr/lib/python2.7/dist-packages/deluge/ui/console/main.py:292:write
]
bor@bor-Latitude-E5450:~$

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: deluge 1.3.12-1ubuntu1
ProcVersionSignature: Ubuntu 4.8.0-58.63~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-58-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.9
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Jul 18 19:35:57 2017
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-trusty-amd64-20140620-0
InstallationDate: Installed on 2015-07-02 (747 days ago)
InstallationMedia: Ubuntu 14.04 "Trusty" - Build amd64 LIVE Binary 20140620-04:25
PackageArchitecture: all
SourcePackage: deluge
UpgradeStatus: Upgraded to xenial on 2016-10-29 (262 days ago)

Revision history for this message
Andrei Borzenkov (arvidjaar-s) wrote :
Revision history for this message
Cas (calumlind) wrote :

We ship a python-only version of rencode with Deluge so the rencode cython version must have an issue.

You might be able to force remove python-rencode using dpkg after installing Deluge 2.0, hopefully making it usable again...

This will need reporting upstream to: https://github.com/aresch/rencode

Revision history for this message
Andrei Borzenkov (arvidjaar-s) wrote :

I have opened an issue, but given that upstream is already at 1.0.5 I do not hold my breath ...

https://github.com/aresch/rencode/issues/15

Revision history for this message
Andrei Borzenkov (arvidjaar-s) wrote :
Download full text (4.0 KiB)

It still fails using the most recent packages.

июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: 19:09:31 [ERROR ][deluge.component :132 ] [Failure instance: Traceback: <class 'UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xd0 in position 10: ordinal not in range(128)
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/base.py:1252:mainLoop
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/base.py:878:runUntilCurrent
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/defer.py:459:callback
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/defer.py:567:_startRunCallbacks
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: --- <exception caught here> ---
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/defer.py:653:_runCallbacks
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/task.py:865:<lambda>
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/deluge/core/torrentmanager.py:239:start
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/deluge/core/torrentmanager.py:832:load_state
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/deluge/core/torrentmanager.py:812:open_state
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: ]
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: Unhandled error in Deferred:
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: 19:09:31 [CRITICAL][twisted :154 ] Unhandled error in Deferred:
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: 19:09:31 [CRITICAL][deluge.log :93 ] twisted.internet.defer
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: [Failure instance: Traceback: <class 'UnicodeDecodeError'>: 'ascii' codec can't decode byte 0xd0 in position 10: ordinal not in range(128)
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/base.py:1252:mainLoop
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/base.py:878:runUntilCurrent
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/defer.py:459:callback
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/defer.py:567:_startRunCallbacks
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: --- <exception caught here> ---
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/defer.py:653:_runCallbacks
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/twisted/internet/task.py:865:<lambda>
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/deluge/core/torrentmanager.py:239:start
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/lib/python3/dist-packages/deluge/core/torrentmanager.py:832:load_state
июн 28 19:09:31 bor-Latitude-E5450 deluged[3803]: /usr/l...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.