Bug 27560

Summary: telepathy-butterfly crashed with InvalidArgument in _get_initial_channels()
Product: Telepathy Reporter: Sebastien Bacher <seb128>
Component: butterflyAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium Keywords: NEEDINFO
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Sebastien Bacher 2010-04-09 06:49:32 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/telepathy-butterfly/+bug/550553

"I was using Ubuntu 10.04 beta 1 (with all updates) when telepathy-butterfly crashed.

telepathy-butterfly 0.5.7-0ubuntu1

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/papyon/switchboard_manager.py", line 75, in <lambda>
    lambda sb, contact: self.__on_user_joined(contact))
  File "/usr/lib/pymodules/python2.6/papyon/switchboard_manager.py", line 136, in __on_user_joined
    self._on_contact_joined(contact)
  File "/usr/lib/pymodules/python2.6/papyon/conversation.py", line 335, in _on_contact_joined
    self._dispatch("on_conversation_user_joined", contact)
  File "/usr/lib/pymodules/python2.6/papyon/event/__init__.py", line 44, in _dispatch
    if event_handler._dispatch_event(name, *args):
  File "/usr/lib/pymodules/python2.6/papyon/event/__init__.py", line 65, in _dispatch_event
    handler(*params)
  File "/usr/lib/python2.6/dist-packages/butterfly/channel/im.py", line 151, in on_conversation_user_joined
    signal=True, conversation=None)
  File "/usr/lib/python2.6/dist-packages/telepathy/server/channelmanager.py", line 120, in channel_for_props
    return self.create_channel_for_props(props, signal, **args)
  File "/usr/lib/python2.6/dist-packages/telepathy/server/channelmanager.py", line 105, in create_channel_for_props
    props, **args)
  File "/usr/lib/python2.6/dist-packages/butterfly/channel_manager.py", line 157, in _get_text_channel
    object_path=path)
  File "/usr/lib/python2.6/dist-packages/butterfly/channel/conference.py", line 46, in __init__
    ic = self._get_initial_channels(props)
  File "/usr/lib/python2.6/dist-packages/butterfly/channel/conference.py", line 104, in _get_initial_channels
    raise telepathy.InvalidArgument("Couldn't find any channels referred to in InitialChannels")
InvalidArgument: org.freedesktop.Telepathy.Error.InvalidArgument: Couldn't find any channels referred to in InitialChannels"
Comment 1 Jonny Lamb 2010-04-09 08:30:16 UTC
What's happening here is the user is having a 1-1 chat with contact A, then contact A is inviting contact B to the chat. The 1-1 channel gets the on_conversation_user_joined callback as it should, then tries to create a new conference MUC channel for the three to chat in.

The 1-1 chat should pass its object path as the contents of InitialChannels so the conference channel will take off where the 1-1 channel started, but the conference channel is complaining that it can't find the Channel object in the connection to steal its switchboard.

This is odd. I just tried to replicate it by having contacts A and B using pidgin and the user using butterfly but couldn't?

Could you ask the launchpad bug submitter to provide logs of it happening again please? Very odd.
Comment 2 GitLab Migration User 2019-12-03 19:45:12 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/15.

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.