ra1028 / DifferenceKit

💻 A fast and flexible O(n) difference algorithm framework for Swift collection.

Home Page:https://ra1028.github.io/DifferenceKit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when I reload collectionView

star-essence opened this issue · comments

Checklist

Expected Behavior

Succeed in reloading collectionView.

Current Behavior

Crash.

Steps to Reproduce

We have never produced this in a development environment. But this bug caused 13 crashes only just yesterday in the production environment. So there might be a bad point. We try to reproduce this situation. But we can't reproduce this still now. We are investigating this problem.

Detailed Description (Include Screenshots)

attempt to delete item 16 from section 0 which only contains 16 items before the update

Our app in production crashes at line 156 in UIKitExtension.swift like this on Crashlytics console.↓

スクリーンショット 2021-07-15 11 06 05

I will add more info as soon as we understand the details.
Thanks for this amazing library.

We probably solved this problem by updating the collection view after updating the collection view before. So I close this problem.