IONIC iOS startup memory leak


#1

Hi

Recently I’ve noticed my app is sometimes leaking memory at startup. I don’t know what is causing it. I’ve tried debuggin with gapdebug (timeline), but still no luck. Is there any other method to find the leak?

Some info:

My plugins

cordova-plugin-app-event 1.2.0 "Application Events"
cordova-plugin-app-version 0.1.8 "AppVersion"
cordova-plugin-badge 0.7.2 "Badges"
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-customurlscheme 4.1.5 "Custom URL scheme"
cordova-plugin-device 1.1.1 "Device"
cordova-plugin-file 4.1.1 "File"
cordova-plugin-file-transfer 1.5.0 "File Transfer"
cordova-plugin-inappbrowser 1.2.1 "InAppBrowser"
cordova-plugin-network-information 1.2.0 "Network Information"
cordova-plugin-splashscreen 3.2.2-dev "Splashscreen"
cordova-plugin-statusbar 2.1.2 "StatusBar"
cordova-plugin-whitelist 1.2.1 "Whitelist"
cordova-plugin-x-socialsharing 5.0.11 "SocialSharing"
cordova-sqlite-storage 0.8.5 "Cordova sqlite storage plugin (core version)"
ionic-plugin-keyboard 2.0.1 "Keyboard"
phonegap-plugin-push 1.6.1 "PushPlugin"

Ionic info:

Cordova CLI: 6.0.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
ios-deploy version: 1.8.4 
ios-sim version: 5.0.6 
OS: Mac OS X El Capitan
Node Version: v5.4.1
Xcode version: Xcode 7.3 Build version 7D175 

I sometimes see the memory is building up in xcode and later the app crashes.

Any help?


#2

I had the same issue, however mine was caused because of the version of cordova-ios. I was using 4.0.1 but when I upgraded 4.1.0 the issue no longer occurred.

Check cordova’s post here: https://cordova.apache.org/announcements/2016/03/02/ios-4.1.0.html