Skip to content

Sticky Header scroll error #166

@semnyqu

Description

@semnyqu

iphonex ios11

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'layout attributes for supplementary item at index path (<NSIndexPath: 0xc000000000000516> {length = 2, path = 5 - 0}) changed from <CSStickyHeaderFlowLayout: 0x7fa0c758e060> indexPath: {5, 0} zIndex: 1024 valid: YES kind: UICollectionElementKindSectionHeader to <CSStickyHeaderFlowLayout: 0x7fa0c7592550> indexPath: {5, 0} zIndex: 1024 valid: YES kind: UICollectionElementKindSectionHeader without invalidating the layout'
*** First throw call stack:
(
0 CoreFoundation 0x000000010f3701ab __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010ea05f41 objc_exception_throw + 48
2 CoreFoundation 0x000000010f375372 +[NSException raise:format:arguments:] + 98
3 Foundation 0x000000010e4aa089 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 UIKit 0x0000000110ba774a __45-[UICollectionViewData validateLayoutInRect:]_block_invoke + 1558
5 UIKit 0x0000000110ba6baf -[UICollectionViewData validateLayoutInRect:] + 2964
6 UIKit 0x0000000110ba9eff -[UICollectionViewData layoutAttributesForCellsInRect:validateLayout:] + 167
7 UIKit 0x0000000110b32767 -[UICollectionView _computePrefetchCandidatesForVisibleBounds:futureVisibleBounds:prefetchVector:notifyDelegateIfNeeded:] + 127
8 UIKit 0x0000000110b326d8 -[UICollectionView _computePrefetchCandidatesForVelocity:notifyDelegateIfNeeded:] + 225
9 UIKit 0x0000000110b325e3 -[UICollectionView _prefetchItemsForVelocity:maxItemsToPrefetch:invalidateCandidatesOnDirectionChanges:] + 921
10 UIKit 0x0000000110b3ba73 -[UICollectionView layoutSubviews] + 779
11 UIKit 0x00000001101396f5 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1439
12 QuartzCore 0x000000010f8c03ee -[CALayer layoutSublayers] + 153
13 QuartzCore 0x000000010f8c44dd _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 401
14 QuartzCore 0x000000010f84cded _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 365
15 QuartzCore 0x000000010f878704 _ZN2CA11Transaction6commitEv + 500
16 QuartzCore 0x000000010f7c892c _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 960
17 QuartzCore 0x000000010f904970 ZL22display_timer_callbackP12__CFMachPortPvlS1 + 248
18 CoreFoundation 0x000000010f2ff9c9 __CFMachPortPerform + 169
19 CoreFoundation 0x000000010f2ff909 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 41
20 CoreFoundation 0x000000010f2ff871 __CFRunLoopDoSource1 + 465
21 CoreFoundation 0x000000010f2f7654 __CFRunLoopRun + 2596
22 CoreFoundation 0x000000010f2f69b9 CFRunLoopRunSpecific + 409
23 GraphicsServices 0x00000001158069c6 GSEventRunModal + 62
24 UIKit 0x00000001100685e8 UIApplicationMain + 159
25 CSStickyHeaderFlowLayoutDemo 0x000000010d5410af main + 111
26 libdyld.dylib 0x00000001167f7d81 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions