PDA

View Full Version : Memory crash + Nestedlist + treeStore + ios



urmilsetia
4 Sep 2012, 11:18 PM
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!

sfreeman
4 Sep 2012, 11:27 PM
I'm no expert but that's pretty big for a sencha app. We've run into some of the same types of issues with clients wanting way more info that should be available on a mobile in there.

We ended up storing the info in the HTML SQL db and querying them out as we need them rather than trying to put all the records in a sencha store and helped a lot. Then when they added more records, discovered putting indexes on the tables made a huge improvement as well.

Haven't tried the SQL proxy in 2.1 yet but that might be another option. We also tend to avoid the tree store since it's rather awkward and use our own containers with back buttons and such to get better control over the experience.

urmilsetia
5 Sep 2012, 4:20 AM
No HELP!! I think sencha is becoming a headache after all.

Really Sad.!

urmilsetia
5 Sep 2012, 4:27 AM
ON Calling "remove" on treeStore. The SENCHA API FAILS.

At line no. 1561 in sencha-touch-all-debug.js

urmilsetia
5 Sep 2012, 10:07 AM
ON Calling "remove" on treeStore. The SENCHA API FAILS.

At line no. 1561 in sencha-touch-all-debug.js

mitchellsimoens
6 Sep 2012, 8:33 AM
You wait 5 hours before complaining no one is helping you? And you also open duplicate posts? http://www.sencha.com/forum/showthread.php?241193-Memory-crash-Nestedlist-treeStore-ios