izzatothman / sipdroid

Automatically exported from code.google.com/p/sipdroid
GNU General Public License v3.0
0 stars 0 forks source link

Sipdroid isn't responding popup on Android 4 Wi-Fi #1131

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
symptom:
Sipdroid isn't responding pop-up
Stop, Report, Wait buttons

diagnose:
Sipdroid on Wi-Fi leads to ANR, application not responding

What steps will reproduce the problem?
1.Launch Sipdroid on Wi-FI with STUN
2.Wait 70 or more hours (LTE is about 69 hours, GSM is longer like 90)
3.On resume, Sipdroid gives a pop-up: "Unfortunately, Sipdroid has stopped."
This is Android's ANR, application not responding, indicating that Sipdroids 
main thread is slow.
3a. If you hit OK to close Sipdroid, it will not respond to phone calls unless 
restarted
3b. If you hit Wait, you will repeatedly get more ANRs, but eventually Wi-Fi 
will stop working and finally LTE will fail, too.

On the LTE phone, that switches to LTE after 15 minute of Wi-Fi standby, the 
dialog always appears after about 69 hours.

On the GSM phone using WI-FI only, always, it takes longer but does eventually 
appear.

This did not happen before Android 4.x, and of course Wi-Fi was not working at 
all for Android 4 in the beginning due to encoder incompatibility.

What is the expected output? It is expected to not get ANR pop-ups.

Environment:
Any Android 4.x using Wi-Fi
in this case:
- Samsung Galaxy Nexus GSM on Android 4.3
- Verizon Galaxy Nexus on Android 4.2.2

Sipdroid 3.1 beta from Google Play

Single PBXes account with STUN

Original issue reported on code.google.com by har...@therudells.com on 11 Sep 2013 at 1:27

GoogleCodeExporter commented 8 years ago
The popup is shown on resume from standby.

Impact:
a. Sipdroid incoming calls do not ring, unless you tap OK to close and relaunch 
Sipdroid.
b. Eventually Wi-Fi on the phone stops working, reboot only way back to good.
c. Eventually LTE stops working, reboot only way back to good.

Get-Around:
Reboot your phone when the popup is shown the first time.

Original comment by har...@therudells.com on 11 Sep 2013 at 1:47

GoogleCodeExporter commented 8 years ago
Force stop does not help:
Samsung Galaxy Nexus LTE 〉Setting 〉Apps 〉Sipdroid〉Force Stop
Launch sipdroid
- black screen for almost a minute
- ANR popup! surprise!

Original comment by har...@therudells.com on 11 Sep 2013 at 2:16

GoogleCodeExporter commented 8 years ago
I think it has to do with re-establishing of a Wi-Fi connection.

If I leave GSM phone next to the Wi-FI access point it seems to be able to run 
forever.
If I carry it around town, it shows the popup.
And the LTE phone goes off Wi-Fi after 15 minutes standby. So it will always 
re-establish.

It seems to be an OS resource, because force stop does not fix the problem. 
Only a phone reboot does. Additionally it affects Wi-Fi and LTE for other 
applications.

Perhaps Sipdroid is leaking some sort of Wi-Fi context every time it reconnects 
to Wi-Fi?

Original comment by har...@therudells.com on 12 Sep 2013 at 8:08

GoogleCodeExporter commented 8 years ago
The popup also shows when no Wi-Fi network is available for an LTE phone. Had 
it twice in a few hours.

Original comment by har...@therudells.com on 12 Sep 2013 at 9:32