{ "id": "131740", "key": "TIMOB-17172", "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": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-19T19:45:20.000+0000", "created": "2014-06-14T15:16:55.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ios", "module_scrollView", "parity", "qe-testadded", "regression" ], "versions": [], "issuelinks": [ { "id": "38583", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "131935", "key": "TIMOB-17183", "fields": { "summary": "iOS: App crashes when attempting to access NSArray of views", "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": "Critical", "id": "1" }, "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": "2014-06-20T19:12:11.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": "I have a UI design with: ScrollView with layout='vertical', a view at height=Ti.UI.SIZE and a TableView at height=Ti.UI.SIZE and scrollable=false. \r\nWhen I try to add a TableViewRow object to TableView, the app closes.\r\n\r\nThis code reproduces the problem.\r\n\r\n{code:title=app.js}\r\nvar w = Titanium.UI.createWindow({\r\n\tfullscreen: true,\r\n\tbackgroundColor: 'silver'\r\n});\r\n\r\nvar s = Ti.UI.createScrollView({\r\n\tlayout: 'vertical' /* composite crash too */\r\n});\r\n\r\nvar v = Ti.UI.createView({\r\n\theight: Ti.UI.SIZE /* Ti.UI.FILL works */\r\n});\r\n\r\nvar t = Ti.UI.createTableView({\r\n\tdata: [{title: '1'}, {title: '1'}, {title: '1'}, {title: '1'}, {title: '1'}, {title: '1'}, {title: '1'}, {title: '1'}, {title: '1'}, {title: '1'}],\r\n\theight: Ti.UI.SIZE,\r\n\t//backgroundColor: 'white',\r\n\ttop: '200dp',\r\n\tscrollable: false\r\n});\r\n\r\nv.add(t);\r\ns.add(v);\r\nw.add(s);\r\n\r\nsetTimeout(function () {\r\n\tt.backgroundColor = 'yellow';\r\n\r\n\tt.setData([{\r\n\t\ttitle: 'dictionaty works'\r\n\t}]);\r\n\t\r\n\tt.appendRow({\r\n\t\ttitle: 'it will appears only later'\r\n\t});\r\n\r\n\tsetTimeout(function () {\r\n\t\tt.backgroundColor = 'red';\r\n\t\t\r\n\t\tt.setData([Ti.UI.createTableViewRow({\r\n\t\t\ttitle: 'app will close'\r\n\t\t})]);\r\n\t\t\r\n\t\talert('not called');\r\n\t}, 2000);\r\n}, 2000);\r\n\r\nw.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Crash with TableViewRow object to a TableView inside a ScrollView", "creator": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei Dionísio", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei Dionísio", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "Ti SDK 3.3.0, iOS 7.x (simulator and device), Mac OS", "closedSprints": [ { "id": 121, "state": "closed", "name": "2014 Sprint 12 SDK", "startDate": "2014-06-09T21:51:17.043Z", "endDate": "2014-06-21T00:00:00.000Z", "completeDate": "2014-06-23T16:52:29.621Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "309087", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "HI,\r\n\r\nWhat is your meaning of \"App closes\", app exist to home page? maybe you can give me a screen shot for your problem.\r\n\r\nRegards,\r\nShuo Liang", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-06-16T07:37:46.000+0000", "updated": "2014-06-16T07:37:46.000+0000" }, { "id": "309116", "author": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei Dionísio", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Exactly, the app exit to home. Note that if I change line 11 to Ti.UI.FILL, all stuff works. I suppose the bug is on Ti.UI.View resize implementation.\r\n\r\nRegards,\r\nDirlei.", "updateAuthor": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei Dionísio", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-06-16T14:27:08.000+0000", "updated": "2014-06-16T14:27:08.000+0000" }, { "id": "309214", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Removing regression tag unless noted otherwise.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T21:57:52.000+0000", "updated": "2014-06-16T21:57:52.000+0000" }, { "id": "309229", "author": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei Dionísio", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Ingo, on Ti 3.2.3 the code above works perfectly. Thus, this is a regression issue, right?", "updateAuthor": { "name": "dirleidionisio", "key": "dirleidionisio", "displayName": "Dirlei Dionísio", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-06-16T22:33:58.000+0000", "updated": "2014-06-16T22:33:58.000+0000" }, { "id": "309235", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yes, if it does work on 3.2.3, then I will mark it as a regression.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T23:00:36.000+0000", "updated": "2014-06-16T23:00:36.000+0000" }, { "id": "309244", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed being not reproducible using TiSDK 3.2.3.GA\r\nTherefore is a regression. \r\n\r\nTiSDk 3.3.0.v20140613161751 \r\nAppcelerator Studio 3.3.0.201406111952 \r\nCLI 3.3.0-rc\r\nAlloy 1.4.0-rc\r\n", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T23:56:53.000+0000", "updated": "2014-06-16T23:56:53.000+0000" }, { "id": "309673", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending \r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/5815\r\n3_3_X - https://github.com/appcelerator/titanium_mobile/pull/5816\r\n\r\nNote:\r\nThe size behavior of TableView seems to be broken but that should not be considered a blocker for this PR. The behavior is broken in 3.2.3.GA as well", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-06-18T19:28:36.000+0000", "updated": "2014-06-18T19:33:46.000+0000" }, { "id": "310034", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201406171619\r\nTitanium SDK, build: 3.3.0.v20140619130123\r\nTitanium CLI, build: 3.3.0-rc\r\nAlloy: 1.4.0-rc\r\niOS Device: iPhone 5S (7.1.1)\r\niOS Simulator: iPhone (7.1)\r\n\r\nUsed test code provided in description, app does not crash.\r\nClosing.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-19T21:46:28.000+0000", "updated": "2014-06-19T21:46:28.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }