{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/11570","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/11570/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/11570/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/11570/events","html_url":"https://github.com/driftyco/ionic/issues/11570","id":227281167,"number":11570,"title":"Ionic 3.1.1 MAJOR MEMORY LEAK in the most basic ionic 3 app.","user":{"login":"gitdisrupt","id":5187647,"avatar_url":"https://avatars1.githubusercontent.com/u/5187647?v=3","gravatar_id":"","url":"https://api.github.com/users/gitdisrupt","html_url":"https://github.com/gitdisrupt","followers_url":"https://api.github.com/users/gitdisrupt/followers","following_url":"https://api.github.com/users/gitdisrupt/following{/other_user}","gists_url":"https://api.github.com/users/gitdisrupt/gists{/gist_id}","starred_url":"https://api.github.com/users/gitdisrupt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitdisrupt/subscriptions","organizations_url":"https://api.github.com/users/gitdisrupt/orgs","repos_url":"https://api.github.com/users/gitdisrupt/repos","events_url":"https://api.github.com/users/gitdisrupt/events{/privacy}","received_events_url":"https://api.github.com/users/gitdisrupt/received_events","type":"User","site_admin":false},"labels":[{"id":504984817,"url":"https://api.github.com/repos/driftyco/ionic/labels/needs%20info","name":"needs info","color":"b60205","default":false},{"id":296092548,"url":"https://api.github.com/repos/driftyco/ionic/labels/platform:ios","name":"platform:ios","color":"0052cc","default":false},{"id":311009737,"url":"https://api.github.com/repos/driftyco/ionic/labels/v2","name":"v2","color":"313744","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-05-09T07:58:42Z","updated_at":"2017-05-18T15:40:33Z","closed_at":"2017-05-18T15:40:33Z","body":"**Ionic version:**  (check one with \"x\")\r\n[X ] **3.1.1**\r\n_running on iOS10_\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n[X ] bug report\r\n\r\n**Current behavior:**\r\nScrolling creates a terrible memory leak.\r\n\r\n**Expected behavior:**\r\nMemory should be released after scrolling.\r\n\r\n**Steps to reproduce:**\r\n\r\n`ionic start scrollingtest blank`\r\n\r\n**The ONLY modification made thereafter** was to add 10 paragraphs to the \"home\" page in src/pages/home/home.html, outlined below, albeit im only going to show 1 paragraph here:\r\n\r\n```\r\n<ion-content padding>\r\n  The world is your oyster.\r\n  <p>\r\n    If you get lost, the <a href=\"http://ionicframework.com/docs/v2\">docs</a> will be your guide.\r\n  </p>\r\n  <p>\r\n    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent convallis nisi at metus auctor, nec egestas mauris vestibulum. Curabitur id pretium massa. Vestibulum maximus sagittis imperdiet. Cras pretium dui a dolor scelerisque iaculis. Fusce convallis velit in mi ultrices, ac imperdiet arcu pulvinar. Sed ornare luctus nulla a suscipit. Praesent pulvinar quis quam ac tristique. Vivamus id nibh sed risus tincidunt hendrerit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse egestas sapien quis orci tempor finibus.\r\n  </p>\r\n\r\n<!-- note, i added the same paragraph 10 times in-order to test scrolling, just seems redundant to paste them all in this issue report -->\r\n```\r\nok ... then run: `ionic build --prod`\r\n\r\nThen open the ios app in xcode, and test run it on an actual device running iOS 10.\r\n\r\nThe app loads and displays the \"home\" page.\r\n\r\n_While running, select the \"debug navigator\" tab, and then select \"memory\" to monitor memory usage._\r\n\r\nNext, just scroll the page up and then down continuously and it adds approximately ~1.5mb of memory usage with every scroll.\r\n\r\nThat memory is **NEVER** released after scrolling has ended. Eventually the app will crash due to this issue.\r\n\r\nScreen shot attached after scrolling up then down, then up etc etc approximately 30 times:\r\n![test](https://cloud.githubusercontent.com/assets/5187647/25840895/b880eeb8-346b-11e7-9776-2741efda1b25.jpg)\r\n\r\n**Ionic info:** (run `ionic info` from a terminal/cmd prompt and paste output below):\r\n\r\n```\r\nCordova CLI: 6.5.0 \r\nIonic Framework Version: 3.1.1\r\nIonic CLI Version: 2.2.3\r\nIonic App Lib Version: 2.2.1\r\nIonic App Scripts Version: 1.3.7\r\nios-deploy version: 1.9.1 \r\nios-sim version: 5.0.13 \r\nOS: macOS Sierra\r\nNode Version: v7.9.0\r\nXcode version: Xcode 8.3 Build version 8W120l\r\n```\r\nNote, i have tried a further test with the new WKWebView vs the UIWebView, and while initial memory usage is much lower, the memory increases during scrolling still persist.\r\n\r\n\r\n"}}
{"actor":{"display_login":"jgw96"}}