question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CarouselView - Poor performance and even crashing on older devices such as iPad 2

See original GitHub issue

Hi Andrei,

First of all thank you for your great library and amazing work!

I am using your library in my highly dynamic app where the views are all created using C# based on the JSON API response

I have something like this in my ContentPage:

<panCardView:CarouselView
                IsPanInteractionEnabled="False"
                IsPanSwipeEnabled="False"
                IsVerticalSwipeEnabled="False"
                ItemsSource="{Binding RecordCreateContentViews}"
                MoveThresholdDistance="1"
                SwipeThresholdDistance="20"
                SwipeThresholdTime="20"
                UserInteractionDelay="100">
                <controls:IndicatorsControl
                    IsTapToNavigateEnabled="True"
                    Margin="0,0,0,6"
                    Spacing="10"
                    VerticalOptions="Start" />
            </panCardView:CarouselView>

RecordCreateContentViews is also an ObservableCollection of type ContentView.

So basically, what I am doing is creating ContentViews inside the OnAppearing override and then add them to the ObservableCollection.

It works fine and I can use it just fine:

image image

The trouble is when I want to navigate to different tabs (either using swipe gesture or by tapping on the dots), it takes around 2-3 seconds on a physical devices - even on iPad Pro (latest generation) and iPhone 11 Pro Max.

on iPad 2 the situation is really worse! It will take around 10 seconds to go to the next tab and it will then give up and crash the app (I cannot see any crash log either!)

My question is:

Is there a way to preload the layouts and somehow cache them? Can anything be done about memory usage as well as smooth navigating across tabs?

Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
amirvenuscommented, Oct 14, 2020

This is what I get from the native Xamarin.Forms’s CV:

image

LOL!

1reaction
AndreiMisiukevichcommented, Oct 14, 2020

I think this issue ticket can be closed)

Read more comments on GitHub >

github_iconTop Results From Across the Web

My games on my ipad keep crashing.
Crashing in my experience, is nearly always due to lack of available RAM, rather than storage space and, unlike in a desktop computer,...
Read more >
How do I fix iPad that constantly crashes…
In Settings app, under General settings, Reset panel, at the right bottom of the list, Reset All Settings. In Settings app (NOT from...
Read more >
Crash due to low free RAM available while uploading file
Hey,. Im following user crashes in our app for about a month. Im using tools like firebase and fabric to get details on...
Read more >
Safari, WKWebview Crash in iOS 15 Beta2
yes, we have experienced Safari performance problem on ios 15 too. even ... IOS 15.0.2 still crash ... my website ran extremely slow...
Read more >
Here's Why Your iPad Keeps Crashing and How to Fix It
1. Go to Settings and tap on iTunes & App Store. · 2. Tap on Automatic Downloads and make sure that Updates are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found