Skip to content

CollectionScreen crashes after reloading data #801

@nickyhajal

Description

@nickyhajal

I have a CollectionScreen that I'm using to display dates. If I change the dates on the collection and call reload_data, I get the following error:

'NSInternalInconsistencyException', reason: 'UICollectionView received layout attributes for a cell with an index path that does not exist: <NSIndexPath: 0xc000000000e00016> {length = 2, path = 0 - 7}'

The web is full of reports like the following:

http://villageblacksmith.consulting/uicollectionviewcontroller-crashes/

However, calling this.collectionViewLayout.invalidateLayout or this.collectionView.collectionViewLayout.invalidateLayout seems to have no effect.

The error is exactly the same no matter what data I update with (even an empty array).

I've been trying to resolve this for about 24 hours with no progress so I wanted to check in to see if anyone here has thoughts on how to get data reloading properly.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions