andreamazz / AMScrollingNavbar

Scrollable UINavigationBar that follows the scrolling of a UIScrollView
MIT License
6.05k stars 634 forks source link

Fatal Exception: NSInternalInconsistencyException UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xcf6b25b9e4f777ac> {length = 2, path = 0 - 2} #405

Closed avneeshagr closed 2 years ago

avneeshagr commented 2 years ago

Describe the bug A crash is happening Intermittently. (for version 5.7.3) Error message : Fatal Exception: NSInternalInconsistencyException UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xcf6b25b9e4f777ac> {length = 2, path = 0 - 2}

Expected behavior No Crash should be there.

Screenshots Attaching a screenshot of the stack trace for reference from firebase.

Screenshot 2021-10-14 at 12 49 25 PM
andreamazz commented 2 years ago

I don't see how it's related to this library, the crash occurs on a UICollectionView after a layout change.