Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS][error] NSInternalInconsistencyException when rotating an image right after another image was scanned #123

Open
aksell opened this issue May 22, 2024 · 0 comments

Comments

@aksell
Copy link

aksell commented May 22, 2024

Hey, thanks for making this library we're really happy with it!

We've had a problem where our app crashes if right after scanning a photo, you click into the list of already scanned photos and rotate one of the images.

Here's a video demonstration:

output.mov

This is the error I'm seeing:

NSInternalInconsistencyException
Invalid update: invalid number of items in section 0. The number of items contained in an existing section after the update (3) must be equal to the number of items contained in that section before the update (2), plus or minus the number of items inserted or deleted from that section (0 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out). Collection view: <UICollectionView: 0x14a18da00; frame = (0 0; 375 667); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x280d443c0>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x280238880>; contentOffset: {687, 0}; contentSize: {1061, 667}; adjustedContentInset: {0, 0, 0, 0}; layout: <ICDocCamReorderingThumbnailCollectionViewLayout: 0x14dc24840>; dataSource: <ICDocCamExtractedDocumentViewController: 0x14a1be200>>

Let me know if there is anything I can do to help fix this or if you need more information.

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

No branches or pull requests

1 participant