1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    34
    Vote Rating
    -1
    urmilsetia is an unknown quantity at this point

      0  

    Default Unanswered: Memory crash + Nestedlist + treeStore + ios

    Unanswered: Memory crash + Nestedlist + treeStore + ios


    Hi,

    We have a complex ios app built with Sencha Touch 2.

    We are using Nestedlisted + treestore to show data. It goes till 20 Levels in depth and some 10K records.

    After loading the store once, it fails in iphone 3GS first time itself. In iphone4S it run's once however second time crashes with memory warning.

    We have come to a stand-still here. As we and our client is expecting to scale the above mentioned numbers further.

    Please advice how to solve this blocker!

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    146
    Answers
    4
    Vote Rating
    10
    Möhre will become famous soon enough

      0  

    Default


    You are not alone:
    http://www.sencha.com/forum/showthread.php?241196-Memory-Issue-Ipad-Safari
    (there is more like that, simply search for memory or crash).

    10k is way to much, even 1k.
    So the simple advice is to reduce data and levels.
    Redesign your app, add some filters so only currently needed data is loaded etc.

    Maybe 2.1 will bring some better memory handling:
    http://www.sencha.com/forum/showthre...es-Touch-2.0.x

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Germany
    Posts
    146
    Answers
    4
    Vote Rating
    10
    Möhre will become famous soon enough

      0  

    Default


    Sencha Touch 2.1 Beta is available, so you can test yourself if it has a better memory handling:
    http://www.sencha.com/forum/announcement.php?f=92&a=36

  4. #4
    Sencha User
    Join Date
    Jul 2012
    Posts
    34
    Vote Rating
    -1
    urmilsetia is an unknown quantity at this point

      0  

    Default


    Möhre, thanks for the reply.! Let me try with 2.1Beta. Still that we can't deliver to customer.

  5. #5
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,004
    Answers
    3489
    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


    2.1.0 beta 3 (when it comes out soon) will have an infinite List that can handle lots of data. NestedList of course uses child Lists so this should be getting better when beta 3 comes out. There is no setup, List will use it by default.

    I changed my Ext.ux.touch.grid component to extend List to get this infinite feature and I tested just yesterday having 5,000 records in the store and it performed quite well actually!
    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.

  6. #6
    Sencha User
    Join Date
    Jul 2012
    Posts
    34
    Vote Rating
    -1
    urmilsetia is an unknown quantity at this point

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    2.1.0 beta 3 (when it comes out soon) will have an infinite List that can handle lots of data. NestedList of course uses child Lists so this should be getting better when beta 3 comes out. There is no setup, List will use it by default.

    I changed my Ext.ux.touch.grid component to extend List to get this infinite feature and I tested just yesterday having 5,000 records in the store and it performed quite well actually!
    mitchellsimoens, can u fill ur list with 40k records and 14 fields. Then share the result. Also we discovered that our app crashes in data staging for treestore having 6k records and 14 field.