{ "id": "76923", "key": "TIMOB-4892", "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": "11364", "description": "Mobile 1.8.0 M11", "name": "Sprint 2011-32", "archived": true, "released": true, "releaseDate": "2011-08-15" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-08-09T22:18:54.000+0000", "created": "2011-06-27T07:50:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "setdata", "tableview" ], "versions": [], "issuelinks": [], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T17:27:53.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": "If you use setdata on IOS the tableviewrow dont release. If I compile with 1.7.0 Release Candidate there is no problems. This only appears if I try to compile to 1.7.0 final or 1.7.1. Using Intruments its clear the behavior difference between 1.7 RC and 1.7.1 and 1.7.0\r\n\r\nTest case bellow:\r\n{code:javascript}\r\nvar win = Titanium.UI.createWindow(\r\n{\r\n title: 'Tableview Test'\r\n});\r\nvar runNumber = 0;\r\nvar tableview = Titanium.UI.createTableView({\r\n\tbackgroundColor: 'white',\r\n\tborder: 1,\r\n\tborderColor: '#E0E0E0',\r\n\twidth: 315,\r\n\theight: 450,\r\n\tleft: 35,\r\n\ttop: 75,\r\n\tallowsSelection: true,\r\n\tseparatorStyle: Ti.UI.iPhone.TableViewSeparatorStyle.SINGLE_LINE\r\n\t});\r\n\t\r\nwin.add(tableview);\r\n\r\nvar buttomSetData = Titanium.UI.createButton({\r\n\ttitle: 'Set data',\r\n\tbottom: 50,\r\n\tright: 480,\r\n\tborder: 1,\r\n\theight: 100,\r\n\twidth: 47\r\n});\r\n\r\nbuttomSetData.addEventListener('click', function (e) {\r\nvar tableviewData =[];\r\n\t\r\nfor(var i=0;i<200;i++)\r\n{\t\r\n\tvar row1 = Ti.UI.createTableViewRow();\r\n\tvar infoLabel = Titanium.UI.createView({\r\n\t\t\t\theight: 12,\r\n\t\t\t\twidth: 12,\r\n\t\t\t\t//backgroundImage :'images/delrow.png',\r\n\t\t\t\tbackgroundColor: 'red',\r\n\t\t\t\ttop: 8,\r\n\t\t\t\tleft: 20\r\n\t\t\t});\r\n\t\t\t\r\n\tvar textLabel = Ti.UI.createLabel({\r\n\t\t\tcolor: '#000',\r\n\t\t\ttext: 'Run number ' + runNumber + ' Row number ' + i,\r\n\t\t\tfont: {\r\n\t\t\t\tfontSize: 15\r\n\t\t\t},\r\n\t\t\ttop: 5,\r\n\t\t\tleft: 50,\r\n\t\t\theight: 20,\r\n\t\t\twidth: 260\r\n\t\t});\t\t\r\n\t\t\trow1.add(textLabel);\r\n\t\t\trow1.add(infoLabel);\r\n\t\ttableviewData.push(row1);\t\r\n\t\t\t\r\n}\t\t\t\r\ntableview.setData(tableviewData);\r\n\r\nrunNumber++\t\r\n});\r\nwin.add(buttomSetData);\r\nwin.open();\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "tableview SetData not releasing memory", "creator": { "name": "danieldeandre", "key": "danieldeandre", "displayName": "Daniel de Andre", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "danieldeandre", "key": "danieldeandre", "displayName": "Daniel de Andre", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* IOS 4.2, IOS 4.3\r\n* Titanium 1.7.0, 1.7.1\r\n* mac os 1.6.7", "comment": { "comments": [ { "id": "161929", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for raising this ticket. Please remember to state the build date and hash of the Titanium SDK you have tested. You will find this information in the log on application launch. Please read the [Jira Ticket Checklist|http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-Summary%3AJiraTicketChecklist] for future tickets.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-08-04T15:23:22.000+0000", "updated": "2011-08-04T15:23:22.000+0000" }, { "id": "162334", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Checked Against 1.7.2 release and 1.8 master cannot reproduce. ", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-09T22:17:40.000+0000", "updated": "2011-08-09T22:17:40.000+0000" }, { "id": "162335", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested against 1.7.2 release and 1.8 master", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-09T22:18:54.000+0000", "updated": "2011-08-09T22:18:54.000+0000" }, { "id": "168971", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2011-10-12T05:09:40.000+0000", "updated": "2011-10-12T05:09:40.000+0000" }, { "id": "170192", "author": { "name": "danieldeandre", "key": "danieldeandre", "displayName": "Daniel de Andre", "active": true, "timeZone": "America/Los_Angeles" }, "body": "To be honest, I have no idea how you 'cannot reproduce'... Just open instruments and you will see it. \r\n\r\nI will stay with 1.7.0 RC until this is fixed. ", "updateAuthor": { "name": "danieldeandre", "key": "danieldeandre", "displayName": "Daniel de Andre", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-24T08:18:53.000+0000", "updated": "2011-10-24T08:18:53.000+0000" }, { "id": "181250", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "I have tested with both the customer's code and the code I supplied using 1.8.1 and I cannot reproduce the leak. The object count grows till it hits a threshold and then objects are garbage collected as expected. \r\n\r\nI tried attaching a screen to the ticket, but it didn't seem to work. Here's a screen shot of Instruments showing my testing session using the customer's code. https://skitch.com/skypanther/g7quq/screen-shot-2012-01-31-at-3.34.47-pm You can see memory use grow, then objects are GC'd, and memory then drops.", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2012-01-31T12:39:13.000+0000", "updated": "2012-01-31T12:39:13.000+0000" }, { "id": "416508", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T17:27:53.000+0000", "updated": "2017-03-31T17:27:53.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }