We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SFlistView - Memory leak when scrolling horizontally (iOS)

I have discovered that the SFlistView in landscape mode when you scroll to move between the elements has memory leaks and even if you navigate backwards this memory is never freed which causes the app to crash sooner or later because it consumes more RAM than it has available. I have prepared a simple example so that you can reproduce it, but the more complex the DataTemplate of the SFlistView is, the more obvious this problem is:

https://github.com/nacompllo/MemoryLeakEverywhere/tree/bugfix/memoryLeakSyncfusion


I have also prepared a video where you can clearly see that RAM is never released:

https://www.youtube.com/watch?v=c0e325Yx-wU


Note: However, the same sample with a CarouselView does not have memory leaks, it only happens with the SFlistView in horizontal mode.


Steps to Reproduce:

  • Clone the following repository:

https://github.com/nacompllo/MemoryLeakEverywhere/tree/bugfix/memoryLeakSyncfusion

  • Run the app on an iOS device.
  • Have Xcode Instruments open to see how the RAM increases.
  • Follow the same steps as in the attached video.



2 Replies

RK Ranjith Kumar Durairaj Syncfusion Team April 21, 2023 12:12 PM UTC

Hi Tecnopresley,

Currently we are validating the reported issue and we will update you with further details on or before 25/04/2023.

Regards,
Ranjith.



RM RiyasHameed MohamedAbdulKhader Syncfusion Team November 25, 2024 07:59 AM UTC

Hi Tecnopresley,
We have resolved the reported issue, 'Resolve memory leak in SfListView' in our Essential Studio® 2024 Volume 3 Service Pack Release V27.2.2 and is available for download under the following link.

https://www.syncfusion.com/forums/195187/essential-studio-2024-volume-3-service-pack-release-v27-2-2-is-available-for-download

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Riyas Hameed M


Loader.
Up arrow icon