alexrainman / CarouselView

CarouselView control for Xamarin Forms
MIT License
436 stars 178 forks source link

[Android] Content vanishes when switching tabs in Forms Shell project #582

Open InquisitorJax opened 4 years ago

InquisitorJax commented 4 years ago

When switching between Forms Shell tabs in android, the CarouselView content vanishes.

see sample project CarouselVanish.zip

knasher commented 3 years ago

This happens on a non-shell app too; moving back to version 5.2.0 fixed the issue temporarily

adejewski commented 3 years ago

I think it is connect to cache somehow. When I got 3 pages conent vainishes on page 1 when scrolled to page 3 and vice-versa. Page 2 stays intact, so it looks like memory is cleared for items that are two pages away from current.

EDIT: one more thing it only happens on Android, iOS works fine for me.

pmahend1 commented 3 years ago

I have the same issue, I have 8 views,when I reach 8th view I see GC freed some memory in the log, when I go back views are empty. May be view model/binding context is cleared.

I don't know if the plugin is intended for resource intensive operations. Switching to version 5.2.0 there are lot of crashes which is annoying for end users.

I may try official Carousel to see if anything changes. But