FS#49861 - [deluge] incompatible with libtorrent-rasterbar 1.1
Attached to Project:
Arch Linux
Opened by Hexcles Ma (bob.robot) - Monday, 27 June 2016, 04:15 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 21 July 2016, 09:17 GMT
Opened by Hexcles Ma (bob.robot) - Monday, 27 June 2016, 04:15 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 21 July 2016, 09:17 GMT
|
Details
Description:
After libtorrent-rasterbar is upgraded to 1.1, deluge (1.3.12) starts to throw uncaught exceptions and crash on startup (see the traceback at the end). The issue was already reported at the official forum (http://forum.deluge-torrent.org/viewtopic.php?t=53939). And according to a developer, Cas, deluge 1.3.* will make no attempts to support libtorrent 1.1. We might need a libtorrent-rasterbar-legacy package or some custom patches to fix this. Additional info: * package version(s) libtorrent-rasterbar 1:1.1-2 deluge 1.3.12-1 * traceback Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/deluge/ui/client.py", line 432, in __init__ self.__daemon = deluge.core.daemon.Daemon(classic=True) File "/usr/lib/python2.7/site-packages/deluge/core/daemon.py", line 161, in __init__ component.start("PreferencesManager") File "/usr/lib/python2.7/site-packages/deluge/component.py", line 296, in start deferreds.append(self.components[name]._component_start()) File "/usr/lib/python2.7/site-packages/deluge/component.py", line 124, in _component_start d = maybeDeferred(self.start) --- <exception caught here> --- File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 150, in maybeDeferred result = f(*args, **kw) File "/usr/lib/python2.7/site-packages/deluge/core/preferencesmanager.py", line 170, in start self._on_set_peer_tos) File "/usr/lib/python2.7/site-packages/deluge/config.py", line 312, in register_set_function function(key, self.__config[key]) File "/usr/lib/python2.7/site-packages/deluge/core/preferencesmanager.py", line 290, in _on_set_peer_to s self.session_set_setting("peer_tos", chr(int(value, 16))) File "/usr/lib/python2.7/site-packages/deluge/core/preferencesmanager.py", line 237, in session_set_set ting setattr(settings, key, value) exceptions.AttributeError: 'dict' object has no attribute 'peer_tos' [ERROR ] 21:06:14 component:118 [Failure instance: Traceback: <type 'exceptions.AttributeError'>: 'dict ' object has no attribute 'peer_tos' |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Thursday, 21 July 2016, 09:17 GMT
Reason for closing: Fixed
Additional comments about closing: libtorrent-rasterbar 1.1-3 + deluge 1.3.13, currently in [testing]
Thursday, 21 July 2016, 09:17 GMT
Reason for closing: Fixed
Additional comments about closing: libtorrent-rasterbar 1.1-3 + deluge 1.3.13, currently in [testing]
bug 49836. qBittorrent also has crashes on launch with the latest libbittorrent-rasterbar. Differently though qBittorrent is supposed to work on that version libbittorrent-rasterbar. See if you can disable IP filtering in a config file or in an older version before upgrading and see if that makes a difference.My deluge installation was handling only 3 active torrents and putting everything else on queue.
Fixed the problem by downgrading to libtorrent-rasterbar 1.0.9-1.
Here is the thread: http://forum.deluge-torrent.org/viewtopic.php?f=7&t=54059
This is rather a high-priority bug. If we don't want to create a legacy library package for deluge (and qBittorrent etc.), at least we should put in some notes and probably direct users to an AUR package.
Here is a patch and updated PKGBUILD that backports this change in https://github.com/arvidn/libtorrent/commit/66e5994 to 1.1.0 libtorrent. Looks like the OpenSUSE people have also made the same changes as I did looking at their patch as well:
https://build.opensuse.org/package/view_file/devel:libraries:c_c++/libtorrent-rasterbar/libtorrent-rasterbar-1.1.0-fix-get-ip-filter.patch?expand=1
I have compiled and tested this patch and qBittorrent no longer IPFilters enabled and it works fine (So it should fix this and
bug 49836).If somebody can confirm that this fixes problems under Deluge as well that would be great.
ipfilter.patch (1.4 KiB)