DZNEmptyDataSet icon indicating copy to clipboard operation
DZNEmptyDataSet copied to clipboard

There have been many crash times

Open Dong1108 opened this issue 8 years ago • 4 comments

EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x000000016dbabfe0

UIScrollView+EmptyDataSet.m line 622 dzn_implementationKey UIScrollView+EmptyDataSet.m line 596 dzn_original_implementation UIScrollView+EmptyDataSet.m line 611 dzn_original_implementation

Dong1108 avatar Nov 01 '17 04:11 Dong1108

@Dong1108 did you ever figure this out? I am having what looks to be a similar issue:

screen shot 2018-06-01 at 9 56 40 am

I want to say, that this may be caused by trying to reloadData() on an optional collectionView in my layout and the collectionView was deallocated before it could do so... but I am not sure

mmdock avatar Jun 01 '18 16:06 mmdock

This library swizzles a couple of methods, namely -reloadData. The crash you're seeing is likely nothing with the library, but the swizzled method hiding the true cause of the crash. If you set the tableView's emptyDataSource and emptyDelegate both to nil to disable using this library you should see what the true cause of the crash is.

colinhumber avatar Jun 18 '18 21:06 colinhumber

@colinhumber I just removed DZNEmptyDataSet from project and used an alternative project

mmdock avatar Jun 18 '18 21:06 mmdock

@mmdock Fair enough! At any rate, if you run into this again, typically the swizzled method is fine but can hide the true crash location.

colinhumber avatar Jun 18 '18 21:06 colinhumber