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
close icon

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.



1 Reply

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.


Loader.
Live Chat Icon For mobile
Up arrow icon