Hybrid View

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-5496 in a recent build.
  1. #1
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,114
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default [4.1B3] TaskManager doesn't break on runtime errors, but causes infinite loop

    [4.1B3] TaskManager doesn't break on runtime errors, but causes infinite loop


    REQUIRED INFORMATION


    Ext version tested:
    • Ext 4.1 Beta3

    Browser versions tested against:
    • FF3 (firebug 1.3.0.10 installed)

    DOCTYPE tested against:
    • ____

    Description:
    • If I run a js function that produces a runtime error with the taskmanager, the interval is ignored and an infinite loop is the result. This is very annoying while debugging, especialy if the runtime error is caused by an Ajax request

    Steps to reproduce the problem:
    • Run the sample and see the log in firebug

    The result that was expected:
    • The application or TaskManager should break

    The result that occurs instead:
    • It loops

    Test Case:

    Code:
        
    function withError() {
        
        console.log('function with error');
        var error = undefinedVar;
    }
    
    
    Ext.TaskManager.start({
        scope: this,
        run: withError,
        interval: 4000
    });

  2. #2
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,339
    Vote Rating
    132
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    Thanks for the report. I've opened a ticket for this.

    The expected behavior should match that of setInterval given the same callback function should it not?

    The goal of TaskRunner is just to reduce the number of timers managed by the browser since they can be expensive (esp on old IE).
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

  3. #3
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,114
    Vote Rating
    30
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    Yes, with window.setInterval the interval is not ignored. That is much better while debugging.


    Code:
    function withError() {
    
        console.log('function with error');
        var error = undefinedVar;
    }
    
    
    window.setInterval(withError, 4000);

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi