You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an all exceptions breakpoint enabled. The program stops in SwiftPhotoGallery.swift here:
overridepublicfunc viewDidLayoutSubviews(){letdesiredIndexPath=NSIndexPath(forItem: pageBeforeRotation, inSection:0)
if pageBeforeRotation >0{scrollToImage(pageBeforeRotation, animated: false)}
imageCollectionView.reloadItemsAtIndexPaths([desiredIndexPath])
if let currentCell = imageCollectionView.cellForItemAtIndexPath(desiredIndexPath)as?SwiftPhotoGalleryCell{
currentCell.configureForNewImage()}}
We get this in the output: *** Assertion failure in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.30.14/UICollectionView.m:4324
DesiredIndexPath has "0 values".
When I turn off the exceptions breakpoint and press the continue button in the debugger, it crashes with this message: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in section 0. The number of items contained in an existing section after the update (5) must be equal to the number of items contained in that section before the update (4), plus or minus the number of items inserted or deleted from that section (1 inserted, 1 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out).' *** First throw call stack: (0x183591900 0x182bfff80 0x1835917d0 0x183f0499c 0x188aaf1f8 0x188467588 0x1005aa634 0x1005aa7bc 0x18827f7b8 0x185c8eb2c 0x185c89738 0x185c895f8 0x185c88c94 0x185c889dc 0x188275c78 0x183548588 0x18354632c 0x18354675c 0x183475680 0x184984088 0x1882ecd90 0x100100b60 0x1830168b8) libc++abi.dylib: terminating with uncaught exception of type NSException
The text was updated successfully, but these errors were encountered:
I have an all exceptions breakpoint enabled. The program stops in SwiftPhotoGallery.swift here:
We get this in the output:
*** Assertion failure in -[UICollectionView _endItemAnimationsWithInvalidationContext:tentativelyForReordering:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3512.30.14/UICollectionView.m:4324
DesiredIndexPath has "0 values".
When I turn off the exceptions breakpoint and press the continue button in the debugger, it crashes with this message:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of items in section 0. The number of items contained in an existing section after the update (5) must be equal to the number of items contained in that section before the update (4), plus or minus the number of items inserted or deleted from that section (1 inserted, 1 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out).' *** First throw call stack: (0x183591900 0x182bfff80 0x1835917d0 0x183f0499c 0x188aaf1f8 0x188467588 0x1005aa634 0x1005aa7bc 0x18827f7b8 0x185c8eb2c 0x185c89738 0x185c895f8 0x185c88c94 0x185c889dc 0x188275c78 0x183548588 0x18354632c 0x18354675c 0x183475680 0x184984088 0x1882ecd90 0x100100b60 0x1830168b8) libc++abi.dylib: terminating with uncaught exception of type NSException
The text was updated successfully, but these errors were encountered: