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

-[UIImageView sd_setImageWithURL:placeholderImage:options:context:]: unrecognized selector sent to instance 0x7fca51bebd60 #3624

Open
rajuworn opened this issue Oct 17, 2023 · 1 comment
Labels

Comments

@rajuworn
Copy link

Stack trace

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIImageView sd_setImageWithURL:placeholderImage:options:context:]: unrecognized selector sent to instance 0x7fca51bebd60'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011123728d __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x000000010b7b8894 objc_exception_throw + 48
	2   CoreFoundation                      0x000000011124c3a3 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
	3   UIKitCore                           0x000000012df92d3c -[UIResponder doesNotRecognizeSelector:] + 266
	4   CoreFoundation                      0x000000011123ba20 ___forwarding___ + 1459
	5   CoreFoundation                      0x000000011123dc28 _CF_forwarding_prep_0 + 120
	6   MyApp                             0x0000000101286ed8 $s7MyApp9TableItemC05pagerB0_07cellForD2At07FSPagerB00iB4CellCA2FC_SitF + 696
	7   MyApp                             0x0000000101286f74 $s7MyApp9TableItemC05pagerB0_07cellForD2At07FSPagerB00iB4CellCA2FC_SitFTo + 68
	8   FSPagerView                         0x000000010b73c684 $s11FSPagerViewAAC010collectionB0_13cellForItemAtSo012UICollectionB4CellCSo0hB0C_10Foundation9IndexPathVtFTo + 180
	9   UIKitCore                           0x000000012d376773 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 1294
	10  UIKitCore                           0x000000012d37625f -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:] + 31
	11  UIKitCore                           0x000000012d381ec7 -[UICollectionView _createVisibleViewsForSingleCategoryAttributes:limitCreation:fadeForBoundsChange:] + 1771
	12  UIKitCore                           0x000000012d38241e -[UICollectionView _createVisibleViewsForAttributes:fadeForBoundsChange:notifyLayoutForVisibleCellsPass:] + 431
	13  UIKitCore                           0x000000012d37fd3a -[UICollectionView _updateVisibleCellsNow:] + 4545
	14  UIKitCore                           0x000000012d387133 -[UICollectionView layoutSubviews] + 372
	15  UIKitCore                           0x000000012e627d07 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2141
	16  QuartzCore                          0x000000010d07ac71 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 527
	17  UIKitCore                           0x000000012e6122e8 -[UIView(Hierarchy) layoutBelowIfNeeded] + 1450
	18  UIKitCore                           0x000000012e619ac4 +[UIView(Animation) performWithoutAnimation:] + 84
	19  UIKitCore                           0x000000012e240eca -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 2133
	20  UIKitCore                           0x000000012e205957 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 788
	21  UIKitCore                           0x000000012e206260 -[UITableView _updateVisibleCellsNow:] + 1800
	22  UIKitCore                           0x000000012e22826e -[UITableView layoutSubviews] + 205
	23  UIKitCore                           0x000000012e627d07 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2141
	24  QuartzCore                          0x000000010d07ac71 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 527
	25  QuartzCore                          0x000000010d086a33 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 67
	26  QuartzCore                          0x000000010cf88464 _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 706
	27  QuartzCore                          0x000000010cfc29ba _ZN2CA11Transaction6commitEv + 728
	28  QuartzCore                          0x000000010cfc3eaa _ZN2CA11Transaction25flush_as_runloop_observerEb + 60
	29  CoreFoundation                      0x0000000111192d94 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	30  CoreFoundation                      0x000000011118d72a __CFRunLoopDoObservers + 534
	31  CoreFoundation                      0x000000011118dc72 __CFRunLoopRun + 1158
	32  CoreFoundation                      0x000000011118d409 CFRunLoopRunSpecific + 557
	33  GraphicsServices                    0x0000000119b54187 GSEventRunModal + 137
	34  UIKitCore                           0x000000012df5b3a2 -[UIApplication _run] + 972
	35  UIKitCore                           0x000000012df5fe10 UIApplicationMain + 123
	36 MyApp                             0x000000010124605f main + 63
	37  dyld                                0x000000010a9d53ee start_sim + 10
	38  ???                                 0x00000002025a641f 0x0 + 8629412895
)
libc++abi: terminating due to uncaught exception of type NSException

Other Details

Xcode-15

SDWebImage 5.18.3, Added using swift packagemanager

This is crash not happened earlier, in Xcode15 and iOS17 the crash is happening

@dreampiggy
Copy link
Contributor

dreampiggy commented Oct 18, 2023

'-[UIImageView sd_setImageWithURL:placeholderImage:options:context:]: unrecognized selector sent to instance 0x7fca51bebd60'

Just simple question. You're calling this API on a non-UIImageView class.

Check your App code firstly, I don't think it's anything issue with SDWebImage.

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

2 participants