Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3292 in a recent build.
  1. #1
    Sencha User VladimirTechMan's Avatar
    Join Date
    Jun 2012
    Location
    Russia
    Posts
    50
    Vote Rating
    4
    VladimirTechMan is on a distinguished road

      0  

    Default Ext.data.JsonP.abort() crashes application due to infinite recursion

    Ext.data.JsonP.abort() crashes application due to infinite recursion


    Ext version tested:
    • Sencha Touch 2.0.1.1
    • Sensha Touch 2.1.0-b2
    Browser versions tested against:
    • Mobile Safari (iOS 5.1.1)
    Description:
    • When called, method abort() of Ext.data.JsonP crashes the application
    Steps to reproduce the problem:
    • Create a request with Ext.data.JsonP.request()
    • Call Ext.data.JsonP.abort() on that request before the request is completed
    The result that was expected:
    • The request is aborted successfully
    The result that occurs instead:
    • The application crashes with an error pointing to stack overflow
    Root cause and fix:

    Inside method Ext.data.JsonP.abort() there is a "typo": Instead of calling handleAbort(), the abort() method calls itself again and again (till the stack is overflown).

    Exactly, the following code fragment in the abort() method (inside the src/data/JsonP.js file):
    Code:
        ...
        if (request) {
            if (!request.id) {
                request = requests[request];
            }
            this.abort(request);
        } else { ...
    needs to be changed this way:
    Code:
        ...
        if (request) {
            if (!request.id) {
                request = requests[request];
            }
            this.handleAbort(request);
        } else { ...

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,790
    Vote Rating
    833
    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


    Thanks for the report.
    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
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This has been fixed for the next release. Nice catch.

    Sencha Inc

    Jamie Avins

    @jamieavins

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