alexrainman / CarouselView

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

[Bug] Crash if using CarouselView in ScrollView #560

Closed SymxnCreator closed 4 years ago

SymxnCreator commented 4 years ago

Hello,

If I place the CarouselViewControl inside a ScrollView, the application crashes when the page is initialized. I get the following exception: System.NullReferenceException: Object reference not set to an instance of an object.

Can you fix that?

askfarhan commented 4 years ago

I am also having same issue. Any workaround ?

Cyrus-Sushiant commented 4 years ago

I am also having same problem. How can you fix that?

alexrainman commented 4 years ago

Is this Android or iOS?

alexrainman commented 4 years ago

I was able to fix the crash but, i am facing another issue, kind of the same it happens with StackLayout.

In Android, as ViewPager has its own ScrollView, wrapping the Carousel into a ScrollView stop it from propagating HeightRequest and it shows up blank.

alexrainman commented 4 years ago

InstantiateItem is never called.

alexrainman commented 4 years ago

Fixed.

Cyrus-Sushiant commented 4 years ago

I have same problem in Android. I want add a CarouselView in ScrollView. You can observe base code in this link.

Cyrus-Sushiant commented 4 years ago

When does it be release?

sparkhead95 commented 4 years ago

I have the same problem after updating my old app to use the latest Xamarin Forms.. I don't have my carouselView in a scrollview though... crash_log.txt

dejanbasic commented 4 years ago

I have the same problem only on Android, when I put CarouselView in ScrollView. I'm waiting for the new release. Thanks :)

Mittchel commented 4 years ago

@alexrainman did you release this already? I'm still experiencing the same problem on Android in latest version 5.2.0

SymxnCreator commented 4 years ago

Can you fix it now or not...?

yalamandarao commented 4 years ago

Same issue facing in Android.

daniels7 commented 4 years ago

@alexrainman We have the same problem. Please release the fix you mentioned. We would be very thankful

AviadKatani commented 4 years ago

I'm facing the same issue here, though I'm not directly using ScrollView but SfPdfViewer (and it's using ScrollView). Call Stack: https://gyazo.com/f4410aa97ddae8d72f81fdb16972fd34

Any solution? Actually I am surprised to see people still commenting here as last Nuget update is from 2018. Any way to update to the last version with fixes? @alexrainman

ivanowen commented 4 years ago

Having same issue.. only on Android