{ "id": "134301", "key": "TIMOB-17559", "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": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-08-29T20:57:10.000+0000", "created": "2014-08-07T12:38:15.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "TCSupport", "android", "module_network", "qe-automation", "qe-testadded" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" }, { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-10-14T18:09:03.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": "h4. Problem Description\r\n\r\nAndroid: HTTPClient leads to app crash if app is closed before response is received.\r\n\r\nh4. Steps to Reproduce\r\n\r\n# Run the following app\r\n# Close the app via back button immediately after it has started\r\n# Wait for a few seconds\r\n# The app crashes. On my device this is only visible in the adb log, but I have also seen a crash notice displayed to the user (e.g. on the Genymotion emulator).\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar xhr = Titanium.Network.createHTTPClient();\r\nxhr.onload = function() {\r\n\tTi.API.info('Received response');\r\n};\r\nTi.API.info('Sent request. Waiting for response.');\r\nxhr.open('GET', 'http://httpbin.org/delay/3');\r\nxhr.send();\r\n{code}\r\n\r\nh4. Actual Results\r\nthe app Crashes in genymotion and device.\r\n\r\nh4. Logs\r\nSee log.txt attachment for crash log.", "attachment": [ { "id": "50300", "filename": "log.txt", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-07T12:38:15.000+0000", "size": 20937, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: HTTPClient leads to app crash if app is closed before response is received", "creator": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium 3.3.0GA\r\nTitanium 3.2.3GA\r\nAndroid 4.2.1\r\nSamsung Galaxy Nexus", "comment": { "comments": [ { "id": "320772", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces in \r\nTitanium SDK version 3.3.0.GA, 3.2.3.G.A\r\n\r\nBut works fine in \r\nTitanium SDK version 3.4.0 master\r\n\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium Command-Line Interface\r\nCLI version 3.3.0, \r\nAndroid device : Motorola Moto G, Android version : 4.4.4", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T09:53:16.000+0000", "updated": "2014-08-28T09:53:16.000+0000" }, { "id": "320795", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~philet] Can you please confirm it as fixed in 3.4.0 CI for you?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T14:50:11.000+0000", "updated": "2014-08-28T14:50:11.000+0000" }, { "id": "320842", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix.\r\n\r\nWe do not see any app crash if the app is closed before a response is received.\r\n\r\nClosing.\r\n\r\nEnvironment:\r\nAppc Studio : 3.4.0.201408270900\r\nTi SDK : 3.4.0.v20140827165712\r\nMac OSX : 10.9.4\r\nAlloy : 1.5.0-dev\r\nCLI - 3.4.0-dev\r\nCode Processor: 1.1.1\r\nAndroid 4.2 - Nexus 4", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T18:16:48.000+0000", "updated": "2014-08-28T18:16:48.000+0000" }, { "id": "320985", "author": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "body": "{quote}\r\nPhilippe Wueger Can you please confirm it as fixed in 3.4.0 CI for you?\r\n{quote}\r\n[~ingo]: Yes, this works now. I see now that this item is a duplicate of TIMOB-16368, which solves the same issue. Thanks for solving this.", "updateAuthor": { "name": "philet", "key": "philet", "displayName": "Philippe Wueger", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-08-29T09:00:00.000+0000", "updated": "2014-08-29T09:00:00.000+0000" }, { "id": "321098", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to add tester", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-29T20:55:57.000+0000", "updated": "2014-08-29T20:55:57.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }