{ "id": "88039", "key": "TIMOB-8047", "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-03-15T15:19:29.000+0000", "created": "2012-03-15T15:13:12.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "\"qe-mw020912\"" ], "versions": [ { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2014-01-28T23:48:59.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": "11500", "name": "MobileWeb", "description": "Mobile Web (HTML) Platform" } ], "description": "Steps to reproduce:\r\n\r\n1. Create a default mobile web app and change the app.js code to the following:\r\n{code}\r\nvar _window = Titanium.UI.createWindow({\r\n\t\t\ttitle : 'test',\r\n\t\t\tbackgroundColor : 'white'\r\n\t\t});\r\nvar rows = [];\r\n\t\t\r\n\t\tfor(var i = 0; i < 200; i++) \r\n\t\t{\r\n\t\t\tvar row = Ti.UI.createTableViewRow({\r\n\t\t\t\tclassName:'row'\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\trow.add(Ti.UI.createLabel({\r\n\t\t\t\ttext : 'Row ' + i,\r\n\t\t\t\tleft : 70\r\n\t\t\t}));\r\n\t\t\t\r\n\t\t\trow.add(Ti.UI.createImageView({\r\n\t\t\t\timage : 'iproducts.png',\r\n\t\t\t\tleft : 10\r\n\t\t\t}));\r\n\t\t\t\r\n\t\t\trows.push(row);\r\n\t\t\t\r\n\t\t\trow = null;\r\n\t\t}\r\n\t\t\r\n\t\t_window.add(Ti.UI.createTableView({\r\n\t\t\tdata : rows,\r\n\t\t\tbottom : 50\r\n\t\t}));\r\n_window.open();\r\n{code}\r\n\r\n2. Run the app on *device* (this issue did not occur on desktop)\r\n\r\nActual result:\r\nThe following error is output to the console \"Javascript execution exceeded timeout\"\r\n\r\nExpected result:\r\nThe table view is created and added to the window ", "attachment": [], "flagged": false, "summary": "MobileWeb: TableView - Creating table view rows (~200) in a for loop caused a error \"Javascript execution exceeded timeout\" ", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.0.0.201203132050\r\nTi Mob SDK 2.0.0.v20120315091738 hash rec1c5584\r\nOSX Lion 10.7.3\r\niPad 1 OS 4.3.5, Galaxy Tab 10.1 OS 3.0", "comment": { "comments": [ { "id": "186706", "author": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Problem is caused by a brute-force implementation of tableview. Ticket TIMOB-7342 has been filed to fix this issue.\r\n\r\nOn some browsers, once you recieve this error, you will continually recieve this error until you force quit the browser (especially true on iOS devices). To force quit safari, long press the home button, long press the safari icon that pops up, and click the red x.", "updateAuthor": { "name": "bhughes", "key": "bhughes", "displayName": "Bryan Hughes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T15:19:29.000+0000", "updated": "2012-03-15T15:19:29.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }