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

NSInternalInconsistencyException since iOS 18 #266

Open
lukeredpath opened this issue Jan 29, 2025 · 2 comments
Open

NSInternalInconsistencyException since iOS 18 #266

lukeredpath opened this issue Jan 29, 2025 · 2 comments
Labels

Comments

@lukeredpath
Copy link

lukeredpath commented Jan 29, 2025

🐛 Bug Report

We have started seeing crash reports from our app originating from the GIPHY SDK since the end of November - very low frequency, only half a dozen or so.

To Reproduce

There is no useful stack trace but the full error is:

NSInternalInconsistencyException
Expected dequeued view to be returned to the collection view in preparation for display. When the collection view's data 
source is asked to provide a view for a given index path, ensure that a single view is dequeued and returned to the collection 
view. Avoid dequeuing views without a request from the collection view. For retrieving an existing view in the collection view, 
use -[UICollectionView cellForItemAtIndexPath:] or -[UICollectionView supplementaryViewForElementKind:atIndexPath:]. 
Dequeued view: <GiphyUISDK.GPHMediaCell: 0x126380000; baseClass = UICollectionViewCell; frame = (0 0; 390 180); 
clipsToBounds = YES; gestureRecognizers = <NSArray: 0x302c8db90>; layer = <CALayer: 0x30287e900>>; Collection view: 
<UICollectionView: 0x14beb9c00; frame = (0 0; 390 321); clipsToBounds = YES; gestureRecognizers = <NSArray: 
0x30204e310>; backgroundColor = UIExtendedGrayColorSpace 0 0; layer = <CALayer: 0x3028440e0>; contentOffset: {0, 
0}; contentSize: {390, 185}; adjustedContentInset: {0, 0, 0, 0}; layout: <GiphyUISDK.GPHWaterfallLayout: 0x14cbdaa80>; 
dataSource: <GiphyUISDK.GiphyGridController: 0x1260f9900>>

From our Sentry event log, it appears that the user is searching for a GIF in the GIPHY UI leading up to the crash.

Your Environment

  • Giphy iOS SDK version: 2.2.5
  • Dependency Manager: SPM
  • Xcode Version: 16.2
  • Swift Version: 6.0
  • Device info (Simulator/Device? iOS version? Debug/Release?): We have seen crashes on both iOS 18.0.1 and 18.1.1 on numerous iPhone models.
@lukeredpath lukeredpath added the bug Something isn't working label Jan 29, 2025
@leschlogl
Copy link

Hey @lukeredpath ,

Could you try using the latest version of the SDK? This issue was fixed in version 2.2.11

Thank you!

@lukeredpath
Copy link
Author

Hi, yes we'll be shipping this change in our next release. I will report back. Thanks.

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

No branches or pull requests

3 participants