emran396 / imsdroid

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

Exception thrown when ending call (Moto Milestone) #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Make a voice call between a Moto Milestone and another device 
2. End the call on the Milestone side

What is the expected output? What do you see instead?

Force close on the Milestone

What version of the product are you using? On what operating system?

imsdroid-1.0.279.apk, Android 2.1

Please provide any additional information below.

IllegalStateException is thrown by Timer.schedule on line 639 of 
"ScreenAV.java". For some reason updateState is being called again with state 
INCALL *after* the call has already been terminated and timerTaskInCall 
cancelled.

Seems to be a timing issue. Compare the sequence of events between the 
Milestone and a slower device after ending a voice call:

Milestone: End call -> updateState(CallState.CALL_TERMINATED) -> 
updateState(CallState.INCALL) -> exception thrown

Other (slower) device: End call -> updateState(CallState.CALL_TERMINATED) -> 
call is terminated normally

Also when debugging the Milestone step by step, the issue does not occur if one 
steps slowly.

Changing the suicide timer from 1500 to 500 (line 662) seems to mitigate the 
problem (have not had an other crash since making this change), but I am not 
familiar enough with the code to understand potential side effects or suggest a 
better fix.

Before making this change the issue happened 100% of the time during normal use 
on the Milestone, never on the other device. I am using Open IMS core on a 
local PC over WiFi.

Original issue reported on code.google.com by jranua...@gmail.com on 11 Sep 2010 at 7:27

GoogleCodeExporter commented 9 years ago
Hi,
Could you please send the log file using "Log collector" application from the 
market?
My email address is diopmamadou(at)doubango(dot)org.
Thanks

Original comment by boss...@yahoo.fr on 12 Sep 2010 at 4:37

GoogleCodeExporter commented 9 years ago
Log sent, please let me know if you have not received it.

Original comment by jranua...@gmail.com on 13 Sep 2010 at 2:09

GoogleCodeExporter commented 9 years ago
Fixed in 1.1.327

Original comment by boss...@yahoo.fr on 22 Nov 2010 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 22 Nov 2010 at 6:19