Application is Crashing when opening the collection view in iOS 18 (if the collection is having grouping)

Vaibhav Methuku 165 Reputation points
2024-11-15T11:01:38.8133333+00:00

I can able to see this the App center. When ever we are working without grouping the collectionview is working fine.

The production application is working fine, without any code changes in our application the collectionview is started crashing when grouping is enabled from the recent iOS version release.

Expecting a quick support as its road block for our upcoming release...

SIGABRT: Objective-C exception thrown. Name: NSInternalInconsistencyException Reason: Expected dequeued view to be returned to the collection view in preparation for display. When the collection view's data source is asked to provide a view for a given index path, ensure that a single view is dequeued and returned to the collection view. Avoid dequeuing views without a request from the collection view. For retrieving an existing view in the collection view, use -[UICollectionView cellForItemAtIndexPath:] or -[UICollectionView supplementaryViewForElementKind:atIndexPath:]. Dequeued view: <Microsoft_Maui_Controls_Handlers_Items_VerticalSupplementaryView: 0x1312fc900; baseClass = UICollectionViewCell; frame = (0 0; 0 0); alpha = 0; layer = <CALayer: 0x305095840>>; Collection view: <Microsoft_Maui_Controls_Handlers_Items_MauiCollectionView: 0x12bf1aa00; baseClass = UICollectionView; frame = (0 0; 438 390); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x301b271e0>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x305755c60>; contentOffset: {0, 0}; contentSize: {438, 3788.8333333333335}; adjustedContentInset: {0, 0, 0, 0}; layout: <Microsoft_Maui_Controls_Handlers_Items_ListViewLayout: 0x12c2e6d00>; dataSource: <Microsoft_Maui_Controls_Handlers_Items_ReorderableItemsViewController_1: 0x12ccbc000>> Native stack trace: 0 CoreFoundation 0x00000001992bd098 47427277-EE15-3C17-AD68-6886B0380B5E + 540824 1 libobjc.A.dylib 0x00000001965bf2e4 objc_exception_throw + 88 2 Foundation 0x000000019868e15c 12E17A7A-B65F-35EE-82D7-CBC31004E223 + 8528220 3 UIKitCore 0x000000019c3f5074 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 10424436 4 UIKitCore 0x000000019cb2e514 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 17999124 5 UIKitCore 0x000000019bbbcfdc 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 1806300 6 UIKitCore 0x000000019bbbcee0 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 1806048 7 UIKitCore 0x000000019bbbcee0 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 1806048 8 UIKitCore 0x000000019bd156f4 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 3217140 9 UIKitCore 0x000000019ba14578 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 66936 10 QuartzCore 0x000000019ad59664 0011C1DB-B0CA-3F85-9BFE-429013410160 + 493156 11 QuartzCore 0x000000019ad591f0 0011C1DB-B0CA-3F85-9BFE-429013410160 + 492016 12 QuartzCore 0x000000019adb029c 0011C1DB-B0CA-3F85-9BFE-429013410160 + 848540 13 QuartzCore 0x000000019ad2f0d4 0011C1DB-B0CA-3F85-9BFE-429013410160 + 319700 14 QuartzCore 0x000000019ad72398 0011C1DB-B0CA-3F85-9BFE-429013410160 + 594840 15 UIKitCore 0x000000019bab2b78 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 715640 16 UIKitCore 0x000000019bab0174 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 704884 17 UIKitCore 0x000000019baaffe8 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 704488 18 UIKitCore 0x000000019baafc38 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 703544 19 UIKitCore 0x000000019bab0bac 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 707500 20 CoreFoundation 0x0000000199290088 47427277-EE15-3C17-AD68-6886B0380B5E + 356488 21 CoreFoundation 0x000000019929001c 47427277-EE15-3C17-AD68-6886B0380B5E + 356380 22 CoreFoundation 0x000000019928db08 47427277-EE15-3C17-AD68-6886B0380B5E + 346888 23 CoreFoundation 0x000000019928cd04 47427277-EE15-3C17-AD68-6886B0380B5E + 343300 24 CoreFoundation 0x000000019928c5b8 CFRunLoopRunSpecific + 572 25 GraphicsServices 0x00000001e4d221c4 GSEventRunModal + 164 26 UIKitCore 0x000000019bde25f0 5BD027B1-0EC9-35FD-B9F0-6288A525693A + 4056560 27 UIKitCore 0x000000019be9110c UIApplicationMain + 340 28 TVD 0x00000001050d88b0 xamarin_UIApplicationMain + 24 29 TVD 0x00000001053bc0f8 do_icall + 316 30 TVD 0x00000001053ba9f8 do_icall_wrapper + 348 31 TVD 0x00000001053af408 mono_interp_exec_method + 2836 32 TVD 0x00000001053acfa0 interp_runtime_invoke + 236 33 TVD 0x000000010537c240 mono_jit_runtime_invoke + 1116 34 TVD 0x0000000105327fe8 mono_runtime_invoke_checked + 148 35 TVD 0x000000010532e02c mono_runtime_exec_main_checked + 116 36 TVD 0x0000000105381714 mono_jit_exec + 356 37 TVD 0x00000001050e3978 xamarin_main + 952 38 TVD 0x00000001054651ec main + 72 39 dyld 0x00000001bea5fd34 77C1EED2-2ED7-396A-BA34-E770120D81D4 + 212276

Open

Thanks
Vaibhav Methuku.

Developer technologies | .NET | .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Thanniru, Anitha 5 Reputation points
    2024-12-05T09:07:46.0933333+00:00

    Thanks for the response. I have tried the above suggestion and it worked.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.