{ "id": "61835", "key": "TIMOB-1203", "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": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-26T19:57:10.000+0000", "created": "2011-04-15T02:46:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "look1" ], "versions": [], "issuelinks": [ { "id": "19412", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "94532", "key": "TIMOB-9901", "fields": { "summary": "TiAPI: Review and clean up platform bugs and reduce bug count by 20%.", "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": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-16T22:05:27.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": "{html}
The following usecase demonstrates that setTimeout() periods of\n1000ms complete successfully for this specific code, whereas those\nwith 3000ms periods do not run.
http://pastebin.com/raw.php?i=4Fzdx1qG
I speculate that the reason for this is the script has completed\nexecution within the 3000ms timeout period, causing the timeout to\nbe disregarded. Conversely, 1000ms is long enough for the\ncommand/function inside setTimeout() to fire before the script\nfinishes.
Please do not rely on my previous assumptions of tabGroups being\nthe cause of the issue. Also, opening a window is not a reliable\nworkaround - it may have seemed to resolve the issue in some cases,\nbut I think this was simply due to the fact that doing so extended\nthe script execution time long enough for setTimeout to\ncomplete.
\nPlease note that investigation into the true cause of this issue\nis required - the script execution idea I stated above is just a\ntheory.
\nPlease also note Bill Dawson's ticket #3083\nregarding setTimeout, which may possibly be relevant.
\nOriginal poster noted that the setTimeout timer keeps on ticking\naway, as evident from the trace.
Assigning to Don for triage.