Completed
Last Updated: 07 Jun 2023 07:41 by ADMIN
Release 5.2.0
John
Created on: 16 Feb 2023 16:54
Category: ListView
Type: Bug Report
1
Memory leak in ListView when the ItemsSource has changed

Changing the ItemsSource property of the ListView causes it to recreate its cells. The problem is that the existing cells are never reclaimed by the garbage collector, so the memory usage grows constantly. Eventually, the application can run out of memory, if the ItemsSource is updated too many times.

Note: It is possible the memory leak is caused by the bindings holding objects longer than necessary. Similar memory leaks can be reproduced with the .NET MAUI CollectionView as well. Here are a few GitHub issues for the CollectionView that might be related:

 

 

7 comments
ADMIN
Lance | Senior Manager Technical Support
Posted on: 15 May 2023 13:13

Hello John,

I apologize for any confusion, I was explicitly referring to the conversations in the linked items, the problem in the framework itself, not the Telerik UI for Maui controls. The same issue that were affecting the Telerik controls were also affecting the .NET MAUI controls, which is why we demonstrated the problems on GitHub with the CollectionView.

I can understand you asking "Well, if the fix is working for CollectionView, why isn't is now available for RadListView". This is indeed what we are currently working on and why this Feedback Portal item is marked as 'In Development'.

You are also asking "why if this has been fixed in March, why isn't there a service pack or even a beta internal build available?" The fact is simply because the release of .NET Maui workload had several other more serious problems that we cannot introduce into Telerik UI for Maui (e.g., one is the Grid cannot properly measure layout, subsequently breaking our controls layouts).

As you may know, due to how .NET workloads work you cannot pick and choose what you want, like you can when using NuGet packages. Therefore we would have to knowingly introduce serious layout bugs, along with the RadListView fix. At the end of the day, you'd still need to manually revert to the previous .NET workload anyways. Then you'd need to downgrade our packages because of the workload version, wasting even more of your time... just to get back to where you are right now.

Many of the blocking problems have just been fixed by Microsoft, so our goal is that all these things will align in time for the R2 2023 release, which is planned for the first week of June. 

Regards,
Lance | Manager Technical Support
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.

John
Posted on: 15 May 2023 09:13

I assume the Android version is fixed according to Lance, since he said "Android and iOS - This is currently seen as resolved as it can no longer be replicated, by us or the .NET MAUI team." 

Why wasn't a temporary nuget released for Android so that devs could carry on with development/testing instead of having to stop for months completely and waste money and time that we do not have while you guys have been running it for a while now since this Github issue shows it fixed back in March?  I mean I have lost thousands of dollars in investment money due to lack of being able to further develop my apps because of this.  If you have something working for Android then release that so companies can keep working towards their goals.  Instead, you sit on it and cost us thousands of dollars in development capital.

So it doesn't matter if the topic of this bug report has changed too in development.  Telerik has cost me over 10,000.00 dollars in development capital and I will get it back one way or another.

ADMIN
Didi
Posted on: 15 May 2023 04:21

Hi John,

The status of this issue is In Development. The fix will be included in the next release of Telerik MAUI, expected at the beginning of June. 

Regards,
Didi
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.

John
Posted on: 12 May 2023 21:34

its still broken. I just grabbed the latest .net and did a nuget update. And when i refresh the RadListView about 12 to 14 times GC goes crazy and the app crashes just like in my initial report. They may have fixed something but the memory leak in Radlistview is still there.

I no longer have time to wait and have changed to a working solution that actually keeps me in the loop.

John

ADMIN
Lance | Senior Manager Technical Support
Posted on: 12 May 2023 20:47

Hello John,

Just in case you were not following the .NET MAUI team's discussions, I wanted to follow up and share some updates from Microsoft

  • Android and iOS - This is current seen as resolved as it can no longer be replicated, by us or the .NET MAUI team. See this comment https://github.com/dotnet/maui/issues/13393#issuecomment-1446000441 
  • Windows - Microsoft has shared nearly a dozen different fixes with me that go towards solving memory issues there. However, those have been committed to the .NET 8 story. Microsoft stated they should be able to get some of the low-risk items backported to .NET 7, but I did not get any guarantees.

I sincerely appreciate your patience and understanding. Let me know if there's anything else from the Telerik UI for Maui side of things I can assist with. If you'd like to follow along with the .NET engineering team's discussion, here are the pull requests I used for my review

Regards,
Lance | Manager Technical Support
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.

ADMIN
Didi
Posted on: 13 Mar 2023 06:24

Hello John,

I have sent a reply to the support ticket. The bug is logged for all platforms, there isn't a specific platform mentioned in the bug title.

When a bug is for a concrete platform we added it in the title and shown here: https://feedback.telerik.com/maui/1600259-listview-android-swiping-the-cell-overlaps-next-cell-when-itemspacing-is-used 

Regards,
Didi
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.

John
Posted on: 11 Mar 2023 13:40

This IS an issue on Android why was it declared not to be on the github issue?  It is still occuring with the latest VS and MAUI and after about 17 refreshes of a listview bound to a collection the app becomes unresponsive and quits.  You replicated the issue on Android i mean and then reported to Peppers that it was Windows only. Why?

John