Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

Fatal Exception: NSInternalInconsistencyException attempt to delete item #X+1 from section 0 which only contains #X items before the update #88

Open
sourabhardwaj opened this issue Mar 9, 2018 · 2 comments

Comments

@sourabhardwaj
Copy link

I am getting a random crash in photoLibraryDidChange delegate of GMGridViewController. The depicted line 561 is not that much correct because it has closing braces for me in the source code.

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x185b63d38 __exceptionPreprocess
1  libobjc.A.dylib                0x185078528 objc_exception_throw
2  CoreFoundation                 0x185b63c0c +[NSException raise:format:]
3  Foundation                     0x1864f2c24 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4  UIKit                          0x18f9f4548 -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:animator:]
5  UIKit                          0x18f9fa4d4 -[UICollectionView _endUpdatesWithInvalidationContext:tentativelyForReordering:animator:]
6  UIKit                          0x18f9fa7b8 -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:animator:]
7  UIKit                          0x18f9fa614 -[UICollectionView _performBatchUpdates:completion:invalidationContext:tentativelyForReordering:]
8  UIKit                          0x18f9fa598 -[UICollectionView _performBatchUpdates:completion:invalidationContext:]
9  UIKit                          0x18f1316c0 -[UICollectionView performBatchUpdates:completion:]
10 MyApplication                       0x1021a3e24 __46-[GMGridViewController photoLibraryDidChange:]_block_invoke (GMGridViewController.m:561)
11 libdispatch.dylib              0x1854e9088 _dispatch_call_block_and_release
12 libdispatch.dylib              0x1854e9048 _dispatch_client_callout
13 libdispatch.dylib              0x1854f5b74 _dispatch_main_queue_callback_4CF$VARIANT$mp
14 CoreFoundation                 0x185b0bf20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
15 CoreFoundation                 0x185b09afc __CFRunLoopRun
16 CoreFoundation                 0x185a2a2d8 CFRunLoopRunSpecific
17 GraphicsServices               0x1878bbf84 GSEventRunModal
18 UIKit                          0x18efd7880 UIApplicationMain
19 MyApplication                       0x1021d5868 main (AppDelegate.swift:23)
20 libdyld.dylib                  0x18554e56c start

Any information would help.

Thanks in advance,
Sourabh

@JayarajTrans
Copy link

Yes same issue.

@alexrfan03
Copy link

Did you guys ever figure out a solution to this problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants