-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory Leak on Modals after dismiss #16648
Comments
Can you please follow the issue template? Ionic 4.2.1 is not the ionic version, but the CLI version |
Apologies about the template; I edited the report. |
@Doehl we might already fixed this issue in master, next version should have it |
@doug1e I leave this open for needs reply so you can check with the next beta which is coming soon if the problem is solved and then it would be great if you can close this issue if it's fixed :) |
Good idea @paulstelzer |
I will, many thanks for all your help. I do appreciate it |
When is the next beta coming? Quite a few commits against |
If you can't wait, just fork and build the repo :) There are many new features and fixes. We hope to release beta.18 soon :) |
|
I cannot see something wrong in your screenshot. Where do you see the memory leak?? |
Hi Paul, Many thanks for your reply and congrats on the RC release. As far as I know the Detached HTMLElement is a memory leak, which can be seen at the screenshot. I believe, these leaks may easily add up during the life of the app. Cheers, Doug |
Hi ionic team, I wish you and your loved ones a wonderful 2019. I was wondering if this bug is planned to be fixed before the production version. My app uses toast messsages and popups quite a bit; hence, the memory leaks issue is a bit of a concern for me... Cheers, Doug |
Happy new year @doug1e! |
Hi Manu, I use ionic/angular Cheers, Doug |
Hi ionic team, Is there anything I can do to help with the debugging of this issue? Cheers, Doug |
Hi @manucorporat , Congrats on the ionic 4 release and thank you so much for the hard work. I have been working on a project that uses modals and toasts so I was wondering how you prioritize this bug. Do you think it will be looked at soon? The reason why I am asking this is to figure out whether to publish my app now... Although memory leaks causes issues, I am not sure how long I need to wait so wanted to check with you. Thanks again for your time on this and for the ionic 4 release. Cheers, Doug |
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. Thank you for using Ionic! |
Bug Report
Ionic version:
[x] 4.0.0-beta.13
Current behavior:
When Modal (pop up) is displayed and then dismissed, it leaved Detached HTMLElement (memory leaks) behind.
Expected behavior:
Modal dismiss should clean up the memory allocation
Steps to reproduce:
The sample given at the docs is enough to produce the problem. When you have larger components used as the base for the modal, the issue becomes more dramatic.
Related code:
The code to launch the modal:
export class HomePage {
constructor(public modalController: ModalController) {
}
}
Please find the component code below. The only added method is related to modal dismiss.
closeModal() {
this.modalController.dismiss();
}
Other information:
Ionic info:
The text was updated successfully, but these errors were encountered: