This is a migrated thread and some comments may be shown as answers.

Angular 5 / Kendo grid memory leaks

4 Answers 368 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Amit
Top achievements
Rank 1
Amit asked on 12 Nov 2017, 02:17 PM

Hello,

Currently we're evaluating usage of kendo with angular 5.

I've noticed detached DOM trees when destroying the grids.

Please find attached 2 files:

1. Screencast of the snapshots as the creation/destroy progressing: https://ufile.io/20hfh

2. The app itself (without node modules, you can npm install to run it): https://ufile.io/0eone

Can you provide any input on this one? Is this a known issue or we're missing something?

 

Thank you

4 Answers, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 15 Nov 2017, 08:28 AM
Hello,

I've made some slight modifications to the test setup:
* Modified the app to add and remove grids one by one
* Used an allocation timeline to better visualize leaks
* Ran the app in production mode

The nodes that you spotted seem to be allocated only initially. Subsequent grids do not produce additional nodes, hence can't be qualified as a leak.
I can assume this is some sort of caching within the Angular framework.

Attached are the timeline, heap allocations and the modified project.

Regards,
T. Tsonev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Rafal
Top achievements
Rank 1
answered on 29 May 2020, 12:27 PM
Hi, Is there a preferred/advised way to destroy child components used  in grid cells? Virtual scrolling works fine, but eventually my app becomes unresponsive due number of components created. Thanks.
0
T. Tsonev
Telerik team
answered on 02 Jun 2020, 10:51 AM

Hi Rafal,

There is a known issue with memory leaks that is limited to development mode. Running the application in production mode should fix it. Also, upgrading your project to use the Ivy compiler should fix them for both development and production mode.

If the issue is not limited to development mode/pre-Ivy projects then please open a new bug report so we can investigate.

Best Regards,
T. Tsonev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Rafal
Top achievements
Rank 1
answered on 02 Jun 2020, 10:55 AM
Hi, thank you for response. Eventually I was able to find an issue and it was in my project code. Having said that, virtual scrolling works as expected.
Tags
General Discussions
Asked by
Amit
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Rafal
Top achievements
Rank 1
Share this question
or