GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-07-15T21:07:45.000+0000 |
Affected Version/s | Release 3.2.0, Release 3.2.2, Release 3.2.3 |
Fix Version/s | n/a |
Components | Android |
Labels | android, crash, exit, network |
Reporter | Vladimir S |
Assignee | Ping Wang |
Created | 2014-01-13T04:48:13.000+0000 |
Updated | 2017-03-16T21:43:50.000+0000 |
If the app is closed while an HTTP request is pending, as soon as the response is received, Android displays an error message that the app has crashed (even if it is apparently stopped). Attached is the sample project that does it. Just run it and exit the program, before the alert pops up. Happens both on real device and on the simulator.
Attached is logcat dump and sample project
I tried this test case on Samsung Galaxy Nexus device and it displayed the correct INFO message so I cannot reproduce this issue. I followed exact same steps so not sure what I am missing. [INFO] : abort request: [object HTTPClient]
Hi Ritu, This is just an info message that the abort method is called on a real object, it was just for testing. What happens on the S4, is that after closing the app, about 6-7 seconds later, in logcat - the dump that i posted is thrown, and on the device a message pops up - that the application has crashed I assume you did not get this error message ? right ?
Correct. I did not get the error message.
https://www.youtube.com/watch?v=MBi1FoyX9o4&feature=youtu.be here i have uploaded a video from genymotion, using image S4, API 18
Thanks for posting the video. I will try to get hold of a S4 device and test it out.
But did you try it out on Genymotion? there you can just download the S4 image and run it against it - this is why i posted the video - it is not a screencast from my own device - it is rather the Genymotion running the S4 image with the app installed there
Thanks. I was trying to narrow it down to if it is a S4 device issue or a S4 image on Genymotion issue. You have already covered the second part so I wanted to do the first one.
Both - this is why i listed it in the Environment section of the jira issue i have the listed S4 device - 9505, where this fails, and it turned out it fails also on the genymotion - this is why I entered both But indeed - on Samsung Galaxy Tab 3110 and android 4.2.2, and HTC Desire S - it does not fail. i tried now
I tried to reproduce the issue on Samsumg Galaxy S4 device but every time it is displaying the correct INFO message and not crashing. I followed the same steps as earlier so not sure what I am missing. I haven't got a chance to try on Genymotion yet but will update once I tried on it.
actually you should not receive any message, because - once the app starts, it opens an HTTP request, which takes few seconds. You have to exit the app (using back button) before the request comes back. The Info message is displayed once the request comes back. So it is already too late. The prblem happens when the request comes back, and the application has already exited. Then i get the mentioned exception You can see this in the video that i have created as well
I actually used the back button to kill the application before the alert shows (sometimes alert showed because I was too late) and still cannot reproduce the error. May be we need to make a request that takes really long.
Moving this ticket to engineering I can reproduce this issue (finally) on Google Nexus 7 device with 4.4 SDK. It may be reproducible on other devices as well.
this is happening on our side too: TiSDK 3.2.3, Both on Simulator and the device is a Vodafone 875. If I press the back button and the HTTP request is pending, the app crashes. We tried to abort the HTTP call but with no success.
I was also able to reproduce this issue using the following code:
Tested on a Nexus 5 running Android 4.4.3.
Closing ticket as the issue has been fixed.