Iglistkit: This algorithm is way too slow with so many objects:1752 App Crash IGListWorkingRangeHandler.mm

Created on 19 Apr 2019  Â·  3Comments  Â·  Source: Instagram/IGListKit

missing-info

Most helpful comment

Hi @DixPatel009 – do you have any more info that would be helpful here?

All 3 comments

Hi @DixPatel009 – do you have any more info that would be helpful here?

Closing this for now. Feel free to open with more context!

Sent with GitHawk

I have the same problem when I use:

[self.adapter scrollToObject:last
                  supplementaryKinds:nil
                     scrollDirection:UICollectionViewScrollDirectionVertical
                      scrollPosition:UICollectionViewScrollPositionTop
                            animated:YES];

Stack info:

Trapped uncaught exception 'NSInternalInconsistencyException', reason: 'This algorithm is way too slow with so many objects:1196' 
(
    0   CoreFoundation                      0x00000001b2368980 93BD750D-2ECE-3E38-8405-9E46EFE482C6 + 1255808
    1   libobjc.A.dylib                     0x00000001b2081028 objc_exception_throw + 60
    2   CoreFoundation                      0x00000001b22654fc 93BD750D-2ECE-3E38-8405-9E46EFE482C6 + 193788
    3   Foundation                          0x00000001b26f84e4 80C31587-F538-3437-966F-300F6632EB95 + 906468
    4   IGListKit                           0x0000000106bd5ab0 -[IGListWorkingRangeHandler _updateWorkingRangesWithListAdapter:] + 2052
    5   IGListKit                           0x0000000106bd4c4c -[IGListWorkingRangeHandler willDisplayItemAtIndexPath:forListAdapter:] + 1284
    6   IGListKit                           0x0000000106b9942c -[IGListAdapter(UICollectionView) collectionView:willDisplayCell:forItemAtIndexPath:] + 740
    7   UIKitCore                           0x00000001b5c87e4c AA897CA9-8D15-3DD7-BB4F-8D90F9A28571 + 2575948
    8   UIKitCore                           0x00000001b5c888fc AA897CA9-8D15-3DD7-BB4F-8D90F9A28571 + 2578684
    9   UIKitCore                           0x00000001b5c8cb54 AA897CA9-8D15-3DD7-BB4F-8D90F9A28571 + 2595668
    10  UIKitCore                           0x00000001b5c916b0 AA897CA9-8D15-3DD7-BB4F-8D90F9A28571 + 2614960
    11  UIKitCore                           0x00000001b6909b1c AA897CA9-8D15-3DD7-BB4F-8D90F9A28571 + 15690524
    12  libobjc.A.dylib                     0x00000001b207ca4c A486C2B3-41B0-3F23-AF40-C5579F5BE97E + 6732
    13  QuartzCore                          0x00000001b8f1fa9c A3363F67-6783-3979-8FA9-5563ABD4737D + 1403548
    14  QuartzCore                          0x00000001b8f1feec A3363F67-6783-3979-8FA9-5563ABD4737D + 1404652
    15  QuartzCore                          0x00000001b8f32614 A3363F67-6783-3979-8FA9-5563ABD4737D + 1480212
    16  QuartzCore                          0x00000001b8e771c4 A3363F67-6783-3979-8FA9-5563ABD4737D + 713156
    17  QuartzCore                          0x00000001b8ea1fd0 A3363F67-6783-3979-8FA9-5563ABD4737D + 888784
    18  QuartzCore                          0x00000001b8ddb7bc A3363F67-6783-3979-8FA9-5563ABD4737D + 75708
    19  QuartzCore                          0x00000001b8ea9cc8 A3363F67-6783-3979-8FA9-5563ABD4737D + 920776
    20  CoreFoundation                      0x00000001b22b9dac 93BD750D-2ECE-3E38-8405-9E46EFE482C6 + 540076
    21  CoreFoundation                      0x00000001b22e47c4 93BD750D-2ECE-3E38-8405-9E46EFE482C6 + 714692
    22  CoreFoundation                      0x00000001b22e3e90 93BD750D-2ECE-3E38-8405-9E46EFE482C6 + 712336
    23  CoreFoundation                      0x00000001b22deac8 93BD750D-2ECE-3E38-8405-9E46EFE482C6 + 690888
    24  CoreFoundation                      0x00000001b22ddf40 CFRunLoopRunSpecific + 480
    25  GraphicsServices                    0x00000001bc55b534 GSEventRunModal + 108
    26  UIKitCore                           0x00000001b6456a60 UIApplicationMain + 1940
    27  TimeHut                             0x0000000103d764f8 main + 124
    28  libdyld.dylib                       0x00000001b215ce18 9059087B-727B-3B45-B672-09E5B03E6020 + 3608
)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

HarshilShah picture HarshilShah  Â·  3Comments

lucabartoletti picture lucabartoletti  Â·  3Comments

kleiberjp picture kleiberjp  Â·  3Comments

shuhrat10 picture shuhrat10  Â·  3Comments

PhilCai1993 picture PhilCai1993  Â·  3Comments