-
Notifications
You must be signed in to change notification settings - Fork 373
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 leaks when changing tabs #4484
Comments
Hello @tjmurray, |
Vue 3 |
Unfortunately there is no SurveyJS Creator for Vue3. Could you please check - what survey-creator library are you using and what is the version of this library? |
"survey-creator-knockout": "1.9.100", |
…r - dispose computed updaters
…r - added onDispose callback param
…r - dispose list model
…r - reset list container element ref
…r - unsubscriptions
Resolved surveyjs/survey-creator#4484 - memory leaks in survey creator
Work for surveyjs/survey-creator#4484 - fixed memory leaks in Angular
* Resolved #4484 - memory leaks in survey creator * Work for #4484 - memory leaks in survey creator * Resolved #4484 * Work for #4484 - fixed leaks in Angular * Fixed lint * Work for #4484 - fixed f-tests in react * Work for #4484 - fixed f-tests in knockout * Work for #4484 - fixed f-test - test tab for mobile devices * Work for #4484 - dispose theme tab model --------- Co-authored-by: tsv2013 <tsv2013@noreply.github.com>
Are you requesting a feature, reporting a bug or ask a question?
Bug - memory leak
What is the current behavior?
Every time you switch tabs in the survey creator, e.g. back and forth between 'Designer' tab and 'Preview' tab, the app leaks memory continuously after every change. My current tab where I have been editing a form is using over 1GB of memory due to this leak. Other tabs ('Logic' and 'JSON Editor') may also be affected but I am not sure.
What is the expected behavior?
No memory leak when switching tabs.
How would you reproduce the current behavior (if this is a bug)?
Create a form of decent length (the higher the form length/complexity, the higher the memory leaking), then while in the survey creator, open Chrome memory profiler and observe the memory leak accumulate as you toggle back and forth between 'Designer' tab and 'Preview' tab. Toggle quickly back and forth to see the memory rise especially quickly.
Provide the test code and the tested page URL (if applicable)
Tested page URL: No public URL available
Test code: for brevity I have included only a short/simple form example below, but this issue gets dramatically worse with larger forms. With this example you should see the memory leak by a few MB every time the tab is toggled, but for a larger form it is 10s of MBs.
Specify your
Screenshot of issue
Screenshot of Chrome profiler after toggling tabs ~100 times. Started at ~20MB and ended at 377MB:
The text was updated successfully, but these errors were encountered: