{ "id": "77550", "key": "TIMOB-4610", "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": "11359", "description": "Mobile 1.8.0 M06", "name": "Sprint 2011-27", "archived": true, "released": true, "releaseDate": "2011-07-11" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-07-12T07:52:15.000+0000", "created": "2011-07-06T17:23:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "regression" ], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:46:13.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": "App crashes when processing xml, usually at about 3 loops in.\r\nThis code crashes when you run it with 1.7.1 and works with 1.6.1. The customer has written the code this way so that they can have a delay between loops. If you remove the 'setTimeout' or 'getElementsByTagName' it will process the whole file without issues. No error in the console when it crashes.\r\n\r\nI have attached an xml file that you can use for testing if the one in the url doesn't exist.\r\n\r\nStep 1: run the code below\r\nStep 2: click the 'test' button\r\nStep 3: in the console you will see about 3 loops output\r\nStep 4: notice the app crash\r\n\r\n{code:title=\"app.js\"}\r\nvar win = Titanium.UI.createWindow();\r\nwin.open();\r\n\r\nvar ta = Ti.UI.createButton({\r\n\ttop: 50,\r\n\twidth: 200,\r\n\theight: 30,\r\n\tscrollable:false,\r\n\ttitle: \"test\"\r\n});\r\nwin.add(ta);\r\nta.addEventListener('click', function(e) {\r\n\tvar xmlPlacemarks;\r\n\tvar ptr = 0;\r\n\r\n\tfunction getNextCoordinate() {\r\n\t\tif ( ptr