I’ve got a nasty memory leak somewhere. As I navigate around, memory grows rapidly causing the app to crash after a short period of use. I’ve gone through my code and so far haven’t found anything that I recognize as a potential cause for a memory leak, but I’m not used to debugging memory issues in JavaScript. So my questions - not necessarily strictly related to Ionic:
- Any recommended resources or suggestions for debugging JS memory issues?
- Is there anything specific with Ionic to keep in mind for memory use?
- My app uses a side menu and a tabbed interface. The side menu is the same for all tabs. I’m using Angular, and I have separate controllers for all my views. There is one big service which holds common methods and data for all my controllers. I make heavy use of promises and thought perhaps the promises from the service to the controller might be throwing off the reference counter, but from what I’ve tested so far, that doesn’t seem to be the case, though I could be missing something.
Any tips from any of you on tracking down memory issues or plugging leaks when moving between views?