IGListKit icon indicating copy to clipboard operation
IGListKit copied to clipboard

crash in invalidateLayoutForSectionController:completion:

Open ishall1 opened this issue 4 years ago • 4 comments

New issue checklist

  • [✅ ] I have reviewed the README and documentation
  • [ ✅] I have searched existing issues and this is not a duplicate
  • [ ❎] I have attempted to reproduce the issue and include an example project.

General information

A cell contains images so i want to change cell's height by calling invalidateLayoutForSectionController:completion: . But It crashed because section of the sectionController is not found in sectionControllerToSectionMap. I noticed it guarded the result in the old version before calling [_collectionView numberOfItemsInSection:section]. I'm wondering why you removed this .

  • IGListKit version: 4.0.0
  • iOS version(s): 14.4.2
  • CocoaPods/Carthage version: 1.10.1
  • Xcode version: 12.5
  • Devices/Simulators affected: iPhone10,5
  • Reproducible in the demo project? (Yes/No):No
  • Related issues:

Debug information

request for number of items in section 9223372036854775807 when there are only 6 sections in the collection view

# Please include debug logs using the following lldb command:
po [IGListDebugger dump]

ishall1 avatar May 31 '21 08:05 ishall1

这个库还有在维护吗?

ishall1 avatar Jul 01 '21 04:07 ishall1

I noticed 4.1.0 resolved this problem but it has 't been released.

ishall1 avatar Jul 01 '21 10:07 ishall1

@ishall1 Have you ever found a solution to this problem? We're getting this crash on iOS 17.x and can reproduce by reloading / removing views.

aleksanderlorenc-lw avatar Feb 19 '24 12:02 aleksanderlorenc-lw

@ishall1 Have you ever found a solution to this problem? We're getting this crash on iOS 17.x and can reproduce by reloading / removing views.

We worked around this bug by refreshing the entire list. The cost can be accepted in our case ☺.

ishall1 avatar Feb 21 '24 01:02 ishall1