Bug 33959

Summary: Butterfly fails often with text.py:175:_signal_text_received:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1: ordinal not in range(128)
Product: Telepathy Reporter: kvikende
Component: butterflyAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED MOVED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: major    
Priority: medium CC: desintegr
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=638004
Whiteboard:
i915 platform: i915 features:

Description kvikende 2011-02-06 01:57:38 UTC
This might be Fedora specific (but I don't think so as I have memories of this happening on Debian as well).

Sometimes when receiving a message in Empathy, the crash detecting utility on Fedora, ABRT, detects a crash in Telepathy because of some way the strings are handled. The specific crash is

text.py:175:_signal_text_received:UnicodeDecodeError: 'ascii' codec
can't decode byte 0xc3 in position 1: ordinal not in range(128)

and as I recall the issue is with e-mails and not, as you would think, messages with special characters.

The latest report is that this happens on the package telepathy-butterfly-0.5.14-1.fc14. I couldn't decide which version this affected as I didn't find 0.5.14 in the list here in Bugzilla.

The bug report in Fedora is found at https://bugzilla.redhat.com/show_bug.cgi?id=638004 , there you will also find a backtrace if you need one.
Comment 1 Brian Pepple 2011-05-12 10:02:56 UTC
Some more info to help debug this:
abrt version: 1.1.17
architecture: i686
cmdline: /usr/bin/python /usr/libexec/telepathy-butterfly
component: telepathy-butterfly
executable: /usr/libexec/telepathy-butterfly
kernel: 2.6.38-1.fc15.i686.PAE
package: telepathy-butterfly-0.5.15-3.fc15
reason: text.py:169:_signal_text_received:UnicodeDecodeError: 'ascii' codec
can't decode byte 0xc3 in position 3: ordinal not in range(128)
release: Fedora release 15 (Lovelock)
time: 1301057959
uid: 500

backtrace
-----
text.py:169:_signal_text_received:UnicodeDecodeError: 'ascii' codec can't
decode byte 0xc3 in position 3: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/papyon/client.py", line 517, in event
    self._dispatch(method_name, *args[:-1])
  File "/usr/lib/python2.7/site-packages/papyon/event/__init__.py", line 44, in
_dispatch
    if event_handler._dispatch_event(name, *args):
  File "/usr/lib/python2.7/site-packages/papyon/event/__init__.py", line 65, in
_dispatch_event
    handler(*params)
  File "/usr/lib/python2.7/site-packages/butterfly/connection.py", line 480, in
on_oim_messages_fetched
    channel.offline_message_received(message)
  File "/usr/lib/python2.7/site-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/site-packages/butterfly/channel/text.py", line 169,
in _signal_text_received
    dbus.String('content'): dbus.String(text)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 3: ordinal
not in range(128)

Local variables in innermost frame:
sender: <butterfly.handle.ButterflyContactHandle object at 0x8a760cc>
text: 'jad\xc3\xa5 allt \xc3\xa4r bra, min mobil \xc3\xa4r trasig dock
s\xc3\xa5 kan inte svara'
self: <butterfly.channel.im.ButterflyImChannel at
/org/freedesktop/Telepathy/Connection/butterfly/msn/christian_2ejoensson_40gmail_2ecom/TextChannel1
at 0x8a8854c>
sender_nick: u'callesbrevlada@hotmail.com'
headers: dbus.Dictionary({dbus.String(u'pending-message-id'): dbus.UInt32(0L),
dbus.String(u'message-received'): dbus.UInt64(1300985290L),
dbus.String(u'sender-nickname'): dbus.String(u'callesbrevlada@hotmail.com'),
dbus.String(u'message-type'): dbus.UInt32(0L), dbus.String(u'message-sender'):
dbus.UInt32(9L)}, signature=dbus.Signature('sv'))
flags: 0
timestamp: 1300985290.0
type: 0
id: 0
Comment 2 Damien Gombault 2011-11-10 09:04:16 UTC
I get this same crash when I receive offline messages when I am connecting to my MSN account.
Comment 3 GitLab Migration User 2019-12-03 19:47:03 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/47.

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.