Opened 12 years ago
Closed 11 years ago
#1509 closed bug (Invalid)
deluge crashes when using proxy socks5 with authorization
Reported by: | MrErr | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | libtorrent | Version: | 1.3.1 |
Keywords: | Cc: | MrErr |
Description
I am using btguard as a proxy service. Deluge always crashes when i apply the btguard settings. I can restart deluge, but it crashes after a few seconds or minutes. The error is always "terminate called after throwing an instance of 'boost::lock_error'"
Can anyone please help.
Attachments (3)
Change History (24)
comment:1 Changed 12 years ago by MrErr
- Cc MrErr added
comment:2 Changed 12 years ago by Cas
- Component changed from core to libtorrent
- Milestone changed from 1.3.2 to Future
- Type changed from defect to bug
comment:3 Changed 12 years ago by MrErr
BTGuard is a proxy server service. So i add the "proxy.btgaurd.com" as a proxy server along with my username and password. Their website is bygaurd.com
My OS is fedora 14. Libtorrent packet is libtorrent-0.12.7-1.fc14.x86_64. boost is boost-1.44.0-7.fc14.x86_64
comment:4 Changed 12 years ago by MrErr
It does not crash immediately, but it runs for a while and crashes. Sometimes it is a few seconds, sometimes a few hours. It seems unpredictable. I am now running it with the debug options so when it crashes i will attach the log file.
comment:5 Changed 12 years ago by Cas
There are two different libtorrents, and Deluge uses libtorrent-rasterbar. There are two stable version 0.14.x and 0.15.x but I can see from you logs you are actually using 0.14.11.
Can you try upgrading to 0.15.5.
comment:6 Changed 12 years ago by MrErr
OK i spent hours trying to install libtorrent-rasterbar. There are no rpm packages. I was able to do it. There was dependency nightmare i had to resolve. Then i tried to install deluge rpm and that would not work, because of the dependencies for libtorrent-ratser. Then i tried compiling deluge and installing and that worked. But when running it i got this error [myth@Tyrus ~]$ deluged -d -L DEBUG [ERROR ] 17:22:52 main:221 dynamic module does not define init function (initlibtorrent) Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/main.py", line 214, in start_daemon
Daemon(options, args)
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/core/daemon.py", line 136, in init
from deluge.core.core import Core
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/core/core.py", line 36, in <module>
from deluge._libtorrent import lt
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/_libtorrent.py", line 59, in <module>
import libtorrent as lt
ImportError?: dynamic module does not define init function (initlibtorrent) [myth@Tyrus ~]$
So what next?
comment:7 Changed 12 years ago by Cas
I did not realise Fedora has no rpm for 0.15.x
The error looks like the libtorrent python binding is missing.
If you're compiling deluge from source then you just need to drop the libtorrent source folder into the deluge folder and then follow normal Deluge build instructions.
Alternatively there is a script in the root of the deluge source called get_libtorrent that you can edit to 0.15 and it will fetch latest stable and build it.
I had a look around for an rpm and there was this one. I dont know if it usable however it shows what the exact dependencies are: http://rpmfind.unity-linux.org/Unity/libtorrent-rasterbar6-0.15.4-2.i586.html
comment:8 Changed 12 years ago by MrErr
I tried what you said and i still get the same problem.
/home/myth>deluged -d -L DEBUG [ERROR ] 15:55:50 main:221 dynamic module does not define init function (initlibtorrent) Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/main.py", line 214, in start_daemon
Daemon(options, args)
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/core/daemon.py", line 136, in init
from deluge.core.core import Core
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/core/core.py", line 36, in <module>
from deluge._libtorrent import lt
File "/usr/lib64/python2.7/site-packages/deluge-1.3.1-py2.7-linux-x86_64.egg/deluge/_libtorrent.py", line 59, in <module>
import libtorrent as lt
ImportError?: dynamic module does not define init function (initlibtorrent) /home/myth>
comment:9 Changed 12 years ago by MrErr
OK i got it installed. It was user error :)
But deluge still crashes. The error is
deluged -d -L DEBUG -l deluge.log terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what(): boost::lock_error
Aborted (core dumped)
I will add the log file.
comment:10 Changed 12 years ago by MrErr
Would it be better if i sent a couple of log files so that you might be able to look for similarities when the crashes happen?
comment:11 Changed 12 years ago by Cas
I spoke with the lt developer and he has applied a fix r5250 to the RC_0_15 branch that you can test that if you wish.
http://libtorrent.svn.sourceforge.net/viewvc/libtorrent/branches/
comment:12 Changed 12 years ago by MrErr
I downloaded the latest libtorrent and installed it with the latest deluge and i still get the same error.
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what(): boost::lock_error
/home/myth/bin/deluge.sh: line 8: 22144 Aborted (core dumped) deluged -d -L debug -l deluge.${COUNT}.log
I will add the log file.
Changed 12 years ago by MrErr
comment:13 Changed 12 years ago by MrErr
Is there a way to increase the amount of time it stays up? Now it stays up only about 20 - 30 seconds before crashing.
comment:14 follow-up: ↓ 15 Changed 12 years ago by Cas
Just to be sure, you downloaded the svn version of 0.15 RC? This fix will is not in 0.15.5.
comment:15 in reply to: ↑ 14 Changed 12 years ago by MrErr
I did download that version. I made sure the file udp_socket.cpp was updated. I used the script get_libtorrent.sh. Now when i rerun the script i get the message "At revision 5252". Is there something else i should do to get the latest?
comment:16 Changed 12 years ago by Cas
You were pulling from trunk and not the branch that I specified.
Just download the tar pack instead:
http://libtorrent.svn.sourceforge.net/viewvc/libtorrent/branches/RC_0_15/?view=tar
comment:17 Changed 12 years ago by MrErr
Ok i installed from the tar file and rebuilt deluge. I get the same error as before.
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::lock_error> >'
what(): boost::lock_error
Log file follows.
Changed 12 years ago by MrErr
comment:18 Changed 12 years ago by MrErr
Just wondering if there is anything i can do help to debug this?
comment:19 Changed 12 years ago by Cas
Sorry I should have updated this to say that you should create a ticket on libtorrents bug tracker
comment:20 Changed 12 years ago by Cas
- Milestone Future deleted
- Status changed from new to pending
comment:21 Changed 11 years ago by Cas
- Resolution set to invalid
- Status changed from pending to closed
boost error would suggest libtorrent issue.
Can you supply more details (versions) of btguard
boost
libtorrent
OS