Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    May 2011
    Posts
    25
    Vote Rating
    0
    invalidoyt is on a distinguished road

      0  

    Default [FIXED] Build 439 - Loops my files

    [FIXED] Build 439 - Loops my files


    Hello all,

    Just a moment ago, I have updated my Sencha Architect to the build 439. My app used to work pretty well just before the update. After the update, I deployed the app with a very minor change (just an icon url). Then my app crashed on both Chrome and Firefox -not tested on others.

    On fiddler, here is how it seems:

    ss.jpg

    If you keep the page on, the loop of TourModel and TourCategoryModel goes on until the software crashes.

    Any ideas?

  2. #2
    Sencha User
    Join Date
    May 2011
    Posts
    25
    Vote Rating
    0
    invalidoyt is on a distinguished road

      0  

    Default changes in model production

    changes in model production


    just compared my backup"s model files and the model files produced by build 439.

    Build 439 produces model files with "requires" config, which was not possible and could not be done before this build. Now new model files have "requires" config with relations to other model files. I havent specified any "requires" config, it is there automatically and i cannot change it. I have to remove the requires config manually on every deploy...

    Suggestions?

  3. #3
    Sencha User
    Join Date
    May 2011
    Posts
    25
    Vote Rating
    0
    invalidoyt is on a distinguished road

      0  

    Default autoLoad on hasmany association

    autoLoad on hasmany association


    I think I found what was wrong.
    On my hasMany associations of my models, I had "autoload" true. Removed it and loop is gone. (i had cross-references between my models, I think this is why Extjs tried to go back and forth again and again).

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    117
    Vote Rating
    11
    Sottilde will become famous soon enough

      0  

    Default


    This is a very serious bug! Turning off autoLoad does not fix the issue for me, and requires[] statements are generated for belongsTo associations as well. I have a number of infinite loading loops in my app now and it is totally useless.

    This needs to be fixed ASAP as it completely breaks projects!

  5. #5
    Sencha User
    Join Date
    Jun 2011
    Posts
    350
    Vote Rating
    1
    bharatn is on a distinguished road

      0  

    Default


    Could you please attach a use case where the requires is causing loading to go in a loop?
    Thanks
    Bharat Nagwani
    Sencha Designer Development Team

  6. #6
    Sencha User
    Join Date
    May 2011
    Posts
    25
    Vote Rating
    0
    invalidoyt is on a distinguished road

      0  

    Default


    @Sottilde, can you please confirm that you dont have any cross-associations between your models? Example:

    Model1 belongsTo Model2
    Model2 hasMany Model1

    If you have such a scheme, can you try removing one of associations? This may worth a try. My app is a little bit complex; I would have to create the issue by trying many things again. I will try to reproduce the issue when I have a more suitable time. Perhaps Sottilde could do this for us.

  7. #7
    Sencha User
    Join Date
    Feb 2012
    Posts
    117
    Vote Rating
    11
    Sottilde will become famous soon enough

      0  

    Default


    I do have cross-associations. I was not aware this was a bad thing to do. It has been working for me and in production for weeks now.

    Simple use case:

    Create two models.

    Model A hasMany Model B.
    Model B belongsTo Model A.

    Removing the cross-associations fixes the problem because the requires statement goes away. But I do not want to remove the cross-associations.

  8. #8
    Sencha - Architect Dev Team jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    567
    Vote Rating
    20
    jjohnston will become famous soon enough jjohnston will become famous soon enough

      0  

    Default


    Circular model associations are perfectly valid, and the code that Architect generates should allow it.

    I've tried creating a simple test with A->B and B->A associations and cannot reproduce the loading loop. Perhaps there's something else in play, can you attach an archive of the project in question?
    Jason Johnston
    @lojjic
    Sencha Architect Development Team

  9. #9
    Sencha User
    Join Date
    Feb 2012
    Posts
    117
    Vote Rating
    11
    Sottilde will become famous soon enough

      0  

    Default


    Quote Originally Posted by jjohnston View Post
    Circular model associations are perfectly valid, and the code that Architect generates should allow it.

    I've tried creating a simple test with A->B and B->A associations and cannot reproduce the loading loop. Perhaps there's something else in play, can you attach an archive of the project in question?
    Are you not seeing that Model A requires Model B and vice-versa?

    I am not clear on why these requires statements are being generated now. They were not being generated in previous versions and that worked fine. IMO they should all be stated in Application and loaded then, instead of this spaghetti loading system.

    I don't see why Ext.Loader wouldn't be able to detect that Model A is already loaded when loading Model B.

    Is the designer.feedback@sencha email address still open? I am not comfortable with putting our production code on an open forum.

  10. #10
    Sencha - Architect Dev Team jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    567
    Vote Rating
    20
    jjohnston will become famous soon enough jjohnston will become famous soon enough

      0  

    Default


    I do see the requires are generated in the code like you say. But when I open it in a browser I do not get the loading loop like your screenshot, it loads each model file only once.

    Yes that email address is still open.
    Jason Johnston
    @lojjic
    Sencha Architect Development Team