Unplanned
Last Updated: 27 Nov 2020 10:24 by ADMIN
Robert
Created on: 16 Nov 2020 08:17
Category: DateTimePicker
Type: Bug Report
0
DateTimePicker is leaking

We're trying to use DateTimePicker, I suppose it's the same for DatePicker too. 

The controls never get disposed/destroyed properly, preventing the garbage collector from cleaning up.

5 comments
ADMIN
Yana
Posted on: 27 Nov 2020 10:24

Hello Robert,

I understand, I am sorry to hear the workaround did not help. We will investigate the issue in details and hopefully will be able to provide a solution soon.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Robert
Posted on: 25 Nov 2020 11:27

Hi Yana,

We already programmed a method that traverses controls recursively and cleans up whatever it can (clears behaviors, binding contexts, gestures, calls Dispose if IDisposable, removes children, sets everything to null…) but unfortunately it doesn't help here :(

Probably there's an event handler internally left on your end and there's no way to remove it ourselves. 

ADMIN
Yana
Posted on: 25 Nov 2020 09:30

Hi Robert,

We take this issue very seriously as it concerns memory usage and we're definitely planning to look into it with priority.  We're going to update the feedback item here as soon as we have any new information on the matter.

In the meantime, as a temporary workaround, you can try to manually remove the DateTimePicker control from the visual tree when navigating away from the page.

I am so sorry for the caused inconvenience.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Robert
Posted on: 24 Nov 2020 09:12

Hello,

Are there any news regarding the leak?

In our scenario, we're seeing over 20.000 objects leaked for a couple of opened datepickers. Considering our app starts with 250.000 objects, and it's fairly complex at start with lots and lots of visual elements, this is quite bad.

 

 

ADMIN
Yana
Posted on: 18 Nov 2020 14:20

Hello Robert,

Indeed, there is an issue related to disposing the DataTimePicker instance - I confirm this is a bug on our side.  I've updated the status of this item to "Unplanned", and hopefully we'll be able to provide a solution soon.

I've updated your points as a small sign of gratitude for reporting the issue to us. I am sorry for the caused inconvenience.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.