Skip to content
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

TreeView template memory leak on changes in observable #5226

Closed
IvanDanchev opened this issue Aug 20, 2019 · 1 comment
Closed

TreeView template memory leak on changes in observable #5226

IvanDanchev opened this issue Aug 20, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@IvanDanchev
Copy link
Contributor

IvanDanchev commented Aug 20, 2019

Bug report

HtmlPage1.zip

Reproduction of the problem

  1. Run the attached page in the browser.
  2. Take a 20 sec long heap snapshot. During these 20 sec click the "change" button to make changes to a specific node's data in the observable.

Current behavior

Increasing number of detached span elements: screenshot
Memory consumption increases with every change: screenshot

There are no detached span elements if the span within the template does not have a data attribute set.
from:

<span data-bind="text: treetext"></span>

to:

<span>#=item.treetext#</span>

Expected/desired behavior

Environment

  • Kendo UI version: 2019.2.619
  • jQuery version: x.y
  • Browser: [all ]
@PekoPPT
Copy link
Contributor

PekoPPT commented Sep 3, 2019

A similar scenario reproduced in ticket #1427782 - Repopulating the DataSource causes memory leaks

The recommended approach for setting the DataSource of a TreeView component is using its setDataSource method.

@zdravkov zdravkov self-assigned this Sep 5, 2019
@nenchef nenchef added the FP: Planned Sync status with associated Feedback Item label Sep 5, 2019
@kendo-bot kendo-bot added FP: In Development Sync status with associated Feedback Item and removed FP: Unplanned Sync status with associated Feedback Item FP: Planned Sync status with associated Feedback Item labels Sep 5, 2019
@Dimitar-Goshev Dimitar-Goshev added this to the 2019.R2.SP.Next milestone Sep 9, 2019
@kendo-bot kendo-bot added FP: Completed Sync status with associated Feedback Item and removed FP: In Development Sync status with associated Feedback Item labels Sep 9, 2019
@Dimitar-Goshev Dimitar-Goshev changed the title TreeView template leaks memory on changes in the observable TreeView template memory leak on changes in observable Sep 16, 2019
@Dimitar-Goshev Dimitar-Goshev modified the milestones: 2019.R2.SP.Next, 2019.R3 Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants