Skip to content

[iOS 15] CollectionView with CollectionViewHandler2 configured, is crashing app on iOS 15 (15.2) #26997

@vitalbit

Description

@vitalbit

Description

iOS 15 and iOS 15.2 (tested only those versions) make application crash when rendering CollectionView with CollectionViewHandler2 configured. Meanwhile iOS 17 and iOS 18 works fine.

Steps to Reproduce

  1. Configure CollectionView with CollectionViewHandler2 in MauiProgram.cs.
  2. Use CollectionView on MainPage and try to add some items into ItemsSource.

Actual result: application is failed to start for iOS 15/15.2.
Expected result: application works fine like on iOS 17/18.

Please check reproduction repository with iOS 15.2 simulator run.

Link to public reproduction project repository

https://github.com/vitalbit/CollectionViewHandler2_IOS15_Sample

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

iOS

Affected platform versions

iOS 15, iOS 15.2

Did you find any workaround?

Nope :(

Relevant log output

Microsoft.Maui.Controls.Handlers.Items2.ItemsViewController2<Microsoft.Maui.Controls.ReorderableItemsView>.CheckForEmptySource (Unknown Source:0)
Microsoft.Maui.Controls.Handlers.Items2.ItemsViewController2<Microsoft.Maui.Controls.ReorderableItemsView>.NumberOfSections (Unknown Source:0)
ObjCRuntime.Messaging.void_objc_msgSendSuper (Unknown Source:0)
UIKit.UIViewController.LoadView (UIViewController.g.cs:691)
Microsoft.Maui.Controls.Handlers.Items2.ItemsViewController2<Microsoft.Maui.Controls.ReorderableItemsView>.LoadView (Unknown Source:0)
ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (Unknown Source:0)
UIKit.UIViewController.get_View (UIViewController.g.cs:3275)
Microsoft.Maui.Controls.Handlers.Items2.ItemsViewHandler2<Microsoft.Maui.Controls.ReorderableItemsView>.CreatePlatformView (Unknown Source:0)
Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.Controls.ReorderableItemsView,UIKit.UIView>.OnCreatePlatformView (Unknown Source:0)
Microsoft.Maui.Controls.Handlers.Items2.ItemsViewHandler2<Microsoft.Maui.Controls.ReorderableItemsView>.OnCreatePlatformView (Unknown Source:0)
Microsoft.Maui.Handlers.ViewHandler.OnCreatePlatformElement (Unknown Source:0)
Microsoft.Maui.Handlers.ElementHandler.CreatePlatformElement (Unknown Source:0)
Microsoft.Maui.Handlers.ElementHandler.SetVirtualView (Unknown Source:0)
Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.Controls.ReorderableItemsView,UIKit.UIView>.SetVirtualView (Unknown Source:0)
Microsoft.Maui.Handlers.ViewHandler<Microsoft.Maui.Controls.ReorderableItemsView,UIKit.UIView>.SetVirtualView (Unknown Source:0)
Microsoft.Maui.Controls.Element.SetHandler (Unknown Source:0)
Microsoft.Maui.Controls.Element.set_Handler (Unknown Source:0)
Microsoft.Maui.Controls.VisualElement.Microsoft.Maui.IElement.set_Handler (Unknown Source:0)
Microsoft.Maui.Platform.ElementExtensions.ToHandler (Unknown Source:0)
Microsoft.Maui.Platform.ElementExtensions.ToPlatform (Unknown Source:0)

Metadata

Metadata

Labels

area-controls-collectionviewCollectionView, CarouselView, IndicatorViewcollectionview-cv2p/2Work that is important, but is currently not scheduled for releasepartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions