leancloud / ChatKit-OC

此项目已经废弃,以后不再维护。我们推出了基于 Swift SDK 的 Chat Demo。
https://github.com/leancloud/swift-sdk-demo
MIT License
2.12k stars 461 forks source link

最近联系人列表crash, SDK处理异常,请联系SDK维护者修复 #340

Closed ramboli1986 closed 7 years ago

ramboli1986 commented 7 years ago

Base Info for this issue

刷新最近联系人列表进入聊天controller的时候经常crash, 有的时候不crash也无法获取数据。卡在mj refresh的库中: UIScrollView+MJRefresh.m

if (mj_header != self.mj_header) {
        // 删除旧的,添加新的
        [self.mj_header removeFromSuperview];  //崩溃处
        [self insertSubview:mj_header atIndex:0];

        // 存储新的
        [self willChangeValueForKey:@"mj_header"]; // KVO
        objc_setAssociatedObject(self, &MJRefreshHeaderKey,
                                 mj_header, OBJC_ASSOCIATION_ASSIGN);
        [self didChangeValueForKey:@"mj_header"]; // KVO
    }

以下是终端信息 2017-08-03 03:02:21.951816 WeSquare[10873:2644953] 🔴类名与方法名:-[LCCKConversationService queryTypedMessagesWithConversation:timestamp:limit:block:]_block_invoke(在第722行),描述:类名与方法名:-[LCCKConversationService queryTypedMessagesWithConversation:timestamp:limit:block:]_block_invoke(在第721行),描述:SDK处理异常,请联系SDK维护者修复luohanchenyilong@163.com

  1. ChatKit Version:0.10.1
  2. App-ID: XX
  3. Language:Swift
  4. iOS System Version:iOS10
  5. Prototype(是否是真机):YES
  6. Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A

1. How to repeat the problem.

2. Please help me in this way.

3. Here is a Demo.

4. Here is my Debug log