[Bug 763242] Re: telepathy-butterfly crashed with ValueError in Received(): You can't receive the same message twice.

Bug Watch Updater 763242 at bugs.launchpad.net
Thu Nov 24 08:32:11 UTC 2011


Launchpad has imported 3 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=37100.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-05-11T09:21:43+00:00 Pedro Villavicencio wrote:

this report has been filed here:

https://bugs.launchpad.net/ubuntu/+source/telepathy-
butterfly/+bug/763242

"I was in invisible mode in empathy....error message appeared several
times"

Traceback:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/papyon/client.py", line 517, in event
    self._dispatch(method_name, *args[:-1])
  File "/usr/lib/pymodules/python2.7/papyon/event/__init__.py", line 44, in _dispatch
    if event_handler._dispatch_event(name, *args):
  File "/usr/lib/pymodules/python2.7/papyon/event/__init__.py", line 65, in _dispatch_event
    handler(*params)
  File "/usr/lib/python2.7/dist-packages/butterfly/connection.py", line 480, in on_oim_messages_fetched
    channel.offline_message_received(message)
  File "/usr/lib/python2.7/dist-packages/butterfly/channel/im.py", line 194, in offline_message_received
    self._signal_text_received(id, timestamp, handle, type, 0, message.display_name, text)
  File "/usr/lib/python2.7/dist-packages/butterfly/channel/text.py", line 157, in _signal_text_received
    self.Received(id, timestamp, sender, type, flags, text)
  File "/usr/lib/pymodules/python2.7/dbus/decorators.py", line 293, in emit_signal
    func(self, *args, **keywords)
  File "/usr/lib/python2.7/dist-packages/telepathy/server/channel.py", line 296, in Received
    raise ValueError("You can't receive the same message twice.")
ValueError: You can't receive the same message twice.

Reply at: https://bugs.launchpad.net/telepathy-
butterfly/+bug/763242/comments/2

------------------------------------------------------------------------
On 2011-10-10T13:45:07+00:00 Nathan wrote:

Created attachment 52173
Fixing the issue by incrementing the recv id correctly.

I've fixed the issue.

The root cause for me was a crash in ButterflyTextChannel._signal_text_received
(UnicodeDecodeError). The message ended up in the pending messages queue, but the current ID did not increase. The attached patch fixes this.

Fixing the crashes in _signal_text_received would also be a good idea
(the UnicodeDecodeError has already been reported). The easiest way to
fix that would probably be using python 3 instead of python 2...

Reply at: https://bugs.launchpad.net/telepathy-
butterfly/+bug/763242/comments/4

------------------------------------------------------------------------
On 2011-11-10T12:43:57+00:00 Nathan wrote:

See also https://github.com/nathansamson/Telepathy-Butterfly for my
patch in git repo

Reply at: https://bugs.launchpad.net/telepathy-
butterfly/+bug/763242/comments/5

-- 
You received this bug notification because you are a member of
Telepathy, which is subscribed to telepathy-butterfly in Ubuntu.
https://bugs.launchpad.net/bugs/763242

Title:
  telepathy-butterfly crashed with ValueError in Received(): You can't
  receive the same message twice.

To manage notifications about this bug go to:
https://bugs.launchpad.net/telepathy-butterfly/+bug/763242/+subscriptions




More information about the Ubuntu-telepathy mailing list