Memory leaks in RadDataGrid, RadCalendar and RadAutocomplete

1 Answer 105 Views
AutoComplete Calendar DataGrid TabView
Matthew
Top achievements
Rank 1
Matthew asked on 17 Jan 2024, 03:59 AM | edited on 19 Jan 2024, 03:13 AM

Edit: RadTabView also leaks. Attached new sample app.

We have found leaks in these controls. I have attached a sample app that demonstrates the problem.

I have logged a support ticket but is anyone else experience similar leaks with these controls?

From the included readme.md:-


Description

Memory leaks when using

  • Telerik RadDataGrid
  • Telerik RadCalendar
  • Telerik RadAutoComplete
  • Telerik RadTabView

Configuration

  • Dotnet 8
  • Telerik.UI.for.Maui 6.6 (also happens with 6.5)
  • Windows 10

Steps to reproduce

Build and run application

  1. Run publish.ps1 to build the application in release mode
  2. Run _temp/publish/Maui-Memleaks.exe

Leaks for every instance (RED buttons)

  1. Click a RED button.
  2. Close the "Close" button
  3. Click the "GC.Collect" button. Note that the "Alive" count will keep increasing every time you click a RED button (ie memory leak)

Leaks for last instance (ORANGE buttons)

  1. Click a ORANGE button.
  2. Close the "Close" button
  3. Click the "GC.Collect" button. Note that the "Alive" count will only increase the first time (ie memory leak), on subsequent clicks the "Release" count will increase.

No leaks (GREEN buttons)

  1. Click a GREEN button.
  2. Close the "Close" button
  3. Click the "GC.Collect" button. Note that the "Release" count will always increase (ie no leaks)

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 23 Jan 2024, 01:53 PM

Hello Matthew,

Thank you for sharing the app - we take any memory leaks very seriously, that's why the case was escalated to the dev team. Here are our findings:

We confirm there is a memory leak in the DataGrid, here is the public bug report regarding it: DataGrid: [WinUI] Page with DataGrid does not dispose. We're going to look into this with priority, still, I cannot commit to a certain timeframe Please follow the feedback item to get an email notification as soo as there is any progress on it.

Regarding the other controls ( Calendar, AutoComplete, TabView) - this isn't a memory leak, actually, here is why:

If it was a memory leak, then all instances should be alive, like in the DataGrid control. But for these controls only one instance is active, this is not a memory leak. For sure there is some strange behavior but not a memory leak. The dev team will research this in more details as well.

I remain at your disposal if any additional questions pop up.

Regards,
Yana
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
AutoComplete Calendar DataGrid TabView
Asked by
Matthew
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or