{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/10637","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/10637/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/10637/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/10637/events","html_url":"https://github.com/driftyco/ionic/issues/10637","id":211729765,"number":10637,"title":"50+ ionic-angular Toasts crashes on iOS","user":{"login":"chrisjdev","id":9042172,"avatar_url":"https://avatars0.githubusercontent.com/u/9042172?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisjdev","html_url":"https://github.com/chrisjdev","followers_url":"https://api.github.com/users/chrisjdev/followers","following_url":"https://api.github.com/users/chrisjdev/following{/other_user}","gists_url":"https://api.github.com/users/chrisjdev/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjdev/subscriptions","organizations_url":"https://api.github.com/users/chrisjdev/orgs","repos_url":"https://api.github.com/users/chrisjdev/repos","events_url":"https://api.github.com/users/chrisjdev/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjdev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-03T16:05:50Z","updated_at":"2017-03-03T19:41:13Z","closed_at":"2017-03-03T19:41:13Z","body":"**Ionic version:**  (check one with \"x\")\r\n[ ] **1.x**\r\n[x] **2.x**\r\n\r\n**I'm submitting a ...**  (check one with \"x\")\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/\r\n\r\n**Current behavior:**\r\nI wrote a small test program that creates 55 Toasts and displays them. It crashes around the 50th toast on my iPad Air. \r\n\r\n**Expected behavior:**\r\nDisplays all 55 Toasts back to back.\r\n\r\n**Steps to reproduce:**\r\n<!-- If you are able to illustrate the bug or feature request with an example, please provide steps to reproduce and if possible a demo using one of the following templates:\r\n\r\nFor Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview\r\n\r\nFor Ionic 2 issues - http://plnkr.co/edit/z0DzVL?p=preview\r\n-->\r\nSee Related Code, run on iOS device. Potentially increase number of toasts on a device newer than an iPad Air.\r\n\r\n**Related code:**\r\n\r\n```\r\nimport { Component } from '@angular/core';\r\nimport { Toast, ToastController } from 'ionic-angular';\r\n\r\nimport { NavController } from 'ionic-angular';\r\n\r\n@Component({\r\n    selector: 'page-home',\r\n    templateUrl: 'home.html'\r\n})\r\nexport class HomePage {\r\n\r\n    constructor(public navCtrl: NavController, public toastCtrl: ToastController) {\r\n\r\n    }\r\n\r\n    public runTest(): void {\r\n        console.log('test running.');\r\n        for (let i = 0; i < 50; ++i) {\r\n            let options: Object = {\r\n                message: 'Toast # ' + i,\r\n                duration: 3000,\r\n                position: 'bottom',\r\n                showCloseButton: true,\r\n            };\r\n            let toast: Toast = this.toastCtrl.create(options);\r\n            toast.present();\r\n        }\r\n        console.log('test complete.');\r\n    }\r\n}\r\n```\r\n\r\n**Other information:**\r\n<!-- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. -->\r\n\r\n**Ionic info:** (run `ionic info` from a terminal/cmd prompt and paste output below):\r\n\r\n```\r\n\r\nYour system information:\r\n\r\nCordova CLI: 6.4.0 \r\nIonic Framework Version: 2.1.0\r\nIonic CLI Version: 2.2.1\r\nIonic App Lib Version: 2.2.0\r\nIonic App Scripts Version: 1.1.3\r\nios-deploy version: 1.9.0 \r\nios-sim version: 5.0.13 \r\nOS: macOS Sierra\r\nNode Version: v6.1.0\r\nXcode version: Xcode 8.2.1 Build version 8C1002\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/284050716","html_url":"https://github.com/driftyco/ionic/issues/10637#issuecomment-284050716","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/10637","id":284050716,"user":{"login":"jgw96","id":8823093,"avatar_url":"https://avatars0.githubusercontent.com/u/8823093?v=3","gravatar_id":"","url":"https://api.github.com/users/jgw96","html_url":"https://github.com/jgw96","followers_url":"https://api.github.com/users/jgw96/followers","following_url":"https://api.github.com/users/jgw96/following{/other_user}","gists_url":"https://api.github.com/users/jgw96/gists{/gist_id}","starred_url":"https://api.github.com/users/jgw96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgw96/subscriptions","organizations_url":"https://api.github.com/users/jgw96/orgs","repos_url":"https://api.github.com/users/jgw96/repos","events_url":"https://api.github.com/users/jgw96/events{/privacy}","received_events_url":"https://api.github.com/users/jgw96/received_events","type":"User","site_admin":false},"created_at":"2017-03-03T19:41:13Z","updated_at":"2017-03-03T19:41:13Z","body":"Hello, thanks for using Ionic! `toast` is not meant to be opened this many times back to back, in fact im pretty sure generating any element this many times back to back would cause the webview to crash. Because of this I am going to close this issue for now."}}
{"actor":{"display_login":"jgw96"}}