Bug 19857

Summary: Crashed when disconnecting
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: butterflyAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium CC: freedesktop-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Guillaume Desmottes 2009-01-31 03:44:16 UTC
Butterfly crashed when I disconnected all my account from Empathy. Then it fails to reconnect:

INFO:protocol:switchboard_manager:requesting new switchboard
INFO:Butterfly.Connection:Disconnecting
DEBUG:Transport:>>> OUT 25
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/pymsn/client.py", line 301, in disconnected
    self._state = ClientState.CLOSED
  File "/usr/lib/python2.5/site-packages/pymsn/client.py", line 225, in fset
    self._dispatch("on_client_state_changed", state)
  File "/usr/lib/python2.5/site-packages/pymsn/event/__init__.py", line 44, in _dispatch
    if event_handler._dispatch_event(name, *args):
  File "/usr/lib/python2.5/site-packages/pymsn/event/__init__.py", line 65, in _dispatch_event
    handler(*params)
  File "/home/cassidy/dev/telepathy-butterfly/butterfly/connection.py", line 227, in on_client_state_changed
    self._channel_manager.close()
  File "/home/cassidy/dev/telepathy-butterfly/butterfly/channel_manager.py", line 45, in close
    channel.Close()
  File "/home/cassidy/dev/telepathy-butterfly/butterfly/channel/text.py", line 73, in Close
    telepathy.server.ChannelTypeText.Close(self)
  File "/usr/lib/python2.5/site-packages/telepathy/server/channel.py", line 86, in Close
    self._conn.remove_channel(self)
  File "/usr/lib/python2.5/site-packages/telepathy/server/conn.py", line 188, in remove_channel
    self._channels.remove(channel)
KeyError: <butterfly.channel.text.ButterflyTextChannel at /org/freedesktop/Telepathy/Connection/butterfly/msn/bhshot_5fcassidy_40hotmail_2ecom/channel10 at 0x87e618c>
DEBUG:Transport:>>> OUT 3
DEBUG:Transport:>>> OUT 11
DEBUG:Transport:>>> OUT 33
DEBUG:Transport:>>> XFR 26 SB
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/pymsn/util/decorator.py", line 103, in process_queue
    func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/pymsn/msnp/notification.py", line 182, in request_switchboard
    self._send_command('XFR', ('SB',))
  File "/usr/lib/python2.5/site-packages/pymsn/msnp/base.py", line 80, in _send_command
    callback, *cb_args)
  File "/usr/lib/python2.5/site-packages/pymsn/transport.py", line 208, in send_command_ex
    self.send_command(cmd, increment, callback, *cb_args)
  File "/usr/lib/python2.5/site-packages/pymsn/transport.py", line 273, in send_command
    self._transport.send(str(command), self.__on_command_sent, *our_cb_args)
  File "/usr/lib/python2.5/site-packages/pymsn/gnet/io/iochannel.py", line 157, in send
    assert(self._status == IoStatus.OPEN), self._status
AssertionError: 1
INFO:protocol:switchboard:Disconnected
INFO:protocol:switchboard:Disconnected
INFO:protocol:switchboard:Disconnected
INFO:Butterfly.Connection:Disconnecting
INFO:Butterfly.Connection:Disconnecting
INFO:Butterfly.Connection:Disconnecting
ERROR:Butterfly.Connection:Failed to create Connection
Traceback (most recent call last):
  File "/home/cassidy/dev/telepathy-butterfly/butterfly/connection.py", line 91, in __init__
    telepathy.server.Connection.__init__(self, 'msn', account, 'butterfly')
  File "/usr/lib/python2.5/site-packages/telepathy/server/conn.py", line 78, in __init__
    _Connection.__init__(self, bus_name, object_path)
  File "/var/lib/python-support/python2.5/dbus/service.py", line 477, in __init__
    self.add_to_connection(conn, object_path)
  File "/var/lib/python-support/python2.5/dbus/service.py", line 568, in add_to_connection
    self._fallback)
KeyError: "Can't register the object-path handler for '/org/freedesktop/Telepathy/Connection/butterfly/msn/bhshot_5fcassidy_40hotmail_2ecom': there is already a handler"
Comment 1 Guillaume Desmottes 2009-02-01 03:08:53 UTC
This bug has also be reported on launchpad: https://bugs.edge.launchpad.net/ubuntu/+source/telepathy-butterfly/+bug/323642
Comment 2 Johan Brannlund 2009-03-08 22:00:00 UTC
*** Bug 19966 has been marked as a duplicate of this bug. ***
Comment 3 Olivier CrĂȘte 2009-12-29 08:53:10 UTC
I can reproduce this bug on my N900, we should fix.
Comment 4 Jonny Lamb 2010-03-12 17:46:09 UTC
Does this happen randomly or is there a way to reproduce it?
Comment 5 Guillaume Desmottes 2010-03-15 01:03:32 UTC
IIRC It used to be easily to reproduce but I can't reproduce it any more. So feel free to close the bug.
Comment 6 Jonny Lamb 2010-03-15 01:16:06 UTC
I think I saw it recently here when I was playing with butterfly, so I'm going to leave it open for now.
Comment 7 Jonny Lamb 2010-04-09 10:32:39 UTC
This could be a dup of bug #27544, or at least related.
Comment 8 GitLab Migration User 2019-12-03 19:44:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/telepathy/telepathy-butterfly/issues/4.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.