Ticket #2123 (closed defect: invalid)

Opened 8 years ago

Last modified 8 years ago

SMS doesn't work in framworkd

Reported by: think-free Owned by: openmoko-kernel
Priority: normal Milestone:
Component: unknown Version:
Severity: blocker Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: no PatchReviewResult:
Reproducible:

Description

I'm running debian ...

I can't send or receive sms with frameworkd ( phone calls are ok ) i'm not getting a dbus response ( tested with : http://lindi.iki.fi/lindi/openmoko/dump-sms )
Will running frameworkd from a terminal i got :


ogsmd WARNING textToUnicode called with unicode string, ignoring.
ogsmd WARNING textToUnicode called with unicode string, ignoring.
ogsmd WARNING textToUnicode called with unicode string, ignoring.
ogsmd ERROR unhandled exception in response callback: string index out of range
Traceback (most recent call last):

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 379, in handleResponseToRequest

ok_cb( reqstring.strip(), response )

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/decor.py", line 45, in logIt

result = fn( *args, kwargs )

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/modems/abstract/mediator.py", line 685, in responseFromChannel

sms = ogsmd.gsm.sms.decodeSMS( line, dir)

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 97, in decodeSMS

parse_userdata( sms, ud_len, bytes[offset:] )

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 127, in parse_userdata

sms.ud = unpack_sevenbit(bytes[offset:], padding_size)

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 169, in unpack_sevenbit

return "".join( gsmtotext(chars) )

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 141, in gsmtotext

text += GSMALPHABET[byte]

IndexError?: string index out of range
odeviced.idlenotifier INFO framework.subsystems.odeviced.idlenotifier state change to SUSPEND


So i've put print(repr(byte)) to line 141 of /var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/convert.py

and it gave me :


ogsmd WARNING textToUnicode called with unicode string, ignoring.
ogsmd WARNING textToUnicode called with unicode string, ignoring.
ogsmd WARNING textToUnicode called with unicode string, ignoring.
ogsmd ERROR unhandled exception in response callback: string index out of range
Traceback (most recent call last):

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/channel.py", line 379, in handleResponseToRequest

ok_cb( reqstring.strip(), response )

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/decor.py", line 45, in logIt

result = fn( *args, kwargs )

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/modems/abstract/mediator.py", line 685, in responseFromChannel

sms = ogsmd.gsm.sms.decodeSMS( line, dir)

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 97, in decodeSMS

parse_userdata( sms, ud_len, bytes[offset:] )

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/sms.py", line 127, in parse_userdata

sms.ud = unpack_sevenbit(bytes[offset:], padding_size)

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 169, in unpack_sevenbit

asbinary = asbinary[:-7]

File "/var/lib/python-support/python2.5/framework/subsystems/ogsmd/gsm/convert.py", line 141, in gsmtotext

print(repr(byte))

IndexError?: string index out of range


Change History

comment:1 Changed 8 years ago by marek

  • Status changed from new to closed
  • Component changed from System Software to unknown
  • Resolution set to invalid
  • Priority changed from highest to normal

Please read
https://docs.openmoko.org/trac/wiki/NewTicket
and
http://wiki.openmoko.org/wiki/Bug_Filing_Policy
carefully before opening a new ticket next time !

Don't fiddle with the component, priority, etc unless you are SURE what you do.

This sounds like a problem with FSO and/or debian. Please consult the respective bug trackers.

comment:2 Changed 8 years ago by alphaone

Please file your bug at http://trac.freesmartphone.org, assign to daniel and use frameworkd/ogsmd as component. Please also list the git hash of frameworkd you are using.

Note: See TracTickets for help on using tickets.