-
Notifications
You must be signed in to change notification settings - Fork 611
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
NSInternalInconsistencyException crash in logs #46
Comments
Do you know how to reproduce? |
It looks like the frame was changed from {0, 0, 0, 0} to something weird, how was your setup of the header? |
I'm not really sure on how to reproduce as these are coming from crash logs, and the stack trace doesn't provide any hints really. My setup is a CSStickyHeader subclass at the top with other cells at the bottom. |
Hey so when I change the value of |
Changing parallaxHeaderReferenceSize sounds reasonable to invalidate the layout. Would viewDidLoad will still have chance more than once after iOS 6? |
What if in viewDidLoad, I'm setting parallaxHeaderReferenceSize just once? |
I'll be checking the doc for |
👍 Thanks for all your work @jamztang! |
Thanks @rounak. I'm checking out other issues and see if there's any more things I can squash into this update before pushing a new version :) |
@jamztang It happens to me in Simulator, but not in device Simulator: Xcode 6.2 / iOS 8.2 After doing a
|
Fatal Exception: NSInternalInconsistencyException layout attributes for supplementary item at index path (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}) changed from <CSStickyHeaderFlowLayoutAttributes: 0x14e6a1ad0> index path: (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}); element kind: (CSStickyHeaderParallexHeader); frame = (0 0; 0 0); to <CSStickyHeaderFlowLayoutAttributes: 0x151865db0> index path: (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}); element kind: (CSStickyHeaderParallexHeader); frame = (0 -1.33333; 414 311.833); without invalidating the layout
Getting a lot of crashes like this with stacktrace:
4 UIKit 0x0000000186c3a87c __45-[UICollectionViewData validateLayoutInRect:]_block_invoke + 1004
5 UIKit 0x0000000186c39f74 -[UICollectionViewData validateLayoutInRect:] + 1492
6 UIKit 0x0000000186c397a0 -[UICollectionView layoutSubviews] + 160
The text was updated successfully, but these errors were encountered: