After using xcode 15 for distribution we are having strange crashes from UICollectionViewDiffableDataSource. Crash does not indicate any call stack from our own code. This happens on %100 ios 17 and with xcode 15.1 build and we can not reproduce it in testing environment. Here is the stack trace
Crashed: com.apple.main-thread
0 libswiftCore.dylib 0x40369c swift_getObjectType + 40
1 UIKitCore 0x469160 __swift_destroy_boxed_opaque_existential_1Tm + 35088
2 UIKitCore 0x2633ac -[__UIDiffableDataSource collectionView:cellForItemAtIndexPath:] + 144
3 UIKitCore 0x466fd4 __swift_destroy_boxed_opaque_existential_1Tm + 26500
4 UIKitCore 0x4670e0 __swift_destroy_boxed_opaque_existential_1Tm + 26768
5 UIKitCore 0xd2194 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 668
6 UIKitCore 0x65f674 -[UICollectionView _prefetchItemsForPrefetchingContext:] + 384
7 UIKitCore 0x32204c -[UICollectionView _updatePrefetchedCells:] + 148
8 UIKitCore 0x6613fc -[UICollectionView _updateCycleIdleUntil:] + 492
9 UIKitCore 0xa69a5c ___UIUpdateCycleNotifyIdle_block_invoke + 596
10 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32
11 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
12 libdispatch.dylib 0x125a4 _dispatch_main_queue_drain + 988
13 libdispatch.dylib 0x121b8 _dispatch_main_queue_callback_4CF + 44
14 CoreFoundation 0x3751c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
15 CoreFoundation 0x34218 __CFRunLoopRun + 1996
16 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
17 GraphicsServices 0x34e0 GSEventRunModal + 164
18 UIKitCore 0x22aedc -[UIApplication _run] + 888
19 UIKitCore 0x22a518 UIApplicationMain + 340
20 MyApp 0xd968 main + 42 (AppDelegate.swift:42)
21 ??? 0x1c8366d84 (Missing)
End here is the exception:
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000
This address is always 0x0000000000000000.
Anyone having the similar issue?
Post
Replies
Boosts
Views
Activity
Hello everyone. There is really annoying regression in xcode 14 and 14.1 beta. We have a large modularized workspace. In workspace there is one ios app target that hosts xctestplan that contains over 50 unit test targets. When we try to run tests with cmd+u xcode immidately freezes and force quit is required. This was not an issue with xcode 13.
I tried to run tests via command line with xcodebuild. This time it stucks at prepare packages stage before building any target. After about 7-10 minutes it continues building targets. So I am guessing there is something wrong with resolving target dependencies in xcodebuild.
Anyway this is super frustrating for us and it holds us back to moving xcode 14. Is there other people experiencing the same issue with xcode 14? Did you find any workaround?