{ "id": "124712", "key": "TIMOB-16368", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-15T21:07:45.000+0000", "created": "2014-01-13T04:48:13.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "crash", "exit", "network" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" }, { "id": "15857", "description": "Release 3.2.2", "name": "Release 3.2.2", "archived": false, "released": true, "releaseDate": "2014-03-09" }, { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T21:43:50.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "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. \r\nAttached is logcat dump and sample project\r\n\r\n", "attachment": [ { "id": "45070", "filename": "ErrorOnExit.zip", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-13T04:48:13.000+0000", "size": 636487, "mimeType": "application/zip" }, { "id": "45069", "filename": "logcat.txt", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-13T04:48:13.000+0000", "size": 16073, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: App crashes on exit if HTTP request is pending", "creator": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK 3.2.0 GA, 3.2.2 GA, 3.2.3 GA.\r\nNexus 4 (Android 4.4.3), Samsung S4 I-9505, Genymotion simulator API 18", "closedSprints": [ { "id": 133, "state": "closed", "name": "2014 Sprint 13 SDK", "startDate": "2014-06-23T21:55:20.791Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T17:32:18.561Z", "originBoardId": 100 }, { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "288067", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.\n\n[INFO] : abort request: [object HTTPClient]", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T04:56:22.000+0000", "updated": "2014-01-14T04:56:22.000+0000" }, { "id": "288070", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ritu,\n\nThis is just an info message that the abort method is called on a real object, it was just for testing.\nWhat 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\nI assume you did not get this error message ?\nright ?\n", "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T05:12:26.000+0000", "updated": "2014-01-14T05:12:26.000+0000" }, { "id": "288071", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Correct. I did not get the error message.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T05:15:04.000+0000", "updated": "2014-01-14T05:15:04.000+0000" }, { "id": "288075", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://www.youtube.com/watch?v=MBi1FoyX9o4&feature=youtu.be\n\nhere i have uploaded a video from genymotion, using image S4, API 18", "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-14T05:48:11.000+0000", "updated": "2014-01-14T05:48:11.000+0000" }, { "id": "288227", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for posting the video. I will try to get hold of a S4 device and test it out.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-15T05:37:10.000+0000", "updated": "2014-01-15T05:37:10.000+0000" }, { "id": "288233", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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", "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-15T06:14:29.000+0000", "updated": "2014-01-15T06:14:29.000+0000" }, { "id": "288237", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-15T06:20:56.000+0000", "updated": "2014-01-15T06:20:56.000+0000" }, { "id": "288238", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Both - this is why i listed it in the Environment section of the jira issue\ni 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\nBut indeed - on Samsung Galaxy Tab 3110 and android 4.2.2, and HTC Desire S - it does not fail. i tried now\n\n", "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-15T06:41:38.000+0000", "updated": "2014-01-15T06:41:38.000+0000" }, { "id": "289283", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-22T20:12:29.000+0000", "updated": "2014-01-22T20:12:29.000+0000" }, { "id": "289299", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "body": "actually you should not receive any message, because - once the app starts, it opens an HTTP request, which takes few seconds.\nYou 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.\nThe prblem happens when the request comes back, and the application has already exited. Then i get the mentioned exception\nYou can see this in the video that i have created as well\n", "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-22T21:38:53.000+0000", "updated": "2014-01-22T21:38:53.000+0000" }, { "id": "289562", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-24T06:46:03.000+0000", "updated": "2014-01-24T06:46:03.000+0000" }, { "id": "289589", "author": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "vlast3k", "key": "vlast3k", "displayName": "Vladimir S", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-24T15:49:23.000+0000", "updated": "2014-01-24T15:49:23.000+0000" }, { "id": "291081", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-04T06:21:38.000+0000", "updated": "2014-02-04T06:21:38.000+0000" }, { "id": "305927", "author": { "name": "a.marcone", "key": "a.marcone", "displayName": "Alberto Marcone", "active": true, "timeZone": "Europe/Berlin" }, "body": "this is happening on our side too: TiSDK 3.2.3, Both on Simulator and the device is a Vodafone 875.\r\n\r\nIf 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.", "updateAuthor": { "name": "a.marcone", "key": "a.marcone", "displayName": "Alberto Marcone", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-05-21T15:44:04.000+0000", "updated": "2014-05-21T15:44:04.000+0000" }, { "id": "310150", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I was also able to reproduce this issue using the following code:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\texitOnClose: true\r\n});\r\nwin.open();\r\n\r\nvar button = Ti.UI.createButton({\r\n\ttitle : \"Send\"\r\n});\r\nwin.add(button);\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\tvar xhr = Ti.Network.createHTTPClient({\r\n\t\tonerror : function(e) {\r\n\t\t\tTi.API.info('error ' + e.error);\r\n\t\t},\r\n\t\tonload : function(e) {\r\n\t\t\talert('loaded');\r\n\t\t}\r\n\t});\r\n\r\n\txhr.open('GET', 'http://www.appcelerator.com');\r\n\txhr.send();\r\n});\r\n{code}\r\n\r\nTested on a Nexus 5 running Android 4.4.3.", "updateAuthor": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-20T09:27:07.000+0000", "updated": "2014-06-20T09:27:07.000+0000" }, { "id": "311860", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-07-01T18:16:34.000+0000", "updated": "2014-07-01T18:16:34.000+0000" }, { "id": "413169", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as the issue has been fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-16T21:43:50.000+0000", "updated": "2017-03-16T21:43:50.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }