Completed
Last Updated: 18 Mar 2020 07:20 by ADMIN
Troels
Created on: 15 Mar 2020 14:15
Category: Grid
Type: Bug Report
0
Apparent memory leak in Grid

When using the Grid control inside an Angular component which is shown in a dialog (via MatDialog), the component is not properly destroyed after closing the dialog. The same problem doesn't occur when the component instead contains, say, a TreeView.

The problem occurs in Angular 8 and 9, in the Chrome browser. I've created an Angular 8 demo here: https://stackblitz.com/edit/angular-thr9j1 and an Angular 9 demo here: https://stackblitz.com/edit/angular-ksfrqy

Run the demo, press the "Open dialog" button a number of times, then take a heap snapshot in the Chrome dev console (be sure to first select the proper Javascript VM instance, containing "angular-thr9j1" or "angular-ksfrqy"). The component shown in the dialog is called "MemoryLeakDialogComponent", so use that as a filter. You'll see that for every time you opened the dialog there's now an instance of the component on the heap.

The MemoryLeakDialogComponent contains just an empty kendo-grid tag with no attributes. If you edit its dialog template to instead contain a kendo-treeview component, everything is properly destroyed and garbage collected, which leads me to suspect a memory leak in the Grid component.

3 comments
ADMIN
T. Tsonev
Posted on: 18 Mar 2020 07:20

Hello ,

The fix is published in the v4.7.0 release.

Best Regards,
T. Tsonev
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Troels
Posted on: 17 Mar 2020 07:43
Thank you. I can confirm that the latest dev-version (4.7.0-dev.202003161627) fixes the issue.
ADMIN
T. Tsonev
Posted on: 16 Mar 2020 17:11

Hello ,

We've managed to quickly isolate the source of the leak thanks to your detailed bug report. The fix will is published in the latest development build.

As a small token of gratitude I've updated your Telerik points.

Best Regards,
T. Tsonev
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.