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

求助!有的界面根本没import 但还是会执行里面的方法,然后crash! #165

Open
AirSars opened this issue Jan 20, 2016 · 7 comments

Comments

@AirSars
Copy link

AirSars commented Jan 20, 2016

为什么我有个界面明明没用这个FD 但在调用reloadRowsAtIndexPaths:@[indexpath] withRowAnimation:UITableViewRowAnimationAutomatic]还是会走到FD的- (void)fd_reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation这个方法中,然后就会时不时的crash!求助啊

@sitale
Copy link

sitale commented Apr 1, 2016

// We just forward primary call, in crash report, top most method in stack maybe FD's,
// but it's really not our bug, you should check whether your table view's data source and
// displaying cells are not matched when reloading.
static void FD_TEMPLATE_LAYOUT_CELL_PRIMARY_CALL_IF_CRASH_NOT_OUR_BUG(void(^callout)(void)) {
callout();
}
#define FDPrimaryCall(...) do {FD_TEMPLATE_LAYOUT_CELL_PRIMARY_CALL_IF_CRASH_NOT_OUR_BUG(^{VA_ARGS});} while(0)

在这里崩溃说明,你包含这个框架的页面还没有dealloc,你的代码真的存在问题,看看是不是在你reload的时候数据源发生改变

@neil-wu
Copy link

neil-wu commented Apr 15, 2016

我在使用 RETableView 时也出现了这样的问题,没有使用FD确在reload时候导致崩溃,还在排查中。。。。

@KenmuHuang
Copy link

+1,使用 1.4 版本,在 iOS 7 下会出现 crash,iOS 8 不会。

错误信息如下:
*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
(null)
(
0 CoreFoundation 0x0000000189fdb11c + 160
1 libobjc.A.dylib 0x00000001964e41fc objc_exception_throw + 60
2 CoreFoundation 0x0000000189ee01a8 + 768
3 UIKit 0x000000018d28f878 + 232
4 UIKit 0x000000018cfd943c + 508
5 UIKit 0x000000018cff17fc + 68
6 UIKit 0x000000018d1c4ec0 + 2452
7 UIKit 0x000000018d199780 + 9848
8 xinli001 0x1001f2488 -[UITableView(FDIndexPathHeightCacheInvalidation) fd_reloadRowsAtIndexPaths:withRowAnimation:] + 272

@KenmuHuang
Copy link

希望能跟进处理下这个问题

@paranoid2006
Copy link

是数据源的问题。在insert之前,有替换过数据源就会导致此错误。

@zenghaojim33
Copy link

确实不知道为什么有时会进入到这个方法中造成崩溃

@zsk425
Copy link

zsk425 commented Jan 9, 2017

并没有修改数据源有时也会出现这个问题

@weekwood weekwood changed the title 求助!有的界面根本没imort 但还是会执行里面的方法,然后crash! 求助!有的界面根本没import 但还是会执行里面的方法,然后crash! Apr 21, 2017
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

7 participants