You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug: light dom custom element with comment node causes retainer #28189
I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v7.x
Current Behavior
When navigating between pages that should not be reused, there are leaks in both nodes and listeners, which makes the application unusable after a while.
Expected Behavior
Pages should be disposed correctly
Steps to Reproduce
Reproducible even inside your ionic conference app example. Simply navigate between schedule and support pages and watch the performance monitor.
It is a production application that I can not really share, but It happens consistently every time I close a page that should be destroyed. Same as in the example app.
Any minimal reproduction you can provide will make it easier for us to diagnose and potentially fix the issue. Otherwise, I'll keep working through the conference app. However, it is a big app so it will likely delay any results.
Thanks for testing. I spoke with the Stencil team, and it sounds like there may be multiple bugs in Stencil that need resolving. I'll work with them to see if we can find a good resolution here.
Reacted by Adam Teršl, Alexander Harding and Alessio Acella
Lately I look a bit into the memory leaks again. There are leaks everywhere caused by using ionic components. I dont rly know what to do, because the application gets unusable after a while. It is ment to be running for many hours, but now it has to be restarted often to be usable.
Thanks for testing. I spoke with the Stencil team, and it sounds like there may be multiple bugs in Stencil that need resolving. I'll work with them to see if we can find a good resolution here.
@liamdebeasi, are there Github issues for these Stencil bugs?
@terslada@aeharding we have just published a fix for this in Stencil and will continue to work with the Ionic team to get this updated in Ionic Framework as well.
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.
Activity
liamdebeasi commentedon Sep 18, 2023
Thanks for the report. I can reproduce this on the latest version of Ionic, but I need to take a closer look to understand why this is happening.
Is this happening in an app you are building?
terslada commentedon Sep 18, 2023
Yes, it does.
liamdebeasi commentedon Sep 18, 2023
Do you have a minimal reproduction of the issue happening in that app?
terslada commentedon Sep 18, 2023
It is a production application that I can not really share, but It happens consistently every time I close a page that should be destroyed. Same as in the example app.
liamdebeasi commentedon Sep 18, 2023
Any minimal reproduction you can provide will make it easier for us to diagnose and potentially fix the issue. Otherwise, I'll keep working through the conference app. However, it is a big app so it will likely delay any results.
41 remaining items
terslada commentedon Dec 8, 2023
Great, I got rid of the footer because of this. looking forward to a fix.
Thanks
terslada commentedon Feb 6, 2024
Any news on this?
liamdebeasi commentedon Feb 6, 2024
Can you give this a try in Ionic 7.7.0? The underlying Stencil bug should have been resolved in Stencil 4.11.0.
terslada commentedon Feb 6, 2024
Sadly still behaves the same way
liamdebeasi commentedon Feb 6, 2024
Thanks for testing. I spoke with the Stencil team, and it sounds like there may be multiple bugs in Stencil that need resolving. I'll work with them to see if we can find a good resolution here.
terslada commentedon Feb 16, 2024
Lately I look a bit into the memory leaks again. There are leaks everywhere caused by using ionic components. I dont rly know what to do, because the application gets unusable after a while. It is ment to be running for many hours, but now it has to be restarted often to be usable.
aeharding commentedon Feb 29, 2024
@liamdebeasi, are there Github issues for these Stencil bugs?
liamdebeasi commentedon Feb 29, 2024
The issues that are potentially related are stenciljs/core#5181 and stenciljs/core#5172. The Stencil team is still investigating these issues.
christian-bromann commentedon Jan 10, 2025
@terslada @aeharding we have just published a fix for this in Stencil and will continue to work with the Ionic team to get this updated in Ionic Framework as well.
fix(deps): update npm packages (#300)
ionitron-bot commentedon Jan 10, 2026
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!