Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-22145

[Flash Player 2500755] The timeout always occurs after 60 sec. whatever the value of application.scriptTimeLimit, and the timeout exception message wrongly says the script executed longer than the default timeout period of 15 seconds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • Adobe Flex SDK Previous
    • None
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:

      1. Run testtimeoutlimit.mxml from the attached project in debug mode (such that it prints debug traces in the console - however the issue also exists in non-debug mode).
      2. Click on the unique button of the application.
      3. Check the traces in the console.

      Actual Results:

      The console shows the following debug traces:
      <<<<<<<<<<<<<<<<<<<<<<
      Long computation started...
      Got exception after spending 60 seconds. Exception stack trace:
      Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
      >>>>>>>>>>>>>>>>>>>>>>>

      Expected Results:

      The console should show the following debug traces:
      <<<<<<<<<<<<<<<<<<<<<<
      Long computation started...
      Got exception after spending 10 seconds. Exception stack trace:
      Error: Error #1502: A script has executed for longer than the timeout period of 10 seconds.
      >>>>>>>>>>>>>>>>>>>>>>>

      Workaround (if any):
      Found none.

      Additional notes:

      There seem to be 2 issues:

      1/ The scriptTimeLimit parameter of the application has no effect on the actual timeout duration. Changing the value of scriptTimeLimit in the attached testtimeoutlimit.mxml has no effect on the actual timeout duration, which seems to be always 60 sec.

      2/ The timeout exception message is misleading. It always says that "the script has executed for longer than the default timeout period of 15 seconds.", while in fact the script executes for 60 seconds with or without application.scriptTimeLimit specified with any duration.

      Explanation of the attached test program: it contains a button which calls a function which does an infinite loop inside a try/catch. The catch block prints the exception message and the duration since the beginning of the execution of the function.

      Reproduced on Windows XP, not tested on other platforms.
      Reproduced with Flex 4.0 build 10485.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: