Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-397] setInterval bug

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:52:55.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.3.0
ComponentsiOS
Labelsn/a
ReporterNolan Wright
AssigneeJeff Haynie
Created2011-04-15T02:28:40.000+0000
Updated2011-04-17T01:52:55.000+0000

Description

If you run setInterval repeatedly with a low interval (100 milliseconds or less), it eventually stops firing

Comments

  1. Nolan Wright 2011-04-15

    check set interval test under platform. i fire every 10 milliseconds and update the count on the UI. it is sometimes are to reproduce (i.e., sometimes the count gets as high as 14,000 before stopping)

  2. Jeff Haynie 2011-04-15

    note that granularity of less than 30ms it seems is not guaranteed on iphone scheduler.

  3. Nolan Wright 2011-04-15

    Blain - we need this one fixed

  4. Jeff Haynie 2011-04-15

    (from [6e6faeece13e88d360a5b9fd50d39fafe8d6d89d]) Closes #397 and hopefully stops other race conditions http://github.com/appcelerator/titanium_mobile/commit/6e6faeece13e88d360a5b9fd50d39fafe8d6d89d"> http://github.com/appcelerator/titanium_mobile/commit/6e6faeece13e8...

JSON Source