-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 #1341
Comments
I also confirm that: After the first destruction After the second destruction cc @Reinmar |
This is a regression because we tested for that about 2 years ago and there were no leaks at all. |
I think that's why we should make it a part of every major release. |
Yes. We should have a regression test for that. As a general rule β since we have a bug, we must have a test. Ideally β automated. AFAIR there was some API available for making snapshots and accessing such performance information. Even if it's in just one browser, let's have a test for that. |
Sorry! What is |
@minhtranite Hi the good news is that we identified what was the problem and it will be fixed soon. The iteration 22 is a current one so the next official release should have this fix included. |
@Reinmar & @pomek: Some technical question about Travis integration. The tests uses Google Chrome run with additional flag in order to expose garbage collector for tests. The tests itself are generic one that runs create/destroy couple of times and compares used JS heap size after first run and after the last. After some fiddling with them locally I've identified that 1 MB is sufficient to both minimize false positives and to actually catch a memory leaks automatically. Unfortunately memory measurements are repeatable to some extent. To minimize errors the garbage collecting step is necessary. Also I think that running memory leak tests only for Chrome is sufficient to detect them. The question is how to enable them on CI? Note: there will be dedicated manual test pages with instructions on how to check memory usage. Note that memory leak tests are long running - I've added dome timeouts before crate/destroy steps in order to have everything run and allow garbage collector to work. Also as memory test aren't 100% reproducible with used memory the failed test is retried to eliminate false positives. The test itself take about 6-7 seconds to complete due to timeouts. We can either:
ps.: The tests are skipped when the Edit: It looks like the |
There was one more component causing memory leaks. Probably we're going to be safe with |
Thank you guys! |
Other: Added the `'--js-flags="--expose-gc"'` flag to Karma Chrome launcher configuration. See ckeditor/ckeditor5#1341.
Fix: There should be no memory leaks when the editor is created and destroyed. Created helpers for testing memory usage. Closes ckeditor/ckeditor5#1341.
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Fix: There should be no memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Tests: Added a test checking memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Tests: Added a test checking memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Tests: Added a test checking memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Tests: Added a test checking memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Tests: Added a test checking memory leaks when the editor is created and destroyed (see ckeditor/ckeditor5#1341).
Is this a bug report or feature request? (choose one)
π Bug report
π» Version of CKEditor
<script src="https://cdn.ckeditor.com/ckeditor5/11.1.1/balloon/ckeditor.js"></script>π Steps to reproduce
β Expected result
Memory not increment
β Actual result
Memory increment each time create and destroy
π Other details that might be useful
The text was updated successfully, but these errors were encountered: