{ "id": "83204", "key": "TIMOB-6368", "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": "12571", "description": "CI for 1_7_X", "name": "Release 1.7.6", "archived": true, "released": false }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12094", "description": "", "name": "Sprint 2012-02", "archived": true, "released": true, "releaseDate": "2012-01-29" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-01-26T17:59:02.000+0000", "created": "2011-11-29T17:31:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tableviewrow", "qe-ios012312", "qe-testadded", "regression" ], "versions": [ { "id": "12570", "name": "Release 1.7.5", "archived": true, "released": true, "releaseDate": "2011-11-02" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T05:53:26.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 we are trying to add a large number of rows into a tableview and set the header for each row, that will crash the app. \r\n\r\nh4. Repro Steps\r\nStep 1. Create an application based on the following code.\r\nStep 2. Run the app and a crash will be happened.\r\nStep 2. If you comment out the line \"row.header='A'\", the app won't crash.\r\n\r\n{code}\r\n// this sets the background color of the master UIView (when there are no windows/tab groups on it)\r\nTitanium.UI.setBackgroundColor('#000');\r\n\r\n//\r\n// create base UI tab and root window\r\n//\r\nvar win = Titanium.UI.createWindow({ \r\n backgroundColor:'#fff'\r\n});\r\n\r\nvar table = Titanium.UI.createTableView({});\r\nwin.add(table);\r\nwin.open();\r\n\r\nvar addrow = function(){\r\n\t\r\n\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\t\theight:65\r\n\t\t});\r\n\t\t\r\n\t\tvar photo = Ti.UI.createImageView({\r\n\t // image: ,\r\n\t top: 12,\r\n\t left: 9,\r\n\t width: 40,\r\n\t height: 40,\r\n\t clickName: 'photo'\r\n\t });\r\n\t \r\n\t row.add(photo);\r\n\t \r\n\t var photo2 = Ti.UI.createImageView({\r\n\t // image: ,\r\n\t top: 12,\r\n\t left: 9,\r\n\t width: 40,\r\n\t height: 40,\r\n\t clickName: 'photo2'\r\n\t });\r\n\t \r\n\t row.add(photo2);\r\n\t \r\n\t \r\n\t\trow.header='A';\r\n\t\ttable.appendRow(row);\r\n\r\n}\r\nfor(var i = 0; i<3000; i++){\r\n\taddrow();\r\n\tTi.API.info(Ti.Platform.availableMemory);\r\n}\r\n{code}\r\n\r\nh4. Associated Helpdesk Tickdet: \r\nhttp://support-admin.appcelerator.com/display/APP-654533", "attachment": [ { "id": "24422", "filename": "app.js", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T10:05:48.000+0000", "size": 4892, "mimeType": "text/javascript" }, { "id": "25355", "filename": "ios sim 5 log.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T16:40:46.000+0000", "size": 4129, "mimeType": "text/plain" }, { "id": "24374", "filename": "rowheadercrash_2011-11-29-171307_qgaombp.crash", "author": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-29T17:46:28.000+0000", "size": 39189, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS: Setting headers outside of table view row creation crashes the app", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Xcode4.2, iOS5 Simulator", "comment": { "comments": [ { "id": "174384", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending #798", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-11-30T17:05:55.000+0000", "updated": "2011-11-30T17:05:55.000+0000" }, { "id": "174442", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Use this file to reproduce the crash", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T10:05:48.000+0000", "updated": "2011-12-01T10:05:48.000+0000" }, { "id": "174443", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Will resolved-fixed once there is a fix in 1.7.6.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T10:11:19.000+0000", "updated": "2011-12-01T10:11:19.000+0000" }, { "id": "174450", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull 802 up for the 1_7_X branch", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T11:14:48.000+0000", "updated": "2011-12-01T11:14:48.000+0000" }, { "id": "175026", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\nSDK build: 1.8.0.1.v20111205164258\r\nOS: Mac OS X Lion\r\nDevices: ipod 4.0.2, iphone 5.0.1, ipad2 4.3.5. iOS Simulator (4.3)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2011-12-06T12:39:57.000+0000", "updated": "2011-12-06T12:39:57.000+0000" }, { "id": "178184", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Added label qe-testadded.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T13:00:59.000+0000", "updated": "2012-01-05T13:00:59.000+0000" }, { "id": "180792", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening as Valid. Regression.\r\nSDK: 1.8.1.v20120125154634\r\nStudio: 1.0.8.201201210622\r\nOS: Lion\r\nDevices Tested: iPhone Simulator 5.0\r\nLog Attached.", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-26T16:40:16.000+0000", "updated": "2012-01-26T16:40:16.000+0000" }, { "id": "180890", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with 1.8.1.v20120126191634 on iphone simulator 5.0 and iphone 4s 5.0.1", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-27T10:09:20.000+0000", "updated": "2012-01-27T10:09:20.000+0000" }, { "id": "283451", "author": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Anvil testcase PR https://github.com/appcelerator/titanium_mobile/pull/4940\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T05:53:26.000+0000", "updated": "2013-12-10T05:53:26.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }