{ "id": "103352", "key": "TIMOB-11479", "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": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-10-14T06:46:24.000+0000", "created": "2012-10-13T21:51:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_scrollview", "qe-ios100112", "qe-testadded", "regression" ], "versions": [ { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "issuelinks": [ { "id": "21989", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "103346", "key": "TIMOB-11476", "fields": { "summary": "iOS: Crash on launch", "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 } } } }, { "id": "22085", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "97703", "key": "TIMOB-10110", "fields": { "summary": "Android: view with borders are not correctly removed in scrollview", "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": "Medium", "id": "3" }, "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-19T12:43:23.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": "An application crashes on launch in module Scrollview.\r\n*regression, works on 2.1.3*\r\nTest steps:\r\n1.Run the code below\r\n{code}\r\nvar win = Ti.UI.createWindow();\r\nwin.open();\r\n \r\n \r\nvar scrollView = Ti.UI.createScrollView({\r\n contentHeight:'auto',\r\n contentWidth:0,\r\n layout:'horizontal',\r\n backgroundColor: 'green'\r\n});\r\nwin.add(scrollView);\r\n \r\nvar colors = ['red', 'blue', 'pink', 'white', 'black'];\r\n \r\nvar max = 120;\r\nfor(var i = 0; i < max; i++){\r\n var view = Ti.UI.createView({\r\n backgroundColor: colors[i%colors.length],\r\n borderColor:'gray',\r\n borderWidth:4,\r\n height: 100,\r\n left: 10,\r\n width: 100,\r\n top: 10\r\n });\r\n \r\n view.addEventListener('click', function(_event){\r\n scrollView.remove(_event.source);\r\n });\r\n scrollView.add(view);\r\n}\r\n\r\n{code}\r\nActual result:\r\nCrash\r\nExpected result:\r\nNo crash\r\nThere will be a grid in which a View of 5 colours (red,blue,pink,white and black) will appear. ", "attachment": [], "flagged": false, "summary": "iOS: Scrollview - An application crashes on launch", "creator": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested on:\r\nTitanium Studio, build: 3.0.0.201210090117\r\nTitanium SDK, build: 3.0.0.v20121012174449\r\nDevices:\r\niPad3 ios 5.1\r\niPhone4 ios 5.1.1\r\niPad3 ios 6.0\r\niPhone5 ios 6.0", "comment": { "comments": [ { "id": "224092", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as Duplicate", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-17T22:16:19.000+0000", "updated": "2012-10-17T22:16:19.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }