iOS CollectionView ScrollTo Crash #27479
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
potential-regression
This issue described a possible regression on a currently supported version., verification pending
s/needs-repro
Attach a solution or code which reproduces the issue
s/no-recent-activity
Issue has had no recent activity
t/bug
Something isn't working
Description
When I ScrollTo in CollectionView of c# maui ios and hide iOS app, crash occurs in iOS.Main.cs in debug/release mode.
Crash error log:
ObjCRuntime.ObjCException
Objective-C exception thrown. Name: NSInvalidArgumentException Reason: *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
Stack Trace
IntPtr NSArray.FromObjects(IntPtr, IntPtr)
NSArray NSArray.FromNativeObjects(NSIndexPath[], IntPtr) x 2
NSArray NSArray.FromNSObjects(params NSIndexPath[])
Called from: void UITableView.ReloadRows(NSIndexPath[], UITableViewRowAnimation)
Show 45 more frames
void Program.Main(string[] args)
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.100 SR10
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.3 GA
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: