{ "id": "97553", "key": "TIMOB-10017", "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": "15707", "description": "2013 Sprint 23", "name": "2013 Sprint 23", "archived": true, "released": true, "releaseDate": "2013-11-15" }, { "id": "15708", "description": "2013 Sprint 23 API", "name": "2013 Sprint 23 API", "archived": true, "released": true, "releaseDate": "2013-11-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": "2013-11-13T22:38:30.000+0000", "created": "2012-07-18T05:11:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api", "exalture", "qe-closed-3.3.0" ], "versions": [ { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" } ], "issuelinks": [], "assignee": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "updated": "2014-07-17T10:37:09.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": "This is not a regression. It occurs in 2.1.0 and 2.0.2 as well.\r\n\r\nFrom parent window, going to child window for the second time crashes the app.\r\nSteps to reproduce:\r\n1) Use the code below to make a sample app.\r\n{code}\r\nvar winMain = Ti.UI.createWindow({\r\n backgroundColor : 'white',\r\n fullscreen : true,\r\n});\r\n\r\nvar SecWin= Ti.UI.createWindow({\r\n backgroundColor : 'red',\r\n fullscreen : true,\r\n});\r\n\r\nvar ClickMe = Ti.UI.createButton({\r\n title : 'Click',\r\n backgroundColor:'orange',\r\n width : 60,\r\n height : 40\r\n});\r\n\r\nClickMe.addEventListener('click',function() {\r\n\t\tSecWin.backgroundColor = 'white';\r\n\t\tvar tableView = Ti.UI.createTableView();\r\n\t\t\r\n\t\tvar data = [];\r\n\t\t\r\n\t\tfor (var c=0;c<4;c++)\r\n\t\t{\r\n\t\t\tvar label = Ti.UI.createLabel({\r\n\t\t\t\ttext:'Header ' + (c+1),\r\n\t\t\t\tcolor:'black',\r\n\t\t\t\twidth:'auto',\r\n\t\t\t\theight: 'auto',\r\n\t\t\t\tleft:4\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tvar pinkHeader = Ti.UI.createView({backgroundColor: 'pink', height: 40});\r\n\t\t\tpinkHeader.add(label);\r\n\t\t\t\r\n\t\t\tdata[c] = Ti.UI.createTableViewSection({\r\n\t\t\t\theaderView: pinkHeader\r\n\t\t\t});\r\n\t\t\tfor (var x=0;x<10;x++)\r\n\t\t\t{\r\n\t\t\t\tdata[c].add(Ti.UI.createTableViewRow({title:'Group '+(c+1)+', Row '+(x+1)}));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\ttableView.data = data;\r\n\t\t\r\n\t\tSecWin.add(tableView);\r\n\t\tSecWin.open();\r\n});\r\n\r\n\r\nwinMain.add(ClickMe);\r\nwinMain.open();\r\n{code}\r\n\r\n2) Run the app.\r\n3) Click the button'Click'\r\n4) Press android 'back' button.\r\n5) Click the button'Click'\r\n\r\nExpected result:\r\n2) After step 2, a white window with a 'click' button should get displayed.\r\n3) The child window with pink header rows should get displayed.\r\n4) Earlier white parent window should get displayed.\r\n5) The child window should get displayed again.\r\n\r\nActual result:\r\n2) After step 2, a white window with a 'click' button gets displayed.\r\n3) The child window with pink header rows gets displayed.\r\n4) Earlier white parent window gets displayed.\r\n5) App is forced closed.", "attachment": [], "flagged": false, "summary": "Android: TableView: Child window contains tableview.App crashes on second visit to child window from parent window.", "creator": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Titanium SDK: 2.1.1.v20120717154609\r\nTested with Titanium  Studio: 2.1.1.201207161421\r\nDevice - Android 2.2.2 LG-P970\r\nMachine OS - MAC 10.7.3", "comment": { "comments": [ { "id": "235532", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/3607", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-23T18:56:10.000+0000", "updated": "2013-01-23T18:56:10.000+0000" }, { "id": "235828", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Another test case:\n{code}\nvar win1 = Ti.UI.createWindow({\n\tbackgroundColor : 'white',\n\ttitle : \"win1\",\n\tfullscreen : true\n});\n\nvar win2 = Ti.UI.createWindow({\n\tbackgroundColor : 'red',\n\ttitle : \"win2\",\n\tfullscreen : true\n});\n\nvar b1 = Ti.UI.createButton({\n\ttitle : 'Open win2',\n\tbackgroundColor : 'orange',\n\twidth : 160,\n\theight : 80\n});\n\nb1.addEventListener('click', function() {\n\twin2.backgroundColor = 'blue';\n\tvar tableView = Ti.UI.createTableView({\n\t\ttop : 100\n\t});\n\n\tvar data = [];\n\n\tfor (var c = 0; c < 4; c++) {\n\t\tvar label = Ti.UI.createLabel({\n\t\t\ttext : 'Header ' + (c + 1),\n\t\t\tcolor : 'black',\n\t\t\twidth : 'auto',\n\t\t\theight : 'auto',\n\t\t\tleft : 4\n\t\t});\n\n\t\tvar pinkHeader = Ti.UI.createView({\n\t\t\tbackgroundColor : 'pink',\n\t\t\theight : 40\n\t\t});\n\t\tpinkHeader.add(label);\n\n\t\tdata[c] = Ti.UI.createTableViewSection({\n\t\t\theaderView : pinkHeader\n\t\t});\n\t\tfor (var x = 0; x < 10; x++) {\n\t\t\tdata[c].add(Ti.UI.createTableViewRow({\n\t\t\t\ttitle : 'Group ' + (c + 1) + ', Row ' + (x + 1)\n\t\t\t}));\n\t\t}\n\t}\n\n\ttableView.data = data;\n\n\tvar b2 = Ti.UI.createButton({\n\t\ttitle : 'Close win2',\n\t\tbackgroundColor : 'orange',\n\t\twidth : 160,\n\t\theight : 80,\n\t\ttop: 0\n\t});\n\t\n\tb2.addEventListener('click', function(){\n\t\twin2.close();\n\t});\n\n\twin2.add(b2);\n\twin2.add(tableView);\n\twin2.open();\n});\n\nwin1.add(b1);\nwin1.open();\n{code}", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T01:13:42.000+0000", "updated": "2013-01-25T01:13:42.000+0000" }, { "id": "241948", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Issue reproduces with\n\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0 (03/11/13 15:43 0c88429)\nTitanium SDK version: 3.0.2 (02/07/13 16:46 a4def81)\nDevice: Samsung galaxy s duos Android version: 4.0.4\nAndroid Emulator: Android SDK version: 2.2 \n", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-13T12:33:29.000+0000", "updated": "2013-03-13T12:33:29.000+0000" }, { "id": "255768", "author": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Added a null value checking.\r\n \r\nhttps://github.com/appcelerator/titanium_mobile/pull/4353", "updateAuthor": { "name": "bijuexalture", "key": "bijuexalture", "displayName": "Biju pm", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-04T09:35:01.000+0000", "updated": "2013-06-04T09:35:01.000+0000" }, { "id": "258889", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3607 Failed FR and was closed due to inactivity.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-20T23:33:32.000+0000", "updated": "2013-06-20T23:33:32.000+0000" }, { "id": "279420", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with latest master. Unable to reproduce this issue. Closing.", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-13T22:38:17.000+0000", "updated": "2013-11-13T22:38:17.000+0000" }, { "id": "314637", "author": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Issue is not reproducible, hence closing the issue.\r\n\r\nTested on:\r\nDevice : Google Nexus 7, Android Version: 4.4.4\r\nSDK: 3.3.0.v20140711123603\r\nCLI version : 3.3.0-rc4\r\nOS : MAC OSX 10.9.2\r\nAlloy: 1.4.0-rc5\r\nACS: 1.0.15\r\nnpm:1.3.2\r\nLiveView: 1.0.4\r\nAppcelerator Studio, build: 3.3.0.201407111535\r\ntitanium-code-processor: 1.1.1\r\nXCode : 5.1.1", "updateAuthor": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-07-17T10:36:53.000+0000", "updated": "2014-07-17T10:36:53.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }