Discussion:
[libtorrent] unable to use libtorrent-master with deluge, which crashes with boost::shared_ptr error
Michelle Cabrero
2016-01-04 03:32:11 UTC
Permalink
I am interested in the async disk I/O aspects of libtorrent-master, and
tried to use it (instead of 1.0.7) with Deluge 1.3.12. However, I'm stuck.

I configured with:

./configure --enable-python-binding --enable-debug=yes --with-libiconv

then built with make, which didn't give any terrible errors, just spit out a
variety of warnings, and installed.

I'm on Ubuntu 14.04, and Deluge doesn't even start, instead bombing out
with:

/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/_libtorr
ent.py:59: RuntimeWarning: to-Python converter for
boost::shared_ptr<libtorrent::alert> already registered; second conversion
method ignored.
import libtorrent as lt
[ERROR ] 04:29:12 component:118 [Failure instance: Traceback: <type
'exceptions.TypeError'>: No to_python (by-value) converter found for C++
type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >

A similar error when I tried:

$ python -c "import libtorrent; print libtorrent.version"
-c:1: RuntimeWarning: to-Python converter for
boost::shared_ptr<libtorrent::alert> already registered; second conversion
method ignored.
1.1.0.0

Any help would be appreciated!
------------------------------------------------------------------------------
Michelle Cabrero
2016-01-04 03:33:55 UTC
Permalink
I forgot to add... I installed the various Boost tools via apt, and it's all
version 1.54.0.

Sent: Sunday, January 03, 2016 at 10:32 PM
From: "Michelle Cabrero" <***@gmx.com>
To: "General discussion about libtorrent"
<libtorrent-***@lists.sourceforge.net>
Subject: [libtorrent] unable to use libtorrent-master with deluge, which
crashes with boost::shared_ptr error
I am interested in the async disk I/O aspects of libtorrent-master, and
tried to use it (instead of 1.0.7) with Deluge 1.3.12. However, I'm stuck.
I configured with:
./configure --enable-python-binding --enable-debug=yes --with-libiconv
then built with make, which didn't give any terrible errors, just spit out a
variety of warnings, and installed.
I'm on Ubuntu 14.04, and Deluge doesn't even start, instead bombing out
with:
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/_libtorr
ent.py:59: RuntimeWarning: to-Python converter for
boost::shared_ptr<libtorrent::alert> already registered; second conversion
method ignored.
import libtorrent as lt
[ERROR ] 04:29:12 component:118 [Failure instance: Traceback: <type
'exceptions.TypeError'>: No to_python (by-value) converter found for C++
type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
A similar error when I tried:
$ python -c "import libtorrent; print libtorrent.version"
-c:1: RuntimeWarning: to-Python converter for
boost::shared_ptr<libtorrent::alert> already registered; second conversion
method ignored.
1.1.0.0
Any help would be appreciated!
----------------------------------------------------------------------------
--
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[1]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Andrew Resch
2016-01-04 03:48:32 UTC
Permalink
The warning doesn't look like the problem, but we should probably clear it
up since I think that's caused by the recent change I made.

The real error seems to be:

No to_python (by-value) converter found for C++
type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >

Looks like we probably need to update the python bindings in master since
some interface has changed.

On Sun, Jan 3, 2016 at 7:33 PM, Michelle Cabrero <***@gmx.com> wrote:

>
> I forgot to add... I installed the various Boost tools via apt, and
> it's all
> version 1.54.0.
>
> Sent: Sunday, January 03, 2016 at 10:32 PM
> From: "Michelle Cabrero" <***@gmx.com>
> To: "General discussion about libtorrent"
> <libtorrent-***@lists.sourceforge.net>
> Subject: [libtorrent] unable to use libtorrent-master with deluge, which
> crashes with boost::shared_ptr error
> I am interested in the async disk I/O aspects of libtorrent-master, and
> tried to use it (instead of 1.0.7) with Deluge 1.3.12. However, I'm
> stuck.
> I configured with:
> ./configure --enable-python-binding --enable-debug=yes --with-libiconv
> then built with make, which didn't give any terrible errors, just spit
> out a
> variety of warnings, and installed.
> I'm on Ubuntu 14.04, and Deluge doesn't even start, instead bombing out
> with:
>
> /usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/_libtorr
> ent.py:59: RuntimeWarning: to-Python converter for
> boost::shared_ptr<libtorrent::alert> already registered; second
> conversion
> method ignored.
> import libtorrent as lt
> [ERROR ] 04:29:12 component:118 [Failure instance: Traceback: <type
> 'exceptions.TypeError'>: No to_python (by-value) converter found for C++
> type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
> A similar error when I tried:
> $ python -c "import libtorrent; print libtorrent.version"
> -c:1: RuntimeWarning: to-Python converter for
> boost::shared_ptr<libtorrent::alert> already registered; second
> conversion
> method ignored.
> 1.1.0.0
> Any help would be appreciated!
>
> ----------------------------------------------------------------------------
> --
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [1]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> References
>
> 1. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
------------------------------------------------------------------------------
Michelle Cabrero
2016-01-04 22:43:33 UTC
Permalink
Right, I was just including the warning because it preceded the actual error
-- trying to overshare, perhaps. ;-)

OK, thanks, then do I just wait for the commit over the next few
weeks/months to try again? Cheers!
Sent: Sunday, January 03, 2016 at 10:48 PM
From: "Andrew Resch" <***@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
The warning doesn't look like the problem, but we should probably clear it
up since I think that's caused by the recent change I made.
The real error seems to be:
No to_python (by-value) converter found for C++
type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
Looks like we probably need to update the python bindings in master since
some interface has changed.
On Sun, Jan 3, 2016 at 7:33 PM, Michelle Cabrero <***@gmx.com> wrote:
>
> I forgot to add... I installed the various Boost tools via apt, and
> it's all
> version 1.54.0.
>
> Sent: Sunday, January 03, 2016 at 10:32 PM
> From: "Michelle Cabrero" <***@gmx.com>
> To: "General discussion about libtorrent"
> <libtorrent-***@lists.sourceforge.net>
> Subject: [libtorrent] unable to use libtorrent-master with deluge, which
> crashes with boost::shared_ptr error
> I am interested in the async disk I/O aspects of libtorrent-master, and
> tried to use it (instead of 1.0.7) with Deluge 1.3.12. However, I'm
> stuck.
> I configured with:
> ./configure --enable-python-binding --enable-debug=yes --with-libiconv
> then built with make, which didn't give any terrible errors, just spit
> out a
> variety of warnings, and installed.
> I'm on Ubuntu 14.04, and Deluge doesn't even start, instead bombing out
> with:
>
>
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/_libtorr
> ent.py:59: RuntimeWarning: to-Python converter for
> boost::shared_ptr<libtorrent::alert> already registered; second
> conversion
> method ignored.
> import libtorrent as lt
> [ERROR ] 04:29:12 component:118 [Failure instance: Traceback: <type
> 'exceptions.TypeError'>: No to_python (by-value) converter found for C++
> type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
> A similar error when I tried:
> $ python -c "import libtorrent; print libtorrent.version"
> -c:1: RuntimeWarning: to-Python converter for
> boost::shared_ptr<libtorrent::alert> already registered; second
> conversion
> method ignored.
> 1.1.0.0
> Any help would be appreciated!
>
>
----------------------------------------------------------------------------
> --
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [1][1]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> References
>
> 1. [2]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
>
----------------------------------------------------------------------------
--
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [3]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
----------------------------------------------------------------------------
--
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[4]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
2. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
3. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
4. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Arvid Norberg
2016-01-05 01:07:22 UTC
Permalink
I'll fix the python bindings in master. As I was porting the test to master
I realized I had changed the life-time of alerts without updating the
bindings.

On Sun, Jan 3, 2016 at 10:48 PM, Andrew Resch <***@gmail.com> wrote:

> The warning doesn't look like the problem, but we should probably clear it
> up since I think that's caused by the recent change I made.
>
> The real error seems to be:
>
> No to_python (by-value) converter found for C++
> type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
>
> Looks like we probably need to update the python bindings in master since
> some interface has changed.
>
> On Sun, Jan 3, 2016 at 7:33 PM, Michelle Cabrero <***@gmx.com>
> wrote:
>
> >
> > I forgot to add... I installed the various Boost tools via apt, and
> > it's all
> > version 1.54.0.
> >
> > Sent: Sunday, January 03, 2016 at 10:32 PM
> > From: "Michelle Cabrero" <***@gmx.com>
> > To: "General discussion about libtorrent"
> > <libtorrent-***@lists.sourceforge.net>
> > Subject: [libtorrent] unable to use libtorrent-master with deluge,
> which
> > crashes with boost::shared_ptr error
> > I am interested in the async disk I/O aspects of libtorrent-master,
> and
> > tried to use it (instead of 1.0.7) with Deluge 1.3.12. However, I'm
> > stuck.
> > I configured with:
> > ./configure --enable-python-binding --enable-debug=yes --with-libiconv
> > then built with make, which didn't give any terrible errors, just spit
> > out a
> > variety of warnings, and installed.
> > I'm on Ubuntu 14.04, and Deluge doesn't even start, instead bombing
> out
> > with:
> >
> >
> /usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/_libtorr
> > ent.py:59: RuntimeWarning: to-Python converter for
> > boost::shared_ptr<libtorrent::alert> already registered; second
> > conversion
> > method ignored.
> > import libtorrent as lt
> > [ERROR ] 04:29:12 component:118 [Failure instance: Traceback: <type
> > 'exceptions.TypeError'>: No to_python (by-value) converter found for
> C++
> > type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
> > A similar error when I tried:
> > $ python -c "import libtorrent; print libtorrent.version"
> > -c:1: RuntimeWarning: to-Python converter for
> > boost::shared_ptr<libtorrent::alert> already registered; second
> > conversion
> > method ignored.
> > 1.1.0.0
> > Any help would be appreciated!
> >
> >
> ----------------------------------------------------------------------------
> > --
> > _______________________________________________
> > Libtorrent-discuss mailing list
> > Libtorrent-***@lists.sourceforge.net
> > [1]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
> >
> > References
> >
> > 1. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
> >
> >
> ------------------------------------------------------------------------------
> > _______________________________________________
> > Libtorrent-discuss mailing list
> > Libtorrent-***@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
> >
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>



--
Arvid Norberg
------------------------------------------------------------------------------
Michelle Cabrero
2016-01-06 01:38:12 UTC
Permalink
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:

--

assertion failed. Please file a bugreport at
https://github.com/arvidn/libtorrent/issues
Please include the following information:
version: 1.1.0.0-4c0b00c
file: 'torrent.cpp'
line: 9137
function: void libtorrent::torrent::set_queue_position(int)
expression: (p == -1) == is_finished() || (!m_auto_managed && p == -1) ||
(m_abort && p == -1)
stack:
1: assert_fail(char const*, int, char const*, char const*, char const*, int)
2:
3:
4:
5:
6:
7:
8:
9: clone

--

and upon trying a second time (and every time thereafter since), it crashes
with:

--
[ERROR ] 02:30:27 component:118 [Failure instance: Traceback: <type
'exceptions.TypeError'>: No to_python (by-value) converter found for C++
type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:295:addCallbacks
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:577:_runCallbacks
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/componen
t.py:285:on_depends_started
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/componen
t.py:124:_component_start
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:139:maybeDeferred
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/tor
rentmanager.py:220:start
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/tor
rentmanager.py:672:load_state
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/tor
rentmanager.py:539:add
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/core/tor
rent.py:685:get_status
]
--

Am I missing some intermediate step to make this work?

Thanks again!

Sent: Monday, January 04, 2016 at 8:07 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
I'll fix the python bindings in master. As I was porting the test to master
I realized I had changed the life-time of alerts without updating the
bindings.
On Sun, Jan 3, 2016 at 10:48 PM, Andrew Resch <***@gmail.com> wrote:
> The warning doesn't look like the problem, but we should probably clear it
> up since I think that's caused by the recent change I made.
>
> The real error seems to be:
>
> No to_python (by-value) converter found for C++
> type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
>
> Looks like we probably need to update the python bindings in master since
> some interface has changed.
>
> On Sun, Jan 3, 2016 at 7:33 PM, Michelle Cabrero <***@gmx.com>
> wrote:
>
> >
> > I forgot to add... I installed the various Boost tools via apt, and
> > it's all
> > version 1.54.0.
> >
> > Sent: Sunday, January 03, 2016 at 10:32 PM
> > From: "Michelle Cabrero" <***@gmx.com>
> > To: "General discussion about libtorrent"
> > <libtorrent-***@lists.sourceforge.net>
> > Subject: [libtorrent] unable to use libtorrent-master with deluge,
> which
> > crashes with boost::shared_ptr error
> > I am interested in the async disk I/O aspects of libtorrent-master,
> and
> > tried to use it (instead of 1.0.7) with Deluge 1.3.12. However, I'm
> > stuck.
> > I configured with:
> > ./configure --enable-python-binding --enable-debug=yes --with-libiconv
> > then built with make, which didn't give any terrible errors, just spit
> > out a
> > variety of warnings, and installed.
> > I'm on Ubuntu 14.04, and Deluge doesn't even start, instead bombing
> out
> > with:
> >
> >
>
/usr/lib/python2.7/dist-packages/deluge-1.3.12_dev-py2.7.egg/deluge/_libtorr
> > ent.py:59: RuntimeWarning: to-Python converter for
> > boost::shared_ptr<libtorrent::alert> already registered; second
> > conversion
> > method ignored.
> > import libtorrent as lt
> > [ERROR ] 04:29:12 component:118 [Failure instance: Traceback: <type
> > 'exceptions.TypeError'>: No to_python (by-value) converter found for
> C++
> > type: boost::chrono::duration<long, boost::ratio<1l, 1000000000l> >
> > A similar error when I tried:
> > $ python -c "import libtorrent; print libtorrent.version"
> > -c:1: RuntimeWarning: to-Python converter for
> > boost::shared_ptr<libtorrent::alert> already registered; second
> > conversion
> > method ignored.
> > 1.1.0.0
> > Any help would be appreciated!
> >
> >
>
----------------------------------------------------------------------------
> > --
> > _______________________________________________
> > Libtorrent-discuss mailing list
> > Libtorrent-***@lists.sourceforge.net
> > [1][1]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
> >
> > References
> >
> > 1. [2]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
> >
> >
>
----------------------------------------------------------------------------
--
> > _______________________________________________
> > Libtorrent-discuss mailing list
> > Libtorrent-***@lists.sourceforge.net
> > [3]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
> >
>
>
----------------------------------------------------------------------------
--
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [4]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
--
Arvid Norberg
----------------------------------------------------------------------------
--
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[5]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
2. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
3. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
4. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
5. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Arvid Norberg
2016-01-06 03:51:35 UTC
Permalink
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
2016-01-06 05:18:38 UTC
Permalink
could you give this a try?

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
------------------------------------------------------------------------------
Michelle Cabrero
2016-01-07 01:03:34 UTC
Permalink
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]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]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. https://github.com/arvidn/libtorrent/pull/365
2. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
------------------------------------------------------------------------------
Arvid Norberg
2016-01-07 22:48:37 UTC
Permalink
next attempt: 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]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]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> References
>
> 1. https://github.com/arvidn/libtorrent/pull/365
> 2. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>



--
Arvid Norberg
------------------------------------------------------------------------------
Michelle Cabrero
2016-01-08 03:51:25 UTC
Permalink
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
------------------------------------------------------------------------------
Arvid Norberg
2016-01-08 04:11:59 UTC
Permalink
On Thu, Jan 7, 2016 at 10:51 PM, Michelle Cabrero <***@gmx.com>
wrote:

>
> 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?
>

Would it be possible to make a debug build and run it under a debugger?
(visual studio, windbg, olliedbg)

One caveat is that, if built with deprecated functions off, alerts may not
be saved around. They can be inspected as they're received, but the next
time pop_alerts() is called, all the alert pointers are invalidated. This
isn't modeled excellent in the python bindings, as keeping an alert around
would cause a crash. It does make it efficient and match the C++ semantics.

I doubt you're building with deprecated functions disabled though.

--
Arvid Norberg
------------------------------------------------------------------------------
Arvid Norberg
2016-01-09 18:50:27 UTC
Permalink
I was thinking that I would try to reproduce this myself. It turns out that
it's not trivial to run deluge. Do you have any pointers of what to do?
I figured that I could avoid building gtk and all dependencies by
downloading the binary and replacing the libtorrent and binding library,
but I couldn't find the binding itself (and it looks like it's built as
shared libraries, so I would expect there to be both a library for the
binding and one for the main library).

On Thu, Jan 7, 2016 at 11:11 PM, Arvid Norberg <***@gmail.com>
wrote:

> On Thu, Jan 7, 2016 at 10:51 PM, Michelle Cabrero <***@gmx.com>
> wrote:
>
>>
>> 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?
>>
>
> Would it be possible to make a debug build and run it under a debugger?
> (visual studio, windbg, olliedbg)
>
> One caveat is that, if built with deprecated functions off, alerts may not
> be saved around. They can be inspected as they're received, but the next
> time pop_alerts() is called, all the alert pointers are invalidated. This
> isn't modeled excellent in the python bindings, as keeping an alert around
> would cause a crash. It does make it efficient and match the C++ semantics.
>
> I doubt you're building with deprecated functions disabled though.
>
> --
> Arvid Norberg
>



--
Arvid Norberg
Andrew Resch
2016-01-09 19:26:17 UTC
Permalink
It sounds like you're probably not using a linux distro. Your best bet
would just be to install a virtual machine running some sort of linux and
run Deluge there.

On Sat, Jan 9, 2016 at 10:50 AM, Arvid Norberg <***@gmail.com>
wrote:

> I was thinking that I would try to reproduce this myself. It turns out that
> it's not trivial to run deluge. Do you have any pointers of what to do?
> I figured that I could avoid building gtk and all dependencies by
> downloading the binary and replacing the libtorrent and binding library,
> but I couldn't find the binding itself (and it looks like it's built as
> shared libraries, so I would expect there to be both a library for the
> binding and one for the main library).
>
> On Thu, Jan 7, 2016 at 11:11 PM, Arvid Norberg <***@gmail.com>
> wrote:
>
> > On Thu, Jan 7, 2016 at 10:51 PM, Michelle Cabrero <***@gmx.com>
> > wrote:
> >
> >>
> >> 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?
> >>
> >
> > Would it be possible to make a debug build and run it under a debugger?
> > (visual studio, windbg, olliedbg)
> >
> > One caveat is that, if built with deprecated functions off, alerts may
> not
> > be saved around. They can be inspected as they're received, but the next
> > time pop_alerts() is called, all the alert pointers are invalidated. This
> > isn't modeled excellent in the python bindings, as keeping an alert
> around
> > would cause a crash. It does make it efficient and match the C++
> semantics.
> >
> > I doubt you're building with deprecated functions disabled though.
> >
> > --
> > Arvid Norberg
> >
>
>
>
> --
> Arvid Norberg
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
Michelle Cabrero
2016-01-10 04:01:35 UTC
Permalink
Hello Andrew and Arvid,

Sorry for the tardy response. I am traveling and won't be near my
development machine for a few days. Yes, I am running Deluge on Ubuntu 14.04
with libtorrent-master. In case it helps, I am using this guide to install
libtorrent (and python bindings):

http://dev.deluge-torrent.org/wiki/Building/libtorrent

and of course before that, I installed Deluge 1.3.12-dev following this:

http://dev.deluge-torrent.org/wiki/Installing/Source

Hope you're both having a nice weekend!

Sent: Saturday, January 09, 2016 at 2:26 PM
From: "Andrew Resch" <***@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
It sounds like you're probably not using a linux distro. Your best bet
would just be to install a virtual machine running some sort of linux and
run Deluge there.
On Sat, Jan 9, 2016 at 10:50 AM, Arvid Norberg <***@gmail.com>
wrote:
> I was thinking that I would try to reproduce this myself. It turns out
that
> it's not trivial to run deluge. Do you have any pointers of what to do?
> I figured that I could avoid building gtk and all dependencies by
> downloading the binary and replacing the libtorrent and binding library,
> but I couldn't find the binding itself (and it looks like it's built as
> shared libraries, so I would expect there to be both a library for the
> binding and one for the main library).
>
> On Thu, Jan 7, 2016 at 11:11 PM, Arvid Norberg <***@gmail.com>
> wrote:
>
> > On Thu, Jan 7, 2016 at 10:51 PM, Michelle Cabrero <***@gmx.com>
> > wrote:
> >
> >>
> >> 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?
> >>
> >
> > Would it be possible to make a debug build and run it under a debugger?
> > (visual studio, windbg, olliedbg)
> >
> > One caveat is that, if built with deprecated functions off, alerts may
> not
> > be saved around. They can be inspected as they're received, but the next
> > time pop_alerts() is called, all the alert pointers are invalidated.
This
> > isn't modeled excellent in the python bindings, as keeping an alert
> around
> > would cause a crash. It does make it efficient and match the C++
> semantics.
> >
> > I doubt you're building with deprecated functions disabled though.
> >
> > --
> > Arvid Norberg
> >
>
>
>
> --
> Arvid Norberg
>
>
----------------------------------------------------------------------------
--
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> [1]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [2]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
----------------------------------------------------------------------------
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
[3]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[4]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
2. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
3. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
4. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
m***@beroal.in.ua
2016-01-10 13:54:16 UTC
Permalink
On 09.01.16 20:50, Arvid Norberg wrote:
> I was thinking that I would try to reproduce this myself. It turns out that
> it's not trivial to run deluge. Do you have any pointers of what to do?
Try to run this short program https://bugs.archlinux.org/task/47530 in
the Python interpreter.
Arvid Norberg
2016-01-10 17:18:58 UTC
Permalink
On Sun, Jan 10, 2016 at 8:54 AM, <***@beroal.in.ua> wrote:

> On 09.01.16 20:50, Arvid Norberg wrote:
> > I was thinking that I would try to reproduce this myself. It turns out
> that
> > it's not trivial to run deluge. Do you have any pointers of what to do?
> Try to run this short program https://bugs.archlinux.org/task/47530 in
> the Python interpreter.
>

This is basically what the test does in libtorrent (which works now).

Or does this exhibit the crash for you? (with head of master)

Arvid Norberg
Andrew Resch
2016-01-10 21:13:03 UTC
Permalink
I built libtorrent master and ran the unit tests.

[***@squid python]$ python test.py
1.1.0.0
EEF..
======================================================================
ERROR: test_alert (__main__.test_alerts)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 31, in test_alert
ses = lt.session({'alert_mask': lt.alert.category_t.all_categories})
AttributeError: 'dict' object has no attribute 'iterkeys'

======================================================================
ERROR: test_bdecode (__main__.test_bencoder)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 65, in test_bdecode
decoded = lt.bdecode(encoded)
Boost.Python.ArgumentError: Python argument types in
libtorrent.bdecode(str)
did not match C++ signature:
bdecode(bytes)

======================================================================
FAIL: test_bencode (__main__.test_bencoder)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 60, in test_bencode
self.assertEqual(encoded, 'd1:ai1e1:bli1ei2ei3ee1:c3:fooe')
AssertionError: b'd1:ai1e1:bli1ei2ei3ee1:c3:fooe' !=
'd1:ai1e1:bli1ei2ei3ee1:c3:fooe'

----------------------------------------------------------------------
Ran 5 tests in 0.001s

FAILED (failures=1, errors=2)


These errors are just because I'm using python 3. I'll fix them and issue
a pull request.



On Sun, Jan 10, 2016 at 9:18 AM, Arvid Norberg <***@gmail.com>
wrote:

> On Sun, Jan 10, 2016 at 8:54 AM, <***@beroal.in.ua> wrote:
>
> > On 09.01.16 20:50, Arvid Norberg wrote:
> > > I was thinking that I would try to reproduce this myself. It turns out
> > that
> > > it's not trivial to run deluge. Do you have any pointers of what to do?
> > Try to run this short program https://bugs.archlinux.org/task/47530 in
> > the Python interpreter.
> >
>
> This is basically what the test does in libtorrent (which works now).
>
> Or does this exhibit the crash for you? (with head of master)
>
> Arvid Norberg
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
Andrew Resch
2016-01-11 00:29:45 UTC
Permalink
When I run it with python2, I get the following:

[***@squid python]$ python2 test.py
1.1.0.0
E....
======================================================================
ERROR: test_alert (__main__.test_alerts)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 37, in test_alert
ses.wait_for_alert(1000) # milliseconds
TypeError: No to_python (by-value) converter found for C++ type:
boost::shared_ptr<libtorrent::alert>

----------------------------------------------------------------------
Ran 5 tests in 1.503s

FAILED (errors=1)


On Sun, Jan 10, 2016 at 1:13 PM, Andrew Resch <***@gmail.com> wrote:

> I built libtorrent master and ran the unit tests.
>
> [***@squid python]$ python test.py
> 1.1.0.0
> EEF..
> ======================================================================
> ERROR: test_alert (__main__.test_alerts)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test.py", line 31, in test_alert
> ses = lt.session({'alert_mask': lt.alert.category_t.all_categories})
> AttributeError: 'dict' object has no attribute 'iterkeys'
>
> ======================================================================
> ERROR: test_bdecode (__main__.test_bencoder)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test.py", line 65, in test_bdecode
> decoded = lt.bdecode(encoded)
> Boost.Python.ArgumentError: Python argument types in
> libtorrent.bdecode(str)
> did not match C++ signature:
> bdecode(bytes)
>
> ======================================================================
> FAIL: test_bencode (__main__.test_bencoder)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test.py", line 60, in test_bencode
> self.assertEqual(encoded, 'd1:ai1e1:bli1ei2ei3ee1:c3:fooe')
> AssertionError: b'd1:ai1e1:bli1ei2ei3ee1:c3:fooe' !=
> 'd1:ai1e1:bli1ei2ei3ee1:c3:fooe'
>
> ----------------------------------------------------------------------
> Ran 5 tests in 0.001s
>
> FAILED (failures=1, errors=2)
>
>
> These errors are just because I'm using python 3. I'll fix them and issue
> a pull request.
>
>
>
> On Sun, Jan 10, 2016 at 9:18 AM, Arvid Norberg <***@gmail.com>
> wrote:
>
>> On Sun, Jan 10, 2016 at 8:54 AM, <***@beroal.in.ua> wrote:
>>
>> > On 09.01.16 20:50, Arvid Norberg wrote:
>> > > I was thinking that I would try to reproduce this myself. It turns out
>> > that
>> > > it's not trivial to run deluge. Do you have any pointers of what to
>> do?
>> > Try to run this short program https://bugs.archlinux.org/task/47530 in
>> > the Python interpreter.
>> >
>>
>> This is basically what the test does in libtorrent (which works now).
>>
>> Or does this exhibit the crash for you? (with head of master)
>>
>> Arvid Norberg
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>> _______________________________________________
>> Libtorrent-discuss mailing list
>> Libtorrent-***@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>>
>
>
Andrew Resch
2016-01-11 03:59:36 UTC
Permalink
I think I have the fix here: https://github.com/arvidn/libtorrent/pull/378

I had to re-add the converter for boost::shared_ptr<libtorrent::alert>..
Not sure if this is desirable or not.

On Sun, Jan 10, 2016 at 4:29 PM, Andrew Resch <***@gmail.com> wrote:

> When I run it with python2, I get the following:
>
> [***@squid python]$ python2 test.py
> 1.1.0.0
> E....
> ======================================================================
> ERROR: test_alert (__main__.test_alerts)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "test.py", line 37, in test_alert
> ses.wait_for_alert(1000) # milliseconds
> TypeError: No to_python (by-value) converter found for C++ type:
> boost::shared_ptr<libtorrent::alert>
>
> ----------------------------------------------------------------------
> Ran 5 tests in 1.503s
>
> FAILED (errors=1)
>
>
> On Sun, Jan 10, 2016 at 1:13 PM, Andrew Resch <***@gmail.com>
> wrote:
>
>> I built libtorrent master and ran the unit tests.
>>
>> [***@squid python]$ python test.py
>> 1.1.0.0
>> EEF..
>> ======================================================================
>> ERROR: test_alert (__main__.test_alerts)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "test.py", line 31, in test_alert
>> ses = lt.session({'alert_mask': lt.alert.category_t.all_categories})
>> AttributeError: 'dict' object has no attribute 'iterkeys'
>>
>> ======================================================================
>> ERROR: test_bdecode (__main__.test_bencoder)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "test.py", line 65, in test_bdecode
>> decoded = lt.bdecode(encoded)
>> Boost.Python.ArgumentError: Python argument types in
>> libtorrent.bdecode(str)
>> did not match C++ signature:
>> bdecode(bytes)
>>
>> ======================================================================
>> FAIL: test_bencode (__main__.test_bencoder)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>> File "test.py", line 60, in test_bencode
>> self.assertEqual(encoded, 'd1:ai1e1:bli1ei2ei3ee1:c3:fooe')
>> AssertionError: b'd1:ai1e1:bli1ei2ei3ee1:c3:fooe' !=
>> 'd1:ai1e1:bli1ei2ei3ee1:c3:fooe'
>>
>> ----------------------------------------------------------------------
>> Ran 5 tests in 0.001s
>>
>> FAILED (failures=1, errors=2)
>>
>>
>> These errors are just because I'm using python 3. I'll fix them and
>> issue a pull request.
>>
>>
>>
>> On Sun, Jan 10, 2016 at 9:18 AM, Arvid Norberg <***@gmail.com>
>> wrote:
>>
>>> On Sun, Jan 10, 2016 at 8:54 AM, <***@beroal.in.ua> wrote:
>>>
>>> > On 09.01.16 20:50, Arvid Norberg wrote:
>>> > > I was thinking that I would try to reproduce this myself. It turns
>>> out
>>> > that
>>> > > it's not trivial to run deluge. Do you have any pointers of what to
>>> do?
>>> > Try to run this short program https://bugs.archlinux.org/task/47530 in
>>> > the Python interpreter.
>>> >
>>>
>>> This is basically what the test does in libtorrent (which works now).
>>>
>>> Or does this exhibit the crash for you? (with head of master)
>>>
>>> Arvid Norberg
>>>
>>> ------------------------------------------------------------------------------
>>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>> Monitor end-to-end web transactions and take corrective actions now
>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>>> _______________________________________________
>>> Libtorrent-discuss mailing list
>>> Libtorrent-***@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>>>
>>
>>
>
Michelle Cabrero
2016-01-15 03:49:40 UTC
Permalink
Still crashing here whenever I add torrens to deluge, and this is with the
latest libtorrent-master, FYI. And also kicking out:

_libtorrent.py:59: RuntimeWarning: to-Python converter for
boost::shared_ptr<libtorrent::alert> already registered; second conversion
method ignored.

I'm stumped. :/

Sent: Sunday, January 10, 2016 at 12:18 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
On Sun, Jan 10, 2016 at 8:54 AM, <***@beroal.in.ua> wrote:
> On 09.01.16 20:50, Arvid Norberg wrote:
> > I was thinking that I would try to reproduce this myself. It turns out
> that
> > it's not trivial to run deluge. Do you have any pointers of what to do?
> Try to run this short program [1]https://bugs.archlinux.org/task/47530 in
> the Python interpreter.
>
This is basically what the test does in libtorrent (which works now).
Or does this exhibit the crash for you? (with head of master)
Arvid Norberg
----------------------------------------------------------------------------
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
[2]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[3]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. https://bugs.archlinux.org/task/47530
2. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
3. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Arvid Norberg
2016-01-15 04:12:26 UTC
Permalink
On Thu, Jan 14, 2016 at 10:49 PM, Michelle Cabrero <***@gmx.com>
wrote:

>
> Still crashing here whenever I add torrens to deluge, and this is with
> the
> latest libtorrent-master, FYI. And also kicking out:
>
> _libtorrent.py:59: RuntimeWarning: to-Python converter for
> boost::shared_ptr<libtorrent::alert> already registered; second
> conversion
> method ignored.
>
> I'm stumped. :/
>

Is that the crash? (i.e. unhandled exception) or is that a separate error
you also see?

The missing to-python converter error should be fixed now (in latest master
and RC_1_0). If it isn't, please let me know which platform, compiler and
boost version you're on.

See: https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
and: https://github.com/arvidn/libtorrent/pull/387

--
Arvid Norberg
Michelle Cabrero
2016-01-22 01:55:30 UTC
Permalink
That's not the crash, but just something I saw re-appear with the latest
-master I was trying at the time.

The crash occurs with zero logging/hints from libtorrent or deluge
beforehand so I will try to reproduce it along with strace output to help
isolate the problem.

Thanks so much!
Sent: Thursday, January 14, 2016 at 11:12 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
On Thu, Jan 14, 2016 at 10:49 PM, Michelle Cabrero <***@gmx.com>
wrote:
>
> Still crashing here whenever I add torrens to deluge, and this is with
> the
> latest libtorrent-master, FYI. And also kicking out:
>
> _libtorrent.py:59: RuntimeWarning: to-Python converter for
> boost::shared_ptr<libtorrent::alert> already registered; second
> conversion
> method ignored.
>
> I'm stumped. :/
>
Is that the crash? (i.e. unhandled exception) or is that a separate error
you also see?
The missing to-python converter error should be fixed now (in latest master
and RC_1_0). If it isn't, please let me know which platform, compiler and
boost version you're on.
See: [1]https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
and: [2]https://github.com/arvidn/libtorrent/pull/387
--
Arvid Norberg
----------------------------------------------------------------------------
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
[3]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[4]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
2. https://github.com/arvidn/libtorrent/pull/387
3. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
4. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Andrew Resch
2016-01-22 02:02:19 UTC
Permalink
Can you check dmesg after a crash? It could be that a segfault is the
culprit.

On Thu, Jan 21, 2016 at 5:55 PM, Michelle Cabrero <***@gmx.com>
wrote:

>
> That's not the crash, but just something I saw re-appear with the latest
> -master I was trying at the time.
>
> The crash occurs with zero logging/hints from libtorrent or deluge
> beforehand so I will try to reproduce it along with strace output to
> help
> isolate the problem.
>
> Thanks so much!
> Sent: Thursday, January 14, 2016 at 11:12 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
> On Thu, Jan 14, 2016 at 10:49 PM, Michelle Cabrero <***@gmx.com>
> wrote:
> >
> > Still crashing here whenever I add torrens to deluge, and this is with
> > the
> > latest libtorrent-master, FYI. And also kicking out:
> >
> > _libtorrent.py:59: RuntimeWarning: to-Python converter for
> > boost::shared_ptr<libtorrent::alert> already registered; second
> > conversion
> > method ignored.
> >
> > I'm stumped. :/
> >
> Is that the crash? (i.e. unhandled exception) or is that a separate
> error
> you also see?
> The missing to-python converter error should be fixed now (in latest
> master
> and RC_1_0). If it isn't, please let me know which platform, compiler
> and
> boost version you're on.
> See: [1]
> https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
> and: [2]https://github.com/arvidn/libtorrent/pull/387
> --
> Arvid Norberg
>
> ----------------------------------------------------------------------------
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> [3]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [4]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> References
>
> 1. https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
> 2. https://github.com/arvidn/libtorrent/pull/387
> 3. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> 4. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
Michelle Cabrero
2016-02-15 04:30:59 UTC
Permalink
Thanks Andrew, great clue!

I can't get the latest -master to compile (make(1) complains about not all
targets being available). However, I can reproduce the crash with RC_1_1. It
is a sigfault indeed.

[3301633.087099] deluged[9858]: segfault at 3d ip 00007efd38775c9e sp
00007efd370b2ac0 error 4 in
libtorrent-rasterbar.so.9.0.0[7efd386da000+373000]

Though I am not sure the above helps. There is nothing useful in deluge.log
that preceeds the crash. :/

Is there anything else I can provide to help resolve this?

Cheers!
Sent: Thursday, January 21, 2016 at 9:02 PM
From: "Andrew Resch" <***@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
Can you check dmesg after a crash? It could be that a segfault is the
culprit.
On Thu, Jan 21, 2016 at 5:55 PM, Michelle Cabrero <***@gmx.com>
wrote:
>
> That's not the crash, but just something I saw re-appear with the latest
> -master I was trying at the time.
>
> The crash occurs with zero logging/hints from libtorrent or deluge
> beforehand so I will try to reproduce it along with strace output to
> help
> isolate the problem.
>
> Thanks so much!
> Sent: Thursday, January 14, 2016 at 11:12 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
> On Thu, Jan 14, 2016 at 10:49 PM, Michelle Cabrero <***@gmx.com>
> wrote:
> >
> > Still crashing here whenever I add torrens to deluge, and this is with
> > the
> > latest libtorrent-master, FYI. And also kicking out:
> >
> > _libtorrent.py:59: RuntimeWarning: to-Python converter for
> > boost::shared_ptr<libtorrent::alert> already registered; second
> > conversion
> > method ignored.
> >
> > I'm stumped. :/
> >
> Is that the crash? (i.e. unhandled exception) or is that a separate
> error
> you also see?
> The missing to-python converter error should be fixed now (in latest
> master
> and RC_1_0). If it isn't, please let me know which platform, compiler
> and
> boost version you're on.
> See: [1]
> [1]https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
> and: [2][2]https://github.com/arvidn/libtorrent/pull/387
> --
> Arvid Norberg
>
>
----------------------------------------------------------------------------
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> [3][3]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [4][4]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
> References
>
> 1. [5]https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
> 2. [6]https://github.com/arvidn/libtorrent/pull/387
> 3. [7]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> 4. [8]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
>
----------------------------------------------------------------------------
--
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> [9]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libtorrent-discuss mailing list
> Libtorrent-***@lists.sourceforge.net
> [10]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
>
----------------------------------------------------------------------------
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
[11]http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Libtorrent-discuss mailing list
Libtorrent-***@lists.sourceforge.net
[12]https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss

References

1. https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
2. https://github.com/arvidn/libtorrent/pull/387
3. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
4. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
5. https://github.com/arvidn/libtorrent/pull/383#issuecomment-171540083
6. https://github.com/arvidn/libtorrent/pull/387
7. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
8. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
9. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
10. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
11. http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
12. https://lists.sourceforge.net/lists/listinfo/libtorrent-discuss
Loading...