Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

0
Votes

I have been investigating memory leak across multiple of our mobile applications, where I believe the leaks are caused by several Syncfusion controls (only on iOS):

  • SfButton
  • SfTextInputLayout
  • SfNumericEntry
  • SfEffectsView
  • SfSwitch
  • SfCheckBox
  • SfRadio
It's however possible that these leaks could be part of a root problem.

I have produced a sample project (see attached) with an example page for some of the controls. To investigate, I am using a NuGet package, AdamE.MemoryToolkit.Maui, which uses weak references to determine if views are still alive when they should have been garbage collected.

When navigating to any of the pages, and back again, it can be observed that the memory used keeps increasing.

I have included a detailed example for the SfSwitch, where I have bindings that reference a parent view. In this scenario, it looks like the parent view also leaks. When swapping out the SfSwitch with a normal Switch, there is no memory leak.

Please let me know if there is anything else I can help with or if there are any known workarounds.


Kind regards,
Dylan.