[Unstable][MAUI]I9_Scrolling_SnapPoints page throws System.ObjectDisposedException after setting SnapPointsType. #23528
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
csi-new
p/2
Work that is important, but is currently not scheduled for release
platform/android 🤖
s/triaged
Issue has been reviewed
t/bug
Something isn't working
Milestone
Description
I9_Scrolling
Affected case:
I9_Scrolling_SnapPoints
Note:

The I2 space test case sometimes throws same exception.
I2-Vertical list for ItemSpacing
I2-Horizontal list for ItemSpacing
Steps to Reproduce
Actual Behavior:

I9_Scrolling_SnapPoints throw exception
System.ObjectDisposedException
Message=Cannot access a disposed object.
Object name: 'Microsoft.Maui.Controls.Handlers.Items.MauiRecyclerView
3[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.GroupableItemsViewAdapter
2[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.IGroupableItemsViewSource, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.IGroupableItemsViewSource, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.Call stack:0x23 in ManualMauiTests.Views.VerticalListSnapPointsPage.OnSnapPointsTypeSelectedIndexChanged at C:\Users\admin\Desktop\ManualMauiTests\ManualMauiTests\Views\SnapPoints\VerticalListSnapPointsPage.xaml.cs:17,13
Expected Behavior:
Can set SnapPointsType from None to others, it displays normally and does not throw any exceptions
Link to public reproduction project repository
https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests
Version with bug
8.0.80-ci.net8.24357.1
Is this a regression from previous behavior?
Not sure if it is a regression, because the problem is not stable and reproducible
Affected platforms
Android
Did you find any workaround?
Reopen and redeploy, it works fine since it is unstable issue.
The text was updated successfully, but these errors were encountered: