Really appreciate your quick turnarounds.
I'm at a point where troubleshooting becomes diffcult. When adding an
initial test torrent, all went well -- files were downloaded, and the
torrent appeared to begin seeding as expected. Excitement!
However, after adding the next torrent, deluge crashed without reporting any
errors or warnings whatsoever. This is despite enabling the highest (debug)
level of logging in deluge, and compiling libtorrent (with your newest
datetime pull request) with debug enabled. I tried a few more times, and it
was the same mixed result -- a few times, no problem, but most times,
mystery and immediate crash as soon as deluge loaded the torrent.
Is my only option at this point strace or something similar?
Sent: Thursday, January 07, 2016 at 5:48 PM
From: "Arvid Norberg" <***@gmail.com>
To: "General discussion about libtorrent"
<libtorrent-***@lists.sourceforge.net>
Subject: Re: [libtorrent] unable to use libtorrent-master with deluge, which
crashes with boost::shared_ptr error
next attempt: [1]https://github.com/arvidn/libtorrent/pull/368
On Wed, Jan 6, 2016 at 8:03 PM, Michelle Cabrero <***@gmx.com> wrote:
>
> Thanks, Arvid. Making progress on my side but still not functioning. :/
> Here's what happens...
>
> No more crash, but an error, perhaps related to diffent format or
> specification of state files?
>
> 01:19:59 torrentmanager:674 Torrent state file is either corrupt or
> incompatible! 'float' object has no attribute 'seconds'
> Unhandled Error
> Traceback (most recent call last):
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/main.py
> ", line 230, in start_daemon
> Daemon(options, args)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/da
> emon.py", line 171, in __init__
> reactor.run()
> File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line
> 1192, in run
> self.mainLoop()
> File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line
> 1201, in mainLoop
> self.runUntilCurrent()
> --- <exception caught here> ---
> File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line
> 824, in runUntilCurrent
> call.func(*call.args, **call.kw)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrentmanager.py", line 941, in on_alert_torrent_finished
> total_download =
> torrent.get_status(["total_payload_download"])["total_payload_download"]
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrent.py", line 685, in get_status
> "next_announce": self.status.next_announce.seconds,
> exceptions.AttributeError: 'float' object has no attribute 'seconds'
>
> ---
>
> If I kill deluge, backup my state dir and restart, then all *seems* fine
> initially, as I can connect to my deluge instance, which of course has
> no
> torrents since a brand new state dir is created. However, as soon as I
> add a
> torrent, deluge crashes with the following errors. Is there a mismatch
> between deluge/libtorrent-master API perhaps? Sorry, I am so out of my
> depth
> here trying to get this to work. I hope at least these reports help
> someone
> else ultimately arrive at a solution!
>
> [ERROR ] 01:56:24 core:243 There was an error adding the torrent file
> TORRENT_FILE_NAME_HERE.torrent
> [ERROR ] 01:56:24 core:244 'float' object has no attribute 'seconds'
> Traceback (most recent call last):
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/co
> re.py", line 241, in add_torrent_file
> torrent_id = self.torrentmanager.add(filedump=filedump,
> options=options,
> filename=filename)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrentmanager.py", line 534, in add
> self.save_state()
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrentmanager.py", line 697, in save_state
> torrent.get_status(["total_uploaded"])["total_uploaded"],
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrent.py", line 685, in get_status
> "next_announce": self.status.next_announce.seconds,
> AttributeError: 'float' object has no attribute 'seconds'
> [ERROR ] 01:56:25 rpcserver:304 Exception calling RPC request: 'float'
> object has no attribute 'seconds'
> Traceback (most recent call last):
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/rp
> cserver.py", line 299, in dispatch
> ret = self.factory.methods[method](*args, **kwargs)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/co
> re.py", line 466, in get_filter_tree
> return self.filtermanager.get_filter_tree(show_zero_hits, hide_cat)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/fi
> ltermanager.py", line 191, in get_filter_tree
> items = dict( (field, self.tree_fields[field]()) for field in
> tree_keys)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/fi
> ltermanager.py", line 191, in <genexpr>
> items = dict( (field, self.tree_fields[field]()) for field in
> tree_keys)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/fi
> ltermanager.py", line 225, in _init_state_tree
>
> "Active":len(self.filter_state_active(self.torrents.get_torrent_list()))
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/fi
> ltermanager.py", line 244, in filter_state_active
> status = get_status(torrent_id, ["download_payload_rate",
> "upload_payload_rate"])
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/co
> re.py", line 435, in get_torrent_status
> status = self.torrentmanager[torrent_id].get_status(keys, diff)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrent.py", line 685, in get_status
> "next_announce": self.status.next_announce.seconds,
> AttributeError: 'float' object has no attribute 'seconds'
> Unhandled Error
> Traceback (most recent call last):
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/main.py
> ", line 230, in start_daemon
> Daemon(options, args)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/da
> emon.py", line 171, in __init__
> reactor.run()
> File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line
> 1192, in run
> self.mainLoop()
> File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line
> 1201, in mainLoop
> self.runUntilCurrent()
> --- <exception caught here> ---
> File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line
> 824, in runUntilCurrent
> call.func(*call.args, **call.kw)
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrentmanager.py", line 941, in on_alert_torrent_finished
> total_download =
> torrent.get_status(["total_payload_download"])["total_payload_download"]
> File
>
>
"/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/to
> rrent.py", line 685, in get_status
> "next_announce": self.status.next_announce.seconds,
> exceptions.AttributeError: 'float' object has no attribute 'seconds'
>
>
> Sent: Wednesday, January 06, 2016 at 12:18 AM
> From: "Arvid Norberg" <***@gmail.com>
> To: "General discussion about libtorrent"
> <libtorrent-***@lists.sourceforge.net>
> Subject: Re: [libtorrent] unable to use libtorrent-master with deluge,
> which
> crashes with boost::shared_ptr error
> could you give this a try?
> [1][2]https://github.com/arvidn/libtorrent/pull/365
> On Tue, Jan 5, 2016 at 10:51 PM, Arvid Norberg <***@gmail.com
> >
> wrote:
> > On Tue, Jan 5, 2016 at 8:38 PM, Michelle Cabrero <***@gmx.com>
> > wrote:
> >
> >>
> >> Thanks, but it's still not working. :-(
> >>
> >> I pulled the latest bits from -master, and when trying to start
> deluge
> >> the
> >> first time after compiling and installing, it immediately fails with:
> >>
> >
> > Ok, Thanks for letting me know. I'll make my test more extensive to
> > reproduce this.
> >
> > --
> > Arvid Norberg
> >
> --
> Arvid Norberg
>
>
----------------------------------------------------------------------------
> --
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [2][3]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> References
>
> 1. [4]https://github.com/arvidn/libtorrent/pull/365
> 2. [5]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
>
----------------------------------------------------------------------------
--
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [6]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
--
Arvid Norberg
----------------------------------------------------------------------------
--
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[7]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
References
1. https://github.com/arvidn/libtorrent/pull/368
2. https://github.com/arvidn/libtorrent/pull/365
3. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
4. https://github.com/arvidn/libtorrent/pull/365
5. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
6. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
7. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------