IGListKit: Crash trying perform update data at end a request many times
New issue checklist
- I have reviewed the
READMEand documentation - I have searched existing issues and this is not a duplicate
General information
IGListKitversion: 2.1.0- iOS version(s): 10.2
- CocoaPods/Carthage version: Cocoapods 1.2.0
- Xcode version: 8.2.1
- Devices/Simulators affected:
- Reproducible in the demo project? (Yes/No): No
- Related issues:
I have a section with an horizontal section and theri adapter inside the main, the horizontal section has N number of objects and execute a request call for another objects of the horizontall section, when the process end and try performupdate the horizontall section , have the following crash when try making scroll so fast and update the data at same time
On that moment when make scroll so fast and is executing request and calling the reload data the method crash and says:
"Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to insert section 1 but there are only 1 sections after the update"
i have tried put the request in another thread with priority .userInitiated , thinking was isse of request, but notthing
here is a project test with the failure… if you scroll slowly, the working is normal, try making scroll so fast Test IGListKit Failure.zip
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 18 (10 by maintainers)
I downloaded the project and after I pointed it to master I am unable to make this crash. It seems like you were running into #517 😃
This should fix it as @rnystrom pointed out
I finally got it to crash again… Sorry for my misunderstanding 😃 To be able to help you debug I will see if I can figure out a way to get it to crash consistently. It is tiresome to sit here dragging down insanely fast 😉
Btw I see tons of these:
Have you tried to fix this? UICollectionView has some weird cases and starting there seems like a good starting point 😃
@rnystrom @heumn @jessesquires hi guys sorry by the late… i have updated the issue description with the project test… hope you can helpe with a solution pls… and respect to the verify of diff identifiers @heumn , already check that diff identifiers were the correct and doesn´t work.