Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] disposed object. Object name: 'Xamarin.Forms.Platform.Android.SwipeViewRenderer #11407

Closed
AhmedAbuelnour opened this issue Jul 11, 2020 · 1 comment
Assignees
Labels
a/bindablelayout a/swipeview e/1 🕐 1 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often in-progress This issue has an associated pull request that may resolve it! p/Android t/bug 🐛
Projects

Comments

@AhmedAbuelnour
Copy link

AhmedAbuelnour commented Jul 11, 2020

Description

<ScrollView>
            <StackLayout VerticalOptions="StartAndExpand" >
                <StackLayout BindableLayout.ItemsSource="{Binding CreditCards}" Padding="8" BindableLayout.ItemTemplate="{StaticResource CreditCardTemplate}"/>
                <StackLayout VerticalOptions="End">
                    <buttons:SfButton Style="{StaticResource GradientButton}" Text="Add Card" Command="{Binding AddCardCommand}" >
                        <buttons:SfButton.BackgroundGradient>
                            <gradient:SfLinearGradientBrush>
                                <gradient:SfLinearGradientBrush.GradientStops>
                                    <gradient:SfGradientStop Color="{StaticResource GradientStartColor}" Offset="0"/>
                                    <gradient:SfGradientStop Color="{StaticResource GradientStopColor}" Offset="1"/>
                                </gradient:SfLinearGradientBrush.GradientStops>
                            </gradient:SfLinearGradientBrush>
                        </buttons:SfButton.BackgroundGradient>
                    </buttons:SfButton>
                </StackLayout>
            </StackLayout>

        </ScrollView>


 <DataTemplate x:DataType="models:CreditCard" x:Key="CreditCardTemplate">
            <SwipeView>
                <SwipeView.LeftItems>
                    <SwipeItems Mode="Execute">
                        <SwipeItem Text="Remove" BackgroundColor="Transparent" IconImageSource="delete.png" Command={Binding RemoveCommand}   />
                    </SwipeItems>
                </SwipeView.LeftItems>
                ... 
            </SwipeView>
        </DataTemplate>`

Steps to Reproduce

Try to remove item form the list, produces exception

disposed object. Object name: 'Xamarin.Forms.Platform.Android.SwipeViewRenderer

workaround of it, i had to use collectionview instead of BindableLayout

Basic Information

  • Version with issue: 4.7
  • IDE: VS 2019
@AhmedAbuelnour AhmedAbuelnour added s/unverified New report that has yet to be verified t/bug 🐛 labels Jul 11, 2020
@pauldipietro pauldipietro added this to New in Triage Jul 11, 2020
@jsuarezruiz jsuarezruiz self-assigned this Jul 13, 2020
@jsuarezruiz jsuarezruiz added a/swipeview p/Android a/bindablelayout i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often labels Jul 13, 2020
@jsuarezruiz
Copy link
Contributor

jsuarezruiz commented Jul 13, 2020

Thanks for the feedback. After complete some tests, can confirm the issue is the same as #11262 and will be fixed by #11279

@jsuarezruiz jsuarezruiz added e/1 🕐 1 and removed s/unverified New report that has yet to be verified labels Jul 13, 2020
@jsuarezruiz jsuarezruiz added this to Backlog in SwipeView via automation Jul 13, 2020
@jsuarezruiz jsuarezruiz moved this from New to Ready For Work in Triage Jul 13, 2020
@jsuarezruiz jsuarezruiz moved this from Backlog to In Progress in SwipeView Jul 13, 2020
@samhouts samhouts added the in-progress This issue has an associated pull request that may resolve it! label Jul 16, 2020
@samhouts samhouts added this to In Progress in 4.7.0 Jul 16, 2020
@samhouts samhouts removed this from Ready For Work in Triage Jul 18, 2020
@samhouts samhouts moved this from To do to In progress in Android Ready For Work Jul 18, 2020
Android Ready For Work automation moved this from In progress to Done Jul 21, 2020
SwipeView automation moved this from In Progress to Done Jul 21, 2020
4.7.0 automation moved this from In Progress to Done Jul 21, 2020
@samhouts samhouts removed this from Done in Android Ready For Work Aug 20, 2020
@samhouts samhouts removed this from Done in SwipeView Aug 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/bindablelayout a/swipeview e/1 🕐 1 i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often in-progress This issue has an associated pull request that may resolve it! p/Android t/bug 🐛
Projects
No open projects
4.7.0
  
Done
Development

No branches or pull requests

3 participants