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

Sample project crashed after picking the date (iOS 8.1 simulator) #14

Open
xgjames opened this issue Jan 5, 2015 · 1 comment
Open

Comments

@xgjames
Copy link

xgjames commented Jan 5, 2015

I was running the project under Xcode 6.1. It works totally fine in iOS 7.1 simulator, while which crashed in iOS 8.1 simulator after the date was picked and the following animation.

The error log is here as follow:

2015-01-05 17:12:43.886 CalendarIOS7[96693:7856404] *** Assertion failure in -[UICollectionViewData validateLayoutInRect:], /SourceCache/UIKit_Sim/UIKit-3318.16.14/UICollectionViewData.m:426
2015-01-05 17:12:47.084 CalendarIOS7[96693:7856404] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'layout attributes for supplementary item at index path (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}) changed from <UICollectionViewLayoutAttributes: 0x7fea296342c0> index path: (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}); element kind: (UICollectionElementKindSectionHeader); frame = (0 383.5; 320 30); zIndex = 1024; to <UICollectionViewLayoutAttributes: 0x7fea2964c0c0> index path: (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}); element kind: (UICollectionElementKindSectionHeader); frame = (0 0; 320 30); zIndex = 1024; without invalidating the layout'
*** First throw call stack:
(
0 CoreFoundation 0x000000010fe04f35 exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010fa9dbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010fe04d9a +[NSException raise:format:arguments:] + 106
3 Foundation 0x000000010f6ba5df -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 UIKit 0x000000010e9b23f7 __45-[UICollectionViewData validateLayoutInRect:]_block_invoke + 855
5 UIKit 0x000000010e9b1b6e -[UICollectionViewData validateLayoutInRect:] + 2747
6 UIKit 0x000000010e9797b8 -[UICollectionView layoutSubviews] + 170
7 UIKit 0x000000010e3bf973 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 521
8 QuartzCore 0x00000001102eade8 -[CALayer layoutSublayers] + 150
9 QuartzCore 0x00000001102dfa0e _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
10 QuartzCore 0x00000001102df87e _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
11 QuartzCore 0x000000011024d63e _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
12 QuartzCore 0x000000011024e74a _ZN2CA11Transaction6commitEv + 390
13 QuartzCore 0x000000011024edb5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 89
14 CoreFoundation 0x000000010fd39dc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION
+ 23
15 CoreFoundation 0x000000010fd39d20 __CFRunLoopDoObservers + 368
16 CoreFoundation 0x000000010fd2fb53 __CFRunLoopRun + 1123
17 CoreFoundation 0x000000010fd2f486 CFRunLoopRunSpecific + 470
18 GraphicsServices 0x00000001126e09f0 GSEventRunModal + 161
19 UIKit 0x000000010e346420 UIApplicationMain + 1282
20 CalendarIOS7 0x000000010e03cba3 main + 115
21 libdyld.dylib 0x00000001106b8145 start + 1
22 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

@vishw3
Copy link

vishw3 commented Mar 17, 2015

same issue could rent even catch that exception point using exception break point.

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