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

select photo cause crash when camera roll has only 1-3 images on iOS 9 #55

Closed
D-Wang opened this issue Oct 10, 2015 · 2 comments
Closed
Labels
Milestone

Comments

@D-Wang
Copy link

D-Wang commented Oct 10, 2015

I run the demo in the project, when camera roll has very few photo, select will cause crash on iOS 9, iPhone 6s
Here is the crash log and call stack
2015-10-10 14:48:19.865 Example[37983:1364492] *** 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: 0x7f874a7708d0> index path: (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}); element kind: (UICollectionElementKindSectionHeader); frame = (46.7011 5; 47 119); hidden = YES; zIndex = 1; to <UICollectionViewLayoutAttributes: 0x7f874a45f6d0> index path: (<NSIndexPath: 0xc000000000000016> {length = 2, path = 0 - 0}); element kind: (UICollectionElementKindSectionHeader); frame = (46.7011 5; 47 271); hidden = YES; zIndex = 1; without invalidating the layout'
*** First throw call stack:
(
0 CoreFoundation 0x0000000109be5f65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010b9a4deb objc_exception_throw + 48
2 CoreFoundation 0x0000000109be5dca +[NSException raise:format:arguments:] + 106
3 Foundation 0x000000010a02eae2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 198
4 UIKit 0x000000010ad8cafd __45-[UICollectionViewData validateLayoutInRect:]_block_invoke + 921
5 UIKit 0x000000010ad8c240 -[UICollectionViewData validateLayoutInRect:] + 3067
6 UIKit 0x000000010ad3c83e -[UICollectionView layoutSubviews] + 196
7 UIKit 0x000000010a5dd11c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 710
8 QuartzCore 0x000000010c71036a -[CALayer layoutSublayers] + 146
9 QuartzCore 0x000000010c704bd0 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366

@lbrndnr lbrndnr added this to the Version 1.0 milestone Oct 11, 2015
@lbrndnr lbrndnr added the bug label Oct 11, 2015
@lbrndnr
Copy link
Owner

lbrndnr commented Oct 11, 2015

Right, will fix this asap

@lbrndnr
Copy link
Owner

lbrndnr commented Oct 24, 2015

The last tag fixes this issue, thanks for reporting!

@lbrndnr lbrndnr closed this as completed Oct 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants