{ "id": "122794", "key": "TIMOB-15790", "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": "15711", "description": "2013 Sprint 24", "name": "2013 Sprint 24", "archived": true, "released": true, "releaseDate": "2013-11-29" }, { "id": "15712", "description": "2013 Sprint 24 API", "name": "2013 Sprint 24 API", "archived": true, "released": true, "releaseDate": "2013-11-29" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2013-11-22T18:50:15.000+0000", "created": "2013-11-22T07:44:43.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-3.2.0", "regression", "triage" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-17T06:54:41.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": "Android: TabGroup: Opening tab in tabgroup of large tabs, crashes the app\r\nIt works fine on SDK: 3.1.3.GA \r\n\r\nSteps to reproduce:\r\n1. Run the below app.\r\n{code}\r\nvar _window = Ti.UI.createWindow({\r\n backgroundColor : 'red'\r\n});\r\n\r\n\t function createTab(_i)\r\n\t {\r\n\t\t    return Ti.UI.createTab({window: _window, title: 'Tab ' + _i});\r\n\t\t}\r\n\t\t \r\n\t\tvar tabGroup = Ti.UI.createTabGroup();\r\n\t\t \r\n\t\tfor (var i = 0; i < 10; i++)\r\n\t\t{\r\n\t\t    var tab = createTab(i);\r\n\t\t     \r\n\t\t    tabGroup.addTab(tab);\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\tsetInterval(function()\r\n\t\t{\r\n\t\t    var tabs = tabGroup.tabs;\r\n\t\t    var string = '';\r\n\t\t     \r\n\t\t    for (var i = 0; i < tabs.length; i++)\r\n\t\t    {\r\n\t\t        string += ' | ' + tabs[i].title;\r\n\t\t    }\r\n\t\t     \r\n\t\t   \r\n\t\t     \r\n\t\t}, 5000);\r\n\r\n tabGroup.open();\r\n{code}\r\n\r\n2. Click on any tab.\r\n\r\nExpected:\r\nTab should open and app should not crash.\r\n\r\nActual:\r\nOpening a ab, app crashes.", "attachment": [], "flagged": false, "summary": "Android: TabGroup: Opening tab in tabgroup of large tabs, crashes the app", "creator": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Tested on:\r\nDevice : Google Nexus 7, Android Version: 4.2.1\r\nSDK: 3.2.0.v20131121163252\r\nCLI version : 3.2.0-alpha\r\nOS : MAC OSX 10.9\r\nAlloy : 1.3.0\r\nAppcelerator Studio, build: 3.2.0.201311200357\r\nXCode : 5.0.2", "comment": { "comments": [ { "id": "280751", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "This is bad test case, the same instance of the window is used on multiple tabs.\n\nRefactored the code and this does not crash.\n{code}\nfunction Window() {\n return Ti.UI.createWindow({\n backgroundColor : 'red'\n });\n} \nfunction createTab(_i) {\n return Ti.UI.createTab({window: Window(), title: 'Tab ' + _i});\n}\n \nvar tabGroup = Ti.UI.createTabGroup();\n \nfor (var i = 0; i < 10; i++) {\n var tab = createTab(i);\n tabGroup.addTab(tab);\n}\n \nsetInterval(function() {\n var tabs = tabGroup.tabs;\n var string = ''; \n for (var i = 0; i < tabs.length; i++) {\n string += ' | ' + tabs[i].title;\n }\n}, 5000);\n \ntabGroup.open();\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T18:17:36.000+0000", "updated": "2013-11-22T18:17:36.000+0000" }, { "id": "280762", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved the ticket as Invalid based on the above comment.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-22T18:49:47.000+0000", "updated": "2013-11-22T18:49:47.000+0000" }, { "id": "284709", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified fix with :\r\nOSX: 10.8.5\r\nXcode: 5.0\r\nAppcelerator Studio:3.2.0.201312151544\r\nSDK:3.2.0.v20131216191854\r\nalloy: 1.3.0-cr2\r\nacs: 1.0.10\r\nnpm: 1.3.2\r\ntitanium: 3.2.0-cr3\r\ntitanium-code-processor: 1.1.0-cr2\r\nDevice: Nexus 7 (v4.3)", "updateAuthor": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-12-17T06:54:41.000+0000", "updated": "2013-12-17T06:54:41.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }