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

Crash -[ASCollectionView layoutSubviews] on iOS 17 #2099

Open
Danil-Korotaev opened this issue Feb 13, 2024 · 1 comment
Open

Crash -[ASCollectionView layoutSubviews] on iOS 17 #2099

Danil-Korotaev opened this issue Feb 13, 2024 · 1 comment

Comments

@Danil-Korotaev
Copy link

Danil-Korotaev commented Feb 13, 2024

We are seeing a lot of crashes in our Crashlytics. About 11k crashes, 9k users are affected. The information states that it crashes only on iOS 17. On all devices, RAM is up to 300 MB.
This started to happen after the release of the application with support for xcode 15 and the texture updated to master (where there is Fix build errors and a crash in xcode 15). Previously there was version 3.0.0.
Then we made a fork and returned to 3.0.0. We made a cherry peak with a fix for xcode 15. The crashes continue.
The fall cannot be reproduced.
Maybe you know what the problem might be?

NSInternalInconsistencyException - the collection view's data source did not return a valid cell from -collectionView:cellForItemAtIndexPath: for index path <NSIndexPath:

> {length = 2, path = 0 - 0}

Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0xec69c __exceptionPreprocess
1 libobjc.A.dylib 0x2bc80 objc_exception_throw
2 Foundation 0x6b0dd8 _userInfoForFileAndLine
3 UIKitCore 0xd2578 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:]
4 UIKitCore 0xd1044 -[UICollectionView _createVisibleViewsForSingleCategoryAttributes:limitCreation:fadeForBoundsChange:]
5 UIKitCore 0xd0ab0 -[UICollectionView _createVisibleViewsForAttributes:fadeForBoundsChange:notifyLayoutForVisibleCellsPass:]
6 UIKitCore 0x7b1c8 -[UICollectionView _updateVisibleCellsNow:]
7 UIKitCore 0x7a4e4 -[UICollectionView layoutSubviews]
8 OurApp 0x11b79f8 -[ASCollectionView layoutSubviews] + 1796 (ASCollectionView.mm:1796)
9 UIKitCore 0x3297c -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
10 OurApp 0x1191ca0 -[_ASDisplayLayer layoutSublayers] + 84 (_ASDisplayLayer.mm:84)
11 QuartzCore 0x66aa8 CA::Layer::layout_if_needed(CA::Transaction*)
12 QuartzCore 0x27e4d8 -[CALayer layoutIfNeeded]
13 OurApp 0x11c8ea4 -[ASDisplayNode _recursivelyTriggerDisplayAndBlock:] + 1439 (ASDisplayNode.mm:1439)
14 OurApp 0x11c8830 __49+[ASDisplayNode scheduleNodeForRecursiveDisplay:]_block_invoke_2 + 1300 (ASDisplayNode.mm:1300)
15 OurApp 0x1209b38 -[ASRunLoopQueue processQueue] + 101 (wrap_iter.h:101)
16 CoreFoundation 0x3583c CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
17 CoreFoundation 0x34244 __CFRunLoopDoObservers
18 CoreFoundation 0x33960 __CFRunLoopRun
19 CoreFoundation 0x33478 CFRunLoopRunSpecific
20 GraphicsServices 0x34f8 GSEventRunModal
21 UIKitCore 0x22c62c -[UIApplication _run]
22 UIKitCore 0x22bc68 UIApplicationMain
23 UIKitCore 0x4563d0 __swift_destroy_boxed_opaque_existential_1Tm
24 OurApp 0x2d4ebc main (AppDelegate.swift)
25 ??? 0x1aab7adcc (Missing)

@liukundavid
Copy link

Same crash on Xcode 16.0 beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants