Open aaronjrenfroe opened 7 years ago
Ahh, thanks for the stack trace, we can see whats going on
That's issue appears every time when you trying to scroll the list of document pages after the last page. If the last page scrolled for more than half a screen the app crash because the list of thumbnails trying to set current thumbnail index out of the bound.
Was it solved? I ran into the same issue when rotating the device multiple times
Was this solved? I have same issue
It’s been a couple years but I believe I just edited the code in the pod to add a check if it was out of range.
-Aaron
On Apr 14, 2019, at 04:23, 22CLG notifications@github.com<mailto:notifications@github.com> wrote:
Was this solved? I have same issue
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Alua-Kinzhebayeva/iOS-PDF-Reader/issues/60#issuecomment-482929940, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AVFcVTI9aVZq9O0KYJaszKiwJMRbX4nAks5vguVcgaJpZM4O25GL.
So, I've got a single crash report from a live app and the reason given was:
NSInvalidArgumentException: attempt to scroll to invalid index path: <NSIndexPath: 0x174232ce0> {length = 2, path = 0 - 4}
I'm not too worried about it, i'm just trying to figure out how it happened/how it can be prevented. The crash appeared to have taken place in PDFThumbnailCollectionViewController :
if !collectionView.indexPathsForVisibleItems.contains(curentPageIndexPath) { collectionView.scrollToItem(at: curentPageIndexPath, at: .centeredHorizontally, animated: true) }
but you are checking if the collectionview has that indexPath and if true, you are going to it, but the crash appears to say that you tried to go to an index path the the cv did not have.Partial stack trace