Terminated due to Memory Pressure!!??

6 posts, 0 answers
  1. Bassanio
    Bassanio avatar
    11 posts
    Member since:
    Sep 2013

    Posted 25 Feb 2014 Link to this post

    Added approx. 600 records into ListView, only contain company names. Got "Terminated due to Memory Pressure" on iOS7, but work properly on iOS6.

    Anything I can do?
  2. Bassanio
    Bassanio avatar
    11 posts
    Member since:
    Sep 2013

    Posted 25 Feb 2014 Link to this post

    Forgot to tell it was wrapped in Phonegap. The error appeared when the APP started and began to load data into ListView
  3. Kendo UI is VS 2017 Ready
  4. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 26 Feb 2014 Link to this post

    Hello Bassanio,

    Since you are loading large number of items in the listview, can you check whether endless scrolling or local data virtualization is applicable for your scenario? Thus you should be able to optimize the performance of the listview.

    Regards,
    Sebastian
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Bassanio
    Bassanio avatar
    11 posts
    Member since:
    Sep 2013

    Posted 26 Feb 2014 in reply to Sebastian Link to this post

    Endliess Scrolling could make the ListView work, even when scrolled to the last row. However, Xcode gave "Terminated due to Memory Errror" (not Memory Pressure this time) when I tried to Filter it.

    It only happens to Phonegap when running on iOS7, no problems on iOS6, and of course no problem under desktop Safari.

    The most scary part is when you complete development in desktop environment smoothly but suddenly found this problem after wrapped into Phonegap and run on iOS7.

    I have attached the Instrument showing the moment "Terminated due to Memory Pressure" appear when debugging on my iPad Air. Thanks!
  6. Bassanio
    Bassanio avatar
    11 posts
    Member since:
    Sep 2013

    Posted 26 Feb 2014 in reply to Sebastian Link to this post

    Okay, I have run into some display problem while using filter with endless scrolling.

    http://jsbin.com/fomuq/1/edit

    Scroll the List View to 2/3 and apply the filter, ummm.....I think I need to find a way to scroll the List View back to top after applying the filter. However, refresh() not do. I found this "kendoMobileApplication.view.scroller.element.find(".km-scroll-container").css("-webkit-transform","");" in another thread but also not working.
  7. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 27 Feb 2014 Link to this post

    Hi Bassanio,

    you can can use the mobile scroller reset method for that purpose.

    Regards,
    Petyo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready