dotnet / dotnet/maui

[Android] - Variable-Sized Items in Vertical List Cause Exception After Scrolling

Open
#31,324 3 comments 0 reactions 0 assignees View on GitHub
area-controls-collectionview partner/syncfusion platform/android s/triaged s/verified t/bug
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

Description
I3_Sizing & I6_Grouping-Variable size items for vertical list throw exception after scrolling
Affected case:
I3_Sizing - Variable size items for Vertical list
I6 - Grouping - Grouping with variable sized items for Vertical list with DataTemplates

### Steps to Reproduce

1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to Android.
2. Navigate to 'I CollectionView' ->'I3_Sizing - Variable size items for Vertical list'/'I6 - Grouping with variable sized items for Vertical list with DataTemplates'
3. Scroll vertical

Expected Behavior:
After scrolling, it displays normally and does not throw any exceptions

ACtual Behavior:

https://github.com/user-attachments/assets/6fc8e30f-37db-44f7-9a1b-2682f6b8bc02

### Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

### Version with bug

9.0.100 SR10

### Is this a regression from previous behavior?

No, this is something new, Not sure, did not test other versions

### Last version that worked well

_No response_

### Affected platforms

Android

### Affected platform versions

_No response_

### Did you find any workaround?

_No response_

### Relevant log output

```shell
Mono.Android.Runtime.dll!Android.Runtime.RuntimeNativeMethods.monodroid_debugger_unhandled_exception(System.Exception e) (Unknown Source:0)
Mono.Android.dll!Android.Runtime.JNIEnv.PropagateUncaughtException(nint env, nint javaThreadPtr, nint javaExceptionPtr) (Unknown Source:0)
```

Contributor guide

Open the contributing guide

Research direction

Deploy the ManualMauiTests project on Android and navigate to the two I CollectionView scenarios named in the report. Reproduce vertical scrolling, capture the complete exception beyond the listed Mono.Android stack frames, and trace the affected behavior until both variable-sized and grouped DataTemplate lists scroll without throwing.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, csharp
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.