Opened 11 years ago

Closed 7 years ago

Last modified 6 years ago

#2328 closed bug (WorksForMe)

Exception when stopping daemon after switching from classic to thenclient mode without restart

Reported by: Cas Owned by:
Priority: trivial Milestone: 2.0.0
Component: GTK UI Version: develop
Keywords: Cc:

Description

The daemon appears to stop ok but I don't think the gtkui is correctly setup after switching from classic to thinclient (without restarting) and throws the following exception:

[ERROR   ][deluge.component                   :152 ] [Failure instance: Traceback: <type 'exceptions.AssertionError'>: Tried to stop a LoopingCall that was not running.
deluge/ui/gtkui/gtkui.py:449:__on_disconnect
deluge/component.py:338:stop
deluge/component.py:342:stop
deluge/component.py:158:_component_stop
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:134:maybeDeferred
deluge/core/torrentmanager.py:247:stop
/usr/lib/python2.7/dist-packages/twisted/internet/task.py:171:stop
]
14:23:38.283 [ERROR   ][twisted                            :532 ] Unhandled error in Deferred:
Unhandled error in Deferred:
14:23:38.309 [ERROR   ][twisted                            :532 ] Unhandled Error
Traceback (most recent call last):
  File "deluge/ui/gtkui/gtkui.py", line 449, in __on_disconnect
    component.stop()
  File "deluge/component.py", line 338, in stop
    d = self.stop(self.dependents[name]).addCallback(on_dependents_stopped, name)
  File "deluge/component.py", line 342, in stop
    deferreds.append(self.components[name]._component_stop())
  File "deluge/component.py", line 158, in _component_stop
    d = maybeDeferred(self.stop)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "deluge/core/torrentmanager.py", line 247, in stop
    self.torrents[key].prev_status_cleanup_loop.stop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 171, in stop
    assert self.running, ("Tried to stop a LoopingCall that was "
exceptions.AssertionError: Tried to stop a LoopingCall that was not running.

Unhandled Error
Traceback (most recent call last):
  File "deluge/ui/gtkui/gtkui.py", line 449, in __on_disconnect
    component.stop()
  File "deluge/component.py", line 338, in stop
    d = self.stop(self.dependents[name]).addCallback(on_dependents_stopped, name)
  File "deluge/component.py", line 342, in stop
    deferreds.append(self.components[name]._component_stop())
  File "deluge/component.py", line 158, in _component_stop
    d = maybeDeferred(self.stop)
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
    result = f(*args, **kw)
  File "deluge/core/torrentmanager.py", line 247, in stop
    self.torrents[key].prev_status_cleanup_loop.stop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/task.py", line 171, in stop
    assert self.running, ("Tried to stop a LoopingCall that was "
exceptions.AssertionError: Tried to stop a LoopingCall that was not running.
14:23:38.316 [ERROR   ][deluge.component                   :152 ] [Failure instance: Traceback: <type 'exceptions.AssertionError'>: Tried to stop a LoopingCall that was not running.
deluge/ui/gtkui/gtkui.py:449:__on_disconnect
deluge/component.py:338:stop
deluge/component.py:342:stop
deluge/component.py:158:_component_stop
--- <exception caught here> ---
/usr/lib/python2.7/dist-packages/twisted/internet/defer.py:134:maybeDeferred
deluge/core/torrentmanager.py:247:stop
/usr/lib/python2.7/dist-packages/twisted/internet/task.py:171:stop

Change History (3)

comment:1 Changed 10 years ago by Cas

  • Milestone changed from 1.4.0 to 2.0.0

comment:2 Changed 7 years ago by Cas

  • Resolution set to WorksForMe
  • Status changed from new to closed

No longer relevant.

comment:3 Changed 6 years ago by Cas

  • Milestone changed from 2.0 to 2.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.