Bump. Issue discovered in 4.2.1 (iPhone 3G)
Hi all --
Working on an ST2 app for deployment (via Phone Gap) stretching down to 4.2.1 and am seeing memory exceptions (level 1 and 2) before the UIWebkitView is fully loaded.
I've followed the steps above, but the app crashes before the app is loaded. Would love to help you guys diagnose this issue. It looked like the microloader was the issue, but I used "sencha build package"and saw no improvement (unlike the previous commenter.)
Wondering what kind of info you can use from me to get to the root of this?
I've done the following:
tested Phone Gap's default page alone. Works
tested Phone Gap's default page with the sample ST2 app built using sencha build. Works
tested Phone Gap + my basic MVC build. Fails
tested Phone Gap + current app. Fails
One note: I'm currently working on deploying via Sencha Native Packaging, but have encountered issues there as well...
Here is what my app.js file looks like:
Code:
Ext.application({
name: 'app',
requires: [
'Ext.chart.Chart',
'Ext.MessageBox'
],
profiles: ["Phone"],
models: [
"Zone",
"NodeEnergyType",
"EnergyLoad",
"NESystemDemand",
"NodeInfo",
"UserInfo",
"SystemCondition"
],
controllers: [
"About",
"Zone",
"Wizard",
"Search",
"NewEngland",
"Local",
"FM",
"Main"],
views: [
'Main',
'About',
'NE',
'FuelMix',
'NE.PriceMap',
'NE.SystemConditions',
'NE.SystemLoad',
'Local',
'Zone',
'zone.Intro',
'RtPrices',
'RtSysConditions',
'chart.Pie',
'chart.Chart',
'chart.EnergyLoad',
'reusable.StaticPage',
'reusable.SystemDemand',
'reusable.TitleArea',
'reusable.LastUpdated',
'reusable.toolbar.NavBar',
'reusable.toolbar.searchBar'
],
stores: [
'chart.Pie',
'chart.Chart',
'zone.Prices',
'EnergyLoad',
'NESystemDemand',
'SystemCondition'
],
launch: function() {
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
//Ext.Msg.confirm('application loaded');
// Initialize the main view
console.log('updated view');
},
onUpdated: function() {
Ext.Msg.confirm(
"Application Update",
"This application has just successfully been updated to the latest version. Reload now?",
function(buttonId) {
if (buttonId === 'yes') {
window.location.reload();
}
}
);
}
});