Ankit77 / gtalksms

Automatically exported from code.google.com/p/gtalksms
0 stars 0 forks source link

OOB Exception in SmsReciever (was: GTalkSMS Crashes when receiving an sms) #214

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. send sms using sms:<contact>:<message>
2. receive an sms

What is the expected output?
gtalksms shows the unread message

What do you see instead?
gtalksms crashes and burns

Additional informations:
Phone model: Nexus One running CM7

intermittent, happened to me three times within 4 hours

E/AndroidRuntime( 2931): FATAL EXCEPTION: main
E/AndroidRuntime( 2931): java.lang.RuntimeException: Unable to start receiver 
com.googlecode.gtalksms.receivers.SmsReceiver: 
java.lang.StringIndexOutOfBoundsException
E/AndroidRuntime( 2931): at 
android.app.ActivityThread.handleReceiver(ActivityThread.java:1926)
E/AndroidRuntime( 2931): at 
android.app.ActivityThread.access$2400(ActivityThread.java:123)
E/AndroidRuntime( 2931): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:989)
E/AndroidRuntime( 2931): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2931): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2931): at 
android.app.ActivityThread.main(ActivityThread.java:3835)
E/AndroidRuntime( 2931): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2931): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2931): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
E/AndroidRuntime( 2931): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
E/AndroidRuntime( 2931): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2931): Caused by: java.lang.StringIndexOutOfBoundsException
E/AndroidRuntime( 2931): at java.lang.String.substring(String.java:1651)
E/AndroidRuntime( 2931): at 
com.googlecode.gtalksms.receivers.SmsReceiver.onReceive(SmsReceiver.java:35)
E/AndroidRuntime( 2931): at 
android.app.ActivityThread.handleReceiver(ActivityThread.java:1915)
E/AndroidRuntime( 2931): ... 10 more
I/Process ( 2931): Sending signal. PID: 2931 SIG: 9
I/ActivityManager( 161): Process com.googlecode.gtalksms (pid 2931) has died.
W/ActivityManager( 161): Scheduling restart of crashed service 
com.googlecode.gtalksms/.MainService in 5000ms
I/WindowManager( 161): WIN DEATH: Window{40a301b8 
com.googlecode.gtalksms/com.googlecode.gtalksms.panels.MainScreen paused=false}

Original issue reported on code.google.com by samo.ubu...@gmail.com on 24 Aug 2011 at 11:13

GoogleCodeExporter commented 9 years ago
will be fixed in the next version

Original comment by fschm...@gmail.com on 24 Aug 2011 at 5:58

GoogleCodeExporter commented 9 years ago

Original comment by fschm...@gmail.com on 25 Aug 2011 at 8:41

GoogleCodeExporter commented 9 years ago
Fixed in version 3.2

Original comment by Florent....@gmail.com on 28 Aug 2011 at 3:47