{ "id": "155016", "key": "TIMOB-20446", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2017-04-13T05:32:12.000+0000", "created": "2016-02-18T21:39:19.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "5.1.0", "5.2.0", "HttpClient", "ios", "leak" ], "versions": [], "issuelinks": [ { "id": "54707", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "165705", "key": "TIMOB-24364", "fields": { "summary": "iOS: HTTP Client leaks memory during upload using kroll-thread, eventually causing a force close", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-05-31T23:17:42.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "HTTPClient iOS fails to deallocate. running the sample app below and using instruments, TiNetworkHTTPClientProxy never goes down, even after status is DONE, slowly eating up memory\r\n\r\nSee this behaviour in 5.2.0 RC(5.2.0.v20160216202526) as well as 5.1.2 \r\n\r\n{code:java}\r\nvar win1 = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar label1 = Titanium.UI.createLabel({\r\n\tcolor:'#999',\r\n\ttext:'Ping Test',\r\n\tfont:{fontSize:20,fontFamily:'Helvetica Neue'},\r\n\ttextAlign:'center',\r\n});\r\n\r\nwin1.add(label1);\r\n\r\nfunction ping() {\r\n\r\n var pingTimeStart = (new Date).getTime();\r\n var pingTimeEnd = 0;\r\n var url = 'http://www.google.com/';\r\n var pingTest = Ti.Network.createHTTPClient();\r\n\r\n\r\n pingTest.onload = function(e) {\r\n pingTimeEnd = (new Date).getTime();\r\n Ti.API.warn('PING COMPLETE : '+(pingTimeEnd-pingTimeStart));\r\n };\r\n pingTest.onerror = function(e) {\r\n pingTimeEnd = (new Date).getTime();\r\n Ti.API.error('PING FAIL : ' + (pingTimeEnd - pingTimeStart));\r\n };\r\n\r\n pingTest.open(\"HEAD\", url);\r\n pingTest.timeout = 2000;\r\n pingTest.send();\r\n}\r\n\r\n\r\nvar pingAway = setInterval(function() {\r\n ping();\r\n }, 10000);\r\n\r\nwin1.open();\r\n\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: HTTPClient fails to deallocate", "creator": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cliff_stander", "key": "cliff_stander", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "OSX 10.11\r\n", "comment": { "comments": [ { "id": "417343", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is duplicate of TIMOB-24364.", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-04-13T05:32:12.000+0000", "updated": "2017-04-13T05:32:12.000+0000" }, { "id": "420736", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-31T23:17:42.000+0000", "updated": "2017-05-31T23:17:42.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }