UITableViewDiffableDatasource crashes on iOS 17

Hi all,

We recently got some new weird crash reports on our monitoring systems. These crashes happen in the table view diffable data source on iOS 17. We had these crashes never before on any other operating systems.

The error says:

Diffable data source detected an item identifier whose hash value changed. The hash value of an identifier cannot change once it has been added to a snapshot.

Based on this information, an item's hash value should never change while we expect diffable datasource's apply() function to reload a row if its hash value changed.

Full report of bug attached

As the exception message explains, the system has detected improper use of diffable data source. Please review this documentation and sample project which explains fundamentals about how to properly use diffable data source and identifiers.

Any updates on this issue? Facing the same issue on iOS 17 and just started investigating, with no luck since the logs are not very helpful.

UITableViewDiffableDatasource crashes on iOS 17
 
 
Q