leduycuong86 / openbmap

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

Crash while uploading #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Collect data.
2. Save.
3. Upload.

What is the expected output? What do you see instead?
After some time, Radiobeacon FCs.

What version of the product are you using? On what operating system?
9463714701c9 (iirc) on Cyanogenmod 10.1.3.

Please provide any additional information below.
I tried uploading over a mobile data connection, which is currently throttled 
to 64 kbit/s (exceeded the data limit for this month). I suspect this 
contributes to the issue, as I have had this happen a few times with mobile 
data but, as far as I rememebr, never with WiFi. To simulate the reduced 
transfer rate, try limiting mobile data to 2G (GPRS/EDGE) networks.

Logcat is attached, it seems the crash is caused by an NPE just after upload 
finishes.

Original issue reported on code.google.com by mich...@vonglasow.com on 2 Oct 2013 at 10:22

Attachments:

GoogleCodeExporter commented 9 years ago
Had the same issue another time yesterday when somehow the phone failed to 
connect to my wifi and used the 64kbit mobile data connection. Seems this 
happens only if network bandwidth is constrained.

Original comment by mich...@vonglasow.com on 4 Oct 2013 at 7:32

GoogleCodeExporter commented 9 years ago
You migth want to try the lastest release (r7b2d2e760575).

The grace time for slow uploads has been increased to 1 minute, so this issue 
should hopefully be fixed (if you're interested in details also have a look at 
ra26c8ad4c8f8)

Original comment by wish7code on 6 Oct 2013 at 11:36

GoogleCodeExporter commented 9 years ago
A in-depth analysis showed that it's not the upload time-out, which causes the 
crash:
After a failed upload a error message is displayed using a DialogFragment and 
this ##@! thing is buggy in the Android support libraries (see e.g. 
http://stackoverflow.com/questions/17118383/getsupportfragmentmanager-cause-java
-lang-illegalstateexception-can-not-perfo)

I'm gonna test the suggested solutions from above mentioned discussion and 
further mitigate the problem by increasing the time-out value, i.e. waiting 
longer before aborting..

Original comment by wish7code on 16 Oct 2013 at 5:23