{ "id": "86194", "key": "TIMOB-7572", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:02.000+0000", "created": "2012-02-07T17:03:24.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_tabgroup", "qe-testadded", "regression" ], "versions": [ { "id": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" } ], "issuelinks": [ { "id": "15164", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "85010", "key": "TIMOB-7240", "fields": { "summary": "Android: OptionDialog can't be called several times after a tabgroup is opened and closed. ", "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 } } } }, { "id": "15110", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "86195", "key": "TIMOB-7573", "fields": { "summary": "Android: Rhino: Titanium.UI.TabGroup: opening and closing new tab group in a cycle crashes app with null pointer exception", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2013-12-10T05:58:02.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": "Opening a simple app with a tabgroup crashes 1 times out of 4 in 1.9.0 V8. Does not occur in iOS, 1.9.0 Rhino, or 1.8.1 V8/Rhino. Could not produce in 1.9.0 V8 default app (5 trials).\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code.\r\n\r\n{code:title=app.js}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor: 'red',\r\n\tfullscreen: false,\r\n\texitOnClose: true\r\n});\r\n\r\nvar button = Ti.UI.createButton({\r\n\theight: 50,\r\n\ttitle: 'click'\r\n});\r\n\r\nbutton.addEventListener('click', function(e)\r\n{\r\n\tvar tabGroup = Ti.UI.createTabGroup();\r\n\t\r\n\tvar\ttabWin = Ti.UI.createWindow({\r\n\t\t\ttitle: 'blue',\r\n\t\t\tbackgroundColor: 'blue'\r\n\t\t});\r\n\t\r\n\tvar\ttabButton = Ti.UI.createButton({\r\n\t\t\ttitle: 'close'\r\n\t\t});\r\n\t\r\n\tvar\ttab = Ti.UI.createTab({\r\n\t\t\ttitle: 'blue',\r\n\t\t\twindow: tabWin\r\n\t\t});\r\n\r\n\ttabWin.add(tabButton);\r\n\t\r\n\ttabButton.addEventListener('click', function(e){\r\n\t\ttabGroup.close();\r\n\t});\r\n\t\r\n\ttabGroup.addTab(tab);\t\r\n\ttabGroup.open();\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n{code}\r\n\r\n2. Click 'click' and 'close' 10 times.\r\n\r\nExpected Result:\r\n\r\nNo blank screen freezes or immediate crashes, but there may be a null pointer crash after a force close dialog (separate issue).\r\n\r\nActual Result:\r\n\r\nCrash with debug output usually including the line: committing suicide to free the zombie. Log attached.\r\nScreen may remain black and console prints empty-window errors on click.\r\n\r\nNote: The sample code without the above test harness still crashes, excerpt below:\r\n\r\n{code:title=app.js}\r\nvar tabGroup = Ti.UI.createTabGroup();\r\n\r\nvar tabWin = Ti.UI.createWindow({\r\n\t\ttitle: 'blue',\r\n\t\tbackgroundColor: 'blue'\r\n\t});\r\n\r\nvar tabButton = Ti.UI.createButton({\r\n\t\ttitle: 'close'\r\n\t});\r\n\r\nvar tab = Ti.UI.createTab({\r\n\t\ttitle: 'blue',\r\n\t\twindow: tabWin\r\n\t});\r\n\r\ntabWin.add(tabButton);\r\n\r\ntabButton.addEventListener('click', function(e){\r\n\ttabGroup.close();\r\n});\r\n\r\ntabGroup.addTab(tab);\t\r\ntabGroup.open();\r\n{code}", "attachment": [ { "id": "25657", "filename": "v8 tabgroup open crash.txt", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T17:03:24.000+0000", "size": 10869, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: V8: Titanium.UI.TabGroup: opening tab group intermittently crashes app", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 1.9.0.v20120207124634\r\nStudio: 1.0.8.201201262211\r\nOS: Lion\r\nDevices Tested: Xoom 3.2.1, Android Emulator 2.2, Nexus One 2.2.2, Droid3 2.3.4", "comment": { "comments": [ { "id": "182942", "author": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Fixed.\r\nSDK: 1.9.0.v20120213100134\r\nAndroid: V8\r\nStudio: 1.0.8.201201262211\r\nOS: Lion\r\nDevices Tested: Android Emulator 2.2, Nexus One 2.2.2, Droid3 2.3.4, Xoom 3.2.1", "updateAuthor": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-02-13T12:23:47.000+0000", "updated": "2012-02-13T12:23:47.000+0000" }, { "id": "283460", "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/5074\n", "updateAuthor": { "name": "shameerj", "key": "shameerj", "displayName": "Shameer Jan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T05:58:02.000+0000", "updated": "2013-12-10T05:58:02.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }