Comments (2)
This looks like the same crash as ra1028/DiffableDataSources#28.
from ibpcollectionviewcompositionallayout.
I'm suspicious of IBPCollectionViewCompositionalLayout
not returning attributes for orthogonally-scrolling section items from -layoutAttributesForElementsInRect:
and -layoutAttributesForItemAtIndexPath:
. The iOS 11 crash backtrace looks like this:
#0 0x0000000104fbd001 in objc_exception_throw ()
#1 0x00000001059680bc in _CFThrowFormattedException ()
#2 0x000000010583b72a in -[__NSDictionaryM setObject:forKey:] ()
#3 0x0000000106f87f07 in -[UICollectionView _setVisibleView:forLayoutAttributes:] ()
#4 0x0000000106fa0dcb in __71-[UICollectionView _updateWithItems:tentativelyForReordering:animator:]_block_invoke.1997 ()
#5 0x000000010657c537 in +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] ()
#6 0x000000010657ca0f in +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] ()
#7 0x0000000106fa00f5 in -[UICollectionView _updateWithItems:tentativelyForReordering:animator:] ()
#8 0x0000000106f99cc3 in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:] ()
#9 0x0000000106f95554 in -[UICollectionView _updateRowsAtIndexPaths:updateAction:updates:] ()
and seems to happen when the collection view gets nil
for an attributes's index path, then tries to use that nil index path as a key in a dictionary.
For what it's worth, UIKit's layout does return attributes instances for orthogonally-scrolling sections.
from ibpcollectionviewcompositionallayout.
Related Issues (20)
- the below code of layout section before iOS 13 is not work correctly HOT 2
- No such module 'IBPCollectionViewCompositionalLayout' in UI Test if added via SPM
- Crash on below iOS 13 devices. *** Assertion failure in -[UICollectionViewData layoutAttributesForDecorationViewOfKind:atIndexPath:] HOT 1
- IBPCollectionCompositionalLayoutSolverResult is empty and crashed HOT 1
- Release v0.6.8
- Mistake.
- Fatal error when passing data between view controllers using prepare for segue HOT 1
- visibleCells is empty in iOS 12 HOT 2
- [New Feature Request] Add New Feature in iOS 14 HOT 2
- Generic dataSource.
- Group. ContentInsets iOS12 in the bottom and the trailing cannot properly HOT 3
- [Crash in Swift] When 'debugPrint(visibleItems.first?.indexPath)' in the block of visibleItemsInvalidationHandler HOT 4
- the key define is NSString, here is use NSIndex of key. how reuse this case?
- [Crash]Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'no UICollectionViewLayoutAttributes instance for -layoutAttributesForDecorationViewOfKindOfKind:
- [Crash] Thread 1: EXC_ARITHMETIC (code=EXC_I386_DIV, subcode=0x0)
- collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath) is unexpected
- how to inhert from the layout
- Any update on this repository?
- interItemSpacing issue for nested group HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ibpcollectionviewcompositionallayout.