Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vitalbit opened this issue Jan 8, 2025 · 2 comments · May be fixed by #27051
Open
Assignees
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView collectionview-cv2 p/2 Work that is important, but is currently not scheduled for release partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@vitalbit
Copy link

vitalbit commented Jan 8, 2025

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)
@vitalbit vitalbit added the t/bug Something isn't working label Jan 8, 2025
@jfversluis jfversluis added platform/iOS 🍎 area-controls-collectionview CollectionView, CarouselView, IndicatorView collectionview-cv2 p/2 Work that is important, but is currently not scheduled for release labels Jan 8, 2025
@jfversluis jfversluis added this to the .NET 9 Servicing milestone Jan 8, 2025
@Ying-6 Ying-6 added s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage labels Jan 8, 2025
@Ying-6
Copy link

Ying-6 commented Jan 8, 2025

This issue has been verified using Visual Studio 17.13.0 Preview 2.1 (9.0.22 &9.0.21 & 9.0.14). Can repro on iOS 15.2, and not repro on iOS 18.2.
Image

@PureWeen PureWeen modified the milestones: .NET 9 Servicing, .NET 9 SR4 Jan 8, 2025
@karthikraja-arumugam karthikraja-arumugam added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jan 9, 2025
@dhindrik
Copy link
Contributor

dhindrik commented Jan 9, 2025

We also have this issue with iOS 16.x devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView collectionview-cv2 p/2 Work that is important, but is currently not scheduled for release partner/syncfusion Issues / PR's with Syncfusion collaboration platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
Status: Todo
7 participants