Deluge freezes at startup needing to force quit

General support for problems installing or using Deluge
Post Reply
User avatar
Garret
New User
New User
Posts: 8
Joined: Wed Feb 20, 2008 1:26 pm
Location: Palermo, Italy
Contact:

Deluge freezes at startup needing to force quit

Post by Garret »

I use Archlinux i686 and I have installed the latest deluge version 1.1.9.

When I start deluge it freezes after a very short time and I need to force quit so without being able to use it.

This is the log:

Code: Select all

[siso@C1P8 ~]$ deluge --loglevel=debug
[INFO    ] 13:39:30 main:117 Deluge ui 1.1.9
[DEBUG   ] 13:39:30 main:118 options: {'loglevel': 'debug', 'default_ui': None, 'args': None, 'quiet': False, 'ui': None, 'logfile': None, 'config': None}
[DEBUG   ] 13:39:30 main:119 args: []
[DEBUG   ] 13:39:30 main:120 ui_args: []
[INFO    ] 13:39:30 main:123 Starting ui..
[DEBUG   ] 13:39:30 ui:47 UI init..
[DEBUG   ] 13:39:30 configmanager:91 Getting config 'ui.conf'
[DEBUG   ] 13:39:30 config:253 Config /home/siso/.config/deluge/ui.conf loaded: {'default_ui': 'gtk'}
[INFO    ] 13:39:30 ui:64 Starting GtkUI..
[DEBUG   ] 13:39:30 client:113 CoreProxy init..
[DEBUG   ] 13:39:30 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:30 config:253 Config /home/siso/.config/deluge/gtkui.conf loaded: {'close_to_tray': True, 'ntf_sound_path': '/home/siso', 'window_width': 873, 'default_load_path': None, 'window_y_pos': 93, 'ntf_email': False, 'tray_upload_speed_list': [5.0, 10.0, 30.0, 80.0, 19.0], 'show_statusbar': True, 'ntf_popup': False, 'ntf_pass': '', 'show_sidebar': True, 'autoconnect_host_uri': None, 'window_maximized': False, 'enable_system_tray': True, 'tray_download_speed_list': [5.0, 10.0, 30.0, 80.0, 300.0], 'show_connection_manager_on_start': True, 'lock_tray': False, 'ntf_sound': False, 'tray_password': '', 'focus_add_dialog': True, 'ntf_server': '', 'start_in_tray': False, 'ntf_tray_blink': True, 'check_new_releases': True, 'autoadd_queued': False, 'classic_mode': True, 'window_pane_position': 111, 'enabled_plugins': ['Blocklist'], 'show_rate_in_title': False, 'autoadd_enable': False, 'ntf_username': '', 'interactive_add': True, 'sidebar_show_zero': False, 'window_x_pos': 211, 'window_height': 504, 'ntf_security': None, 'connection_limit_list': [50, 100, 200, 300, 500], 'sidebar_position': 170, 'show_new_releases': True, 'autoconnect': False, 'choose_directory_dialog_path': '/home/siso', 'sidebar_show_trackers': True, 'autostart_localhost': False, 'show_toolbar': True, 'autoadd_location': '', 'config_location': '/home/siso/.config/deluge', 'ntf_email_add': '', 'signal_port': 54623}
1.1.9
[DEBUG   ] 13:39:30 gtkui:182 retcode: 0
[DEBUG   ] 13:39:30 component:106 Registered QueuedTorrents with ComponentRegistry..
[DEBUG   ] 13:39:30 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:30 component:106 Registered IPCInterface with ComponentRegistry..
[DEBUG   ] 13:39:30 component:106 Registered DbusInterface with ComponentRegistry..
[DEBUG   ] 13:39:30 ipcinterface:87 Processing args from other process: []
[DEBUG   ] 13:39:30 ipcinterface:90 Not connected to host.. Adding to queue.
[INFO    ] 13:39:30 dbusinterface:88 Registering with DBUS..
[DEBUG   ] 13:39:30 component:106 Registered Signals with ComponentRegistry..
[DEBUG   ] 13:39:30 signalreceiver:56 SignalReceiver init..
[DEBUG   ] 13:39:30 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:30 config:135 Setting 'signal_port' to 48305 of <type 'int'>
[DEBUG   ] 13:39:30 config:278 Saving new config file /home/siso/.config/deluge/gtkui.conf.new
[DEBUG   ] 13:39:30 config:290 Backing up old config file to /home/siso/.config/deluge/gtkui.conf~
[DEBUG   ] 13:39:31 config:298 Moving new config file /home/siso/.config/deluge/gtkui.conf.new to /home/siso/.config/deluge/gtkui.conf..
[DEBUG   ] 13:39:31 component:106 Registered MainWindow with ComponentRegistry..
[DEBUG   ] 13:39:31 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:32 config:212 Registering function for show_rate_in_title key..
[DEBUG   ] 13:39:32 mainwindow:92 Showing window
[DEBUG   ] 13:39:32 menubar:54 MenuBar init..
[DEBUG   ] 13:39:32 component:106 Registered MenuBar with ComponentRegistry..
[DEBUG   ] 13:39:32 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:32 component:106 Registered ToolBar with ComponentRegistry..
[DEBUG   ] 13:39:32 toolbar:52 ToolBar Init..
[DEBUG   ] 13:39:32 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:32 component:106 Registered TorrentView with ComponentRegistry..
[DEBUG   ] 13:39:32 listview:137 ListView initialized..
[DEBUG   ] 13:39:32 listview:236 Loading ListView state file: torrentview.state
[DEBUG   ] 13:39:32 torrentview:130 TorrentView Init..
[DEBUG   ] 13:39:32 component:106 Registered TorrentDetails with ComponentRegistry..
[DEBUG   ] 13:39:32 torrentdetails:411 Loading TorrentDetails state file: tabs.state
[DEBUG   ] 13:39:32 torrentdetails:70 parent: None
[DEBUG   ] 13:39:32 torrentdetails:70 parent: None
[DEBUG   ] 13:39:32 files_tab:251 Loading FilesTab state file: files_tab.state
[DEBUG   ] 13:39:32 torrentdetails:70 parent: None
[DEBUG   ] 13:39:32 peers_tab:205 Loading PeersTab state file: peers_tab.state
[DEBUG   ] 13:39:32 torrentdetails:70 parent: None
[DEBUG   ] 13:39:32 torrentdetails:70 parent: None
[DEBUG   ] 13:39:32 component:106 Registered SideBar with ComponentRegistry..
[DEBUG   ] 13:39:32 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:32 component:106 Registered FilterTreeView with ComponentRegistry..
[DEBUG   ] 13:39:32 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:32 sidebar:86 add tab:filters
[DEBUG   ] 13:39:32 filtertreeview:270 nothing selected
[DEBUG   ] 13:39:32 component:106 Registered Preferences with ComponentRegistry..
[DEBUG   ] 13:39:33 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:33 component:106 Registered SystemTray with ComponentRegistry..
[DEBUG   ] 13:39:33 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:33 config:212 Registering function for enable_system_tray key..
[DEBUG   ] 13:39:33 systemtray:81 Enabling the system tray icon..
[DEBUG   ] 13:39:33 component:106 Registered StatusBar with ComponentRegistry..
[DEBUG   ] 13:39:33 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:33 component:106 Registered AddTorrentDialog with ComponentRegistry..
[DEBUG   ] 13:39:33 coreconfig:44 CoreConfig init..
[DEBUG   ] 13:39:33 component:106 Registered CoreConfig with ComponentRegistry..
[DEBUG   ] 13:39:33 component:106 Registered PluginManager with ComponentRegistry..
[DEBUG   ] 13:39:33 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:33 pluginmanagerbase:64 Plugin manager init..
[DEBUG   ] 13:39:33 configmanager:91 Getting config 'gtkui.conf'
[DEBUG   ] 13:39:33 pluginmanagerbase:115 Found plugin: Blocklist 1.0
[DEBUG   ] 13:39:33 pluginmanagerbase:115 Found plugin: Label 0.1
[DEBUG   ] 13:39:33 component:106 Registered ConnectionManager with ComponentRegistry..
[DEBUG   ] 13:39:33 configmanager:91 Getting config 'hostlist.conf.1.1'
[DEBUG   ] 13:39:33 config:253 Config /home/siso/.config/deluge/hostlist.conf.1.1 loaded: {'hosts': ['http://127.0.0.1:58846']}
[DEBUG   ] 13:39:33 configmanager:91 Getting config 'gtkui.conf'
[INFO    ] 13:39:33 connectionmanager:490 Starting localhost:58846 daemon..
Exception in thread Thread-1 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner
  File "/usr/lib/python2.6/threading.py", line 477, in run
  File "/usr/lib/python2.6/site-packages/deluge/core/core.py", line 327, in get_new_release
  File "/usr/lib/python2.6/urllib2.py", line 123, in urlopen
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
Unhandled exception in thread started by
Error in sys.excepthook:

Original exception was:
Beini

Re: Deluge freezes at startup needing to force quit

Post by Beini »

I'm also using Arch Linux and I get that same output sometimes too. For me It's related to bug: http://dev.deluge-torrent.org/ticket/1025

So you could try adding that "import zlib" to /usr/bin/deluged.
User avatar
Garret
New User
New User
Posts: 8
Joined: Wed Feb 20, 2008 1:26 pm
Location: Palermo, Italy
Contact:

Re: Deluge freezes at startup needing to force quit

Post by Garret »

Beini wrote:I'm also using Arch Linux and I get that same output sometimes too. For me It's related to bug: http://dev.deluge-torrent.org/ticket/1025

So you could try adding that "import zlib" to /usr/bin/deluged.
So with this command can I fix the problem:

Code: Select all

sudo sed -i '3s/.*/import zlib\n&/' /usr/bin/deluged
or the "import zlib" must be put ONLY at the beginning of /usr/bin/deluged?

Then seeing the file /usr/bin/deluged, have I to remove this string?

Code: Select all

__requires__ = 'deluge==1.1.9'
Beini

Re: Deluge freezes at startup needing to force quit

Post by Beini »

Garret wrote: So with this command can I fix the problem:

Code: Select all

sudo sed -i '3s/.*/import zlib\n&/' /usr/bin/deluged
or the "import zlib" must be put ONLY at the beginning of /usr/bin/deluged?

Then seeing the file /usr/bin/deluged, have I to remove this string?

Code: Select all

__requires__ = 'deluge==1.1.9'
This is my /usr/bin/deluged

Code: Select all

#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'deluge==1.1.9','console_scripts','deluged'
__requires__ = 'deluge==1.1.9'
import sys
import zlib
from pkg_resources import load_entry_point

sys.exit(
   load_entry_point('deluge==1.1.9', 'console_scripts', 'deluged')()
)
Only thing that is changed is that the import zlib line is added after import sys.
Post Reply