telepathy-butterfly crashed with KeyError in remove_channel()

Bug #222511 reported by tutuca on 2008-04-26
258
This bug affects 22 people
Affects Status Importance Assigned to Milestone
telepathy-butterfly
Confirmed
Medium
telepathy-butterfly (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: telepathy-butterfly

I've just updated to hardy. The crash was on restart

ProblemType: Crash
Architecture: i386
Date: Mon Apr 21 15:26:22 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/lib/telepathy/telepathy-butterfly
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: telepathy-butterfly 0.3.1-0ubuntu2
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/lib/telepathy/telepathy-butterfly
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=es_AR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/lib/telepathy/telepathy-butterfly']
SourcePackage: telepathy-butterfly
Title: telepathy-butterfly crashed with KeyError in remove_channel()
Uname: Linux 2.6.24-16-generic i686

tutuca (tutuca) wrote :
Changed in telepathy-butterfly:
importance: Undecided → Medium
Download full text (3.5 KiB)

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, ...

Read more...

*** Bug 19966 has been marked as a duplicate of this bug. ***

visibility: private → public
Neil Munro (neilmunro) wrote :

Thank you for taking the time to report this bug and help make Ubuntu better.

Can you please test this on a more recent Ubuntu release and see if the bug still occurs? If it does we can investigate further, additionally if it does occur in a more recent release can you please try the PPA for Empathy and confirm it exists there too?

Changed in telepathy-butterfly (Ubuntu):
status: New → Incomplete
Michael Moroni (airon90) wrote :

When I have a offline PM, Empathy crashed when logging in but not when logging out and it didn't visualize that PM

Pedro Villavicencio (pedro) wrote :

Could you please try with latest version from the telepathy PPA? https://edge.launchpad.net/~telepathy/+archive/ppa Thanks in advance.

Thank you for what? :D
When I log in it crashed again but I cannot report the bug because it isn't
a genuine package. Now, again, it crashed when I log out (before I updated
Empathy, on my pc it didn't crash when logging out :| ).

2009/6/30 Pedro Villavicencio <email address hidden>

> Could you please try with latest version from the telepathy PPA?
> https://edge.launchpad.net/~telepathy/+archive/ppa<https://edge.launchpad.net/%7Etelepathy/+archive/ppa>Thanks in advance.
>
> --
> telepathy-butterfly crashed with KeyError in remove_channel()
> https://bugs.launchpad.net/bugs/222511
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in “telepathy-butterfly” package in Ubuntu: Incomplete
>
> Bug description:
> Binary package hint: telepathy-butterfly
>
> I've just updated to hardy. The crash was on restart
>
> ProblemType: Crash
> Architecture: i386
> Date: Mon Apr 21 15:26:22 2008
> DistroRelease: Ubuntu 8.04
> ExecutablePath: /usr/lib/telepathy/telepathy-butterfly
> InterpreterPath: /usr/bin/python2.5
> NonfreeKernelModules: nvidia
> Package: telepathy-butterfly 0.3.1-0ubuntu2
> PackageArchitecture: all
> ProcCmdline: /usr/bin/python /usr/lib/telepathy/telepathy-butterfly
> ProcEnviron:
>
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> LANG=es_AR.UTF-8
> SHELL=/bin/bash
> PythonArgs: ['/usr/lib/telepathy/telepathy-butterfly']
> SourcePackage: telepathy-butterfly
> Title: telepathy-butterfly crashed with KeyError in remove_channel()
> Uname: Linux 2.6.24-16-generic i686
>

Michael Moroni (airon90) wrote :

Stupid question: if I take those PPA off my sources.list, will Empathy
downgrade or I have to unistall it in order to reinstall it?

2009/6/30 Michael Moroni <email address hidden>

> Thank you for what? :D
> When I log in it crashed again but I cannot report the bug because it isn't
> a genuine package. Now, again, it crashed when I log out (before I updated
> Empathy, on my pc it didn't crash when logging out :| ).
>
> 2009/6/30 Pedro Villavicencio <email address hidden>
>
> Could you please try with latest version from the telepathy PPA?
>> https://edge.launchpad.net/~telepathy/+archive/ppa<https://edge.launchpad.net/%7Etelepathy/+archive/ppa>Thanks in advance.
>>
>> --
>> telepathy-butterfly crashed with KeyError in remove_channel()
>> https://bugs.launchpad.net/bugs/222511
>> You received this bug notification because you are a direct subscriber
>> of a duplicate bug.
>>
>> Status in “telepathy-butterfly” package in Ubuntu: Incomplete
>>
>> Bug description:
>> Binary package hint: telepathy-butterfly
>>
>> I've just updated to hardy. The crash was on restart
>>
>> ProblemType: Crash
>> Architecture: i386
>> Date: Mon Apr 21 15:26:22 2008
>> DistroRelease: Ubuntu 8.04
>> ExecutablePath: /usr/lib/telepathy/telepathy-butterfly
>> InterpreterPath: /usr/bin/python2.5
>> NonfreeKernelModules: nvidia
>> Package: telepathy-butterfly 0.3.1-0ubuntu2
>> PackageArchitecture: all
>> ProcCmdline: /usr/bin/python /usr/lib/telepathy/telepathy-butterfly
>> ProcEnviron:
>>
>> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
>> LANG=es_AR.UTF-8
>> SHELL=/bin/bash
>> PythonArgs: ['/usr/lib/telepathy/telepathy-butterfly']
>> SourcePackage: telepathy-butterfly
>> Title: telepathy-butterfly crashed with KeyError in remove_channel()
>> Uname: Linux 2.6.24-16-generic i686
>>
>
>

2009/6/30 Michael Moroni <email address hidden>:
> Stupid question: if I take those PPA off my sources.list, will Empathy
> downgrade or I have to unistall it in order to reinstall it?

You can downgrade the package from Synaptic with the "Force version..." option, or uninstall the package and install it again.

--
Siegfried-Angel Gevatter Pujals (RainCT)
Ubuntu Developer. Debian Contributor.

Changed in telepathy-butterfly (Ubuntu):
status: Incomplete → Triaged
Changed in telepathy-butterfly:
status: Unknown → Confirmed

The bug linked upstream has a different traceback and so is a different error, could one of the person affected by this bug, if it still exist, provide a complete Butterfly log for it ? thanks in advance.

See http://live.gnome.org/Empathy/Debugging on how to provide a log.

Changed in telepathy-butterfly (Ubuntu):
status: Triaged → Incomplete
xermán (xerman.soto) wrote :

Binary package hint: telepathy-butterfly

1- OS: Ubuntu 904x64 uptodate 2009.10.16
2- Pack: Empathy 2.26.1-1ubuntu1 / Telepathy-Butterfly 0.3.3-1
3- Close application
4- Aplication closes but produces error message. On restart can not connect to MSN network saying Network Error.

Detailed information regarding this 4th point:

1- Application closes but produces Telepathy-Butterfly error.
2- On restart can not connect to MSN network stating Network Error in Empathy MSN account
3- Closing application closes normally
4- Process list shows "telepathy-butterfly" process still up.
5- Open Empathy, check process list, "telepathy-butterfly" process does not modify.
6- Close Empathy, check process list, "telepathy-butterfly" process does not modify.
7- Kill "telepathy-butterfly" process, makes process dissappear from process list.
8- Launch Empathy, now can connect to MSN network.

Best regards and thanks

Xermán Soto

Sebastien Bacher (seb128) wrote :

is that still an issue in karmic?

Lars (l-gronning) wrote :

I have this crash on Karmic as well

Brian Curtis (bcurtiswx) wrote :

Lars: could you please provide a backtrace by following the instructions at https://wiki.ubuntu.com/Backtrace . Also please type 'apport-collect 222511' in your terminal.

I can reproduce this bug on my N900, we should fix.

Does this happen randomly or is there a way to reproduce it?

IIRC It used to be easily to reproduce but I can't reproduce it any more. So feel free to close the bug.

I think I saw it recently here when I was playing with butterfly, so I'm going to leave it open for now.

Sebastien Bacher (seb128) wrote :

is somebody still getting the issue in lucid?

This could be a dup of bug #27544, or at least related.

Changed in telepathy-butterfly (Ubuntu):
status: Incomplete → Triaged
Changed in telepathy-butterfly:
importance: Unknown → Medium
Christoph Langner (chrissss) wrote :

Just got this bug on Maverick.

Changed in telepathy-butterfly:
importance: Medium → Unknown
Changed in telepathy-butterfly:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.