Skip to content

[Catalyst] CollectionView Crash #29791

@PureWeen

Description

@PureWeen

Description

Customer is currently seeing a crash here after updating to latest .NET 9 SR7 bits from


`Exception Message: ObjectDisposed_Generic
ObjectDisposed_ObjectName_Name, Foundation.NSIndexPath

Exception Source: Microsoft.MacCatalyst

Exception Stack:
   at ObjCRuntime.ThrowHelper.ThrowObjectDisposedException(Object o)
   at ObjCRuntime.NativeObjectExtensions.GetNonNullHandle(INativeObject self, String argumentName)
   at UIKit.UICollectionView.CellForItem(NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.SelectableItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].FormsSelectItem(NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.SelectableItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.SelectableItemsViewDelegator`2[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.ReorderableItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
   at Microsoft.Maui.Controls.Handlers.Items.SelectableItemsViewDelegator`2[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.ReorderableItemsViewController`1[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].__IRegistrarGenericTypeProxy__Microsoft_Maui_Controls_Handlers_Items_SelectableItemsViewDelegator_2___ItemSelected(IntPtr sel, IntPtr p0, IntPtr p1, IntPtr* exception_gchandle)
--- End of stack trace from previous location ---
   at UIKit.UIApplication.UIApplicationMain(Int32 argc, String[] argv, IntPtr principalClassName, IntPtr delegateClassName)
   at UIKit.UIApplication.Main(String[] args, Type principalClass, Type delegateClass)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions