RadialMenu MemoryLeak

1 Answer 98 Views
RadialMenu
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
Renier Pretorius asked on 17 Dec 2021, 07:55 AM

Hi,

I am using the RadRadialMenu to navigate a dynamically built structure (arbitrary depth, arbitrary width) - I know the width can become an issue as item sectors can become very small, but this is contained.

It works really great and the users love it, but each time the menu refreshes it eats up memory that does not get released again.

If I strip out the actual building of the RadialMenuItems (custom class RadialMenuItemVM that implements IRadialMenuItem) then there is no build-up of memory.

I have created a small demo app that resembles the full app but with a very limited structure and content. On refreshing the menuitems the memory usage in VisualStudio diagnostic session starts to grow. With the limited size of the structure, the memory growth is slow, but it is definitely noticeable after a number of refreshes.

The one thing that I did notice is that the destructor of the RadialMenuItemVM instances only gets called upon closing the window. There seems to be a sticky reference that keeps them alive until the actual radial menu is destroyed.

Sample Project attached. Note that I have removed Telerik lib contents to reduce size so references might require updating

Dilyan Traykov
Telerik team
commented on 21 Dec 2021, 05:44 PM

Hi Renier,

I can confirm that I was able to replicate the memory leak with the provided project but am yet to determine its exact cause. I will let you know as soon as I have more information on the matter.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dilyan Traykov
Telerik team
answered on 23 Dec 2021, 01:40 PM

Hi Renier,

I was able to trace the source of the issue and can confirm that this is a bug at our end.

I've also come up with a possible fix which will be available with our upcoming R1 2022 release in the middle of January if it successfully passes our QA process.

Please let us know once you manage to test it out whether it resolves your issue.

Regards,
Dilyan Traykov
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/.

Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
commented on 23 Dec 2021, 05:25 PM

Thanks Dilyan,

I will keep an eye out for the R1 2022 release and let you know if all is fixed now. For now, I have a work-around to close the view containing the menu and create a new one each time the menu is shown. This contains the leak to when the menu is open. A bit slower performance and menu resetting to start every time, but can live with it until the fix is released.

Regards 

Tags
RadialMenu
Asked by
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dilyan Traykov
Telerik team
Share this question
or