{ "id": "104060", "key": "TIMOB-11605", "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": "14168", "description": "2012 Sprint 22 API", "name": "2012 Sprint 22 API", "archived": true, "released": true, "releaseDate": "2012-11-05" }, { "id": "14274", "description": "2012 Sprint 22", "name": "2012 Sprint 22", "archived": true, "released": true, "releaseDate": "2012-11-05" } ], "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2012-11-01T20:19:53.000+0000", "created": "2012-10-29T21:59:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "qe-and214", "triage" ], "versions": [ { "id": "14613", "description": "Release 2.1.4", "name": "Release 2.1.4", "archived": true, "released": true, "releaseDate": "2012-11-12" } ], "issuelinks": [ { "id": "22340", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "88556", "key": "TIMOB-8286", "fields": { "summary": "Android: TabGroup memory leak", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-03T21:00:19.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": "Description:\r\nWhile testing TabGroup I noticed black screen appears instead of tableView with 500 rows. It happens always on a first run (after installation).\r\nThis is not a regression, the behavior exists on 2.1.3 as well.\r\nDoes not happen on 2.1.2 and 3.0.0.\r\n\r\nSteps:\r\n1. Run the following code:\r\n{code}\r\n (function() {\r\n \r\n var create = function() {\r\n \r\n var tabGroupWrapper = {}, tabWrapper = {}, winWrapper = {}, tableViewWrapper = {}, buttonWrapper = {};\r\n \r\n tabGroupWrapper.Element = Ti.UI.createTabGroup();\r\n \r\n winWrapper.Element = Ti.UI.createWindow({ navBarHidden: true, backgroundColor: '#fc9', layout: 'vertical' });\r\n \r\n tabWrapper.Element = Ti.UI.createTab({ title: 'Test', window: winWrapper.Element });\r\n \r\n tabGroupWrapper.Element.addTab(tabWrapper.Element);\r\n \r\n tableViewWrapper.Element = Ti.UI.createTableView();\r\n \r\n var data = [];\r\n \r\n for (var i = 1; i <= 500; ++i) {\r\n data.push({ title: 'Row ' + i});\r\n }\r\n \r\n tableViewWrapper.Element.setData(data);\r\n \r\n buttonWrapper.Element = Ti.UI.createButton({\r\n title: 'Create new tabgroup!'\r\n });\r\n \r\n buttonWrapper.Element.addEventListener('click', function() {\r\n create();\r\n });\r\n \r\n winWrapper.Element.add(buttonWrapper.Element);\r\n winWrapper.Element.add(tableViewWrapper.Element);\r\n \r\n tabGroupWrapper.Element.setActiveTab(0);\r\n \r\n tabGroupWrapper.Element.open();\r\n \r\n };\r\n \r\n create(); \r\n})();\r\n{code}\r\n\r\nExpected result:\r\nShould see tableView with 500 rows and \"Create new tabgroup\" button\r\n\r\nActual:\r\nBlack screen appears", "attachment": [ { "id": "33039", "filename": "device-2012-10-29-145610.png", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-29T21:59:06.000+0000", "size": 11903, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: TabGroup - Black screen appears on launch", "creator": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium Studio, build: 3.0.0.201210271747\r\nTitanium SDK, build: 2.1.4.v20121026164613\r\nDevice: Nexus 7 (4.1.1), Samsung Galaxy SIII (4.0.4)", "comment": { "comments": [ { "id": "225701", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is a racing condition with the old tab group implementation. Removing the function scope in the test code seems to solve this problem.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-31T18:17:04.000+0000", "updated": "2012-10-31T18:17:22.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }