YBImageBrowser icon indicating copy to clipboard operation
YBImageBrowser copied to clipboard

偶发性Crash reuseIdentifierForCellClass

Open SHRemover opened this issue 5 years ago • 0 comments

线上APP Bugly 捕获到的 偶发性Crash

Error: must pass a valid reuse identifier to -[UICollectionView registerClass:forCellWithReuseIdentifier:]

部分堆栈:

0 CoreFoundation | ___exceptionPreprocess + 220
1 libobjc.A.dylib | objc_exception_throw + 56
2 CoreFoundation | -[NSCache init]
3 UIKitCore | -[UICollectionView registerClass:forCellWithReuseIdentifier:] + 388
4 Product | -[YBIBCollectionView reuseIdentifierForCellClass:] (YBIBCollectionView.m:51)
5 Product | -[YBImageBrowser collectionView:cellForItemAtIndexPath:] (YBImageBrowser.m:375)
6 UIKitCore | -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + 424
7 UIKitCore | -[UICollectionView _updateVisibleCellsNow:] + 4352
  • YBImageBrowser version: 3.0.6
  • iOS version: 13.3.1

SHRemover avatar Apr 29 '20 02:04 SHRemover