Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.
  1. #1
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    69
    Vote Rating
    1
    Perceptive is on a distinguished road

      0  

    Default Ext.TaskManager stops working after a while

    Ext.TaskManager stops working after a while


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.0.7
    Browser versions tested against:
    • Firefox 17.0.1
    • IE8
    • Chrome 23.0.1271.97
    Description:
    • Tasks in Ext.TaskManager stop working after ~45 minutes on Windows XP PCs.
    Steps to reproduce the problem:
    • Start a task using Ext.TaskManager on a Windows XP PC with an interval of 10000
    • Leave the task running for ~1 hour
    The result that was expected:
    • The task should continue to run every 10 seconds with no interruptions - this can be verified by looking at the log file generated by test.php
    The result that occurs instead:
    • The task stops running after ~45 minutes
    Test Case:
    index.html
    Code:
    <html>
    <head>
        <title>TaskManager</title>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../../ext-4.0.7/resources/css/ext-all.css">
        <script type="text/javascript" src="../../ext-4.0.7/ext-all-debug.js"></script>
    </head>
    <body>
        <script type="text/javascript">
        Ext.onReady(function(){
            var task = {
                run: function(){
                    Ext.Ajax.request({
                        url: 'test.php'
                    });
                },
                interval: 5000
            };
            Ext.TaskManager.start(task);
        });
        </script>    
    </body>
    </html>
    test.php:
    Code:
    <?php
    
    
    $filename = $_SERVER['REMOTE_ADDR'].".txt";
    
    
    $msg = date(DATE_RFC822)."\n";
    
    
    file_put_contents($filename,$msg,FILE_APPEND);
    
    
    ?>
    HELPFUL INFORMATION
    Operating System:
    • WinXP Pro

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Have you tried in a newer release?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Ext JS Premium Member
    Join Date
    Jun 2010
    Posts
    69
    Vote Rating
    1
    Perceptive is on a distinguished road

      0  

    Default


    Nope, only 4.0.7 - I notice that the TaskManager has been changed in later releases, so perhaps this fixes the problem. I'm not upgrading at the moment though, so I'll have to use the setInterval() function for the time being, which doesn't seem to have the same problem.

Thread Participants: 1