-
Notifications
You must be signed in to change notification settings - Fork 1k
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 #2581
Comments
I can't seem to reproduce a memory leak with Chrome Version 68.0.3440.106 (Official Build) (64-bit), Chromium V8 6.8.275.26. I used your exact code plus a small script addition to cycle in and out of Page 2 which resulted in a 3MB fluctuation in the heap that was garbage collected fairly regularly with a mass collection near the start of the profiling. The flat line at the end corresponds to Chrome opening the captured profile, hence the large spike in CPU (not sure why that portion is included in the profiling timeline, but it's there). The timeline shows 70 seconds (70000ms on the timeline) of running which means 70 cycles of pushing and popping the navigator. My tests used the heap profiling tool in Chrome. Extra code: <script>
setInterval(function() {
myNavigator.pushPage('page1.html');
setTimeout(function() {
myNavigator.popPage();
}, 500);
}, 1000);
</script> Note: The 800+ errors are from the navigator being in a transition state when the next Are you able to point me to a specific portion of the heap snapshot, otherwise? |
If you look your JS Heap that grow. Very light because it's a very small content. But if you have a more big content is really more significant. |
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed. |
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem. |
Environment
Onsen UI Version:
Framework:
Framework binding:
Additional libraries:
Platform:
Encountered problem
Memory leak on the navigator.
When you return to the previous page, a lot of components stay in memory.
How to reproduce
You can repeat these operations many time, and the memory usage grow.
page-sample.html
Thanks for you help.
The text was updated successfully, but these errors were encountered: