美文网首页
iOS 环信崩溃Assertion failed: (IsObj

iOS 环信崩溃Assertion failed: (IsObj

作者: 20b347b28fc9 | 来源:发表于2018-04-28 14:59 被阅读61次

// 崩溃信息
Assertion failed: (IsObject()), function FindMember, file ../3rd_party/rapidjson/include/rapidjson/document.h, line 916.

解决方案---bugly提供
abort program
SIG是信号名的通用前缀。ABRT是abort program的缩写。

当操作系统发现不安全的情况时,它能够对这种情况进行更多的控制,必要的话,它能要求进程进行清理工作。在调试造成此信号的底层错误时,并没有什么妙招。 如 cocos2d 或 UIKit 等框架通常会在特定的前提条件没有满足或一些糟糕的情况出现时调用 C 函数 abort (由它来发送此信号)。

如果是iOS系统:
发生在UIApplication WillTerminate 时,是主动退出应用时发生的,所以对用户没什么实际影响。
iOS10访问相册时发生,目前只发生在iOS10+系统,需要修改工程plist文件,加入访问权限提示信息。
补充:iOS 10 has updated privacy policy and implemented new privacy rules. You have to update your Info.plist app with this following fields by authorisation asked.

但以上方法不适应我的问题,我的问题出错堆栈显示问题是用的第三方库(环信)的问题,更新一下最新sdk就可以了!出错堆栈如下

// 出错堆栈

0   libsystem_kernel.dylib
__pthread_kill + 8
1   libsystem_pthread.dylib
_pthread_kill$VARIANT$mp + 396
2   libsystem_c.dylib
abort + 140
3   libsystem_c.dylib
basename_r + 0
4   NewForeign
rapidjson::GenericMemberIterator<false, rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::FindMember<rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >(rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> > const&) + 212
5   NewForeign
rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::FindMember(char const*) + 64
6   NewForeign
easemob::EMChatClientImpl::bindUserDeviceToken(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, easemob::EMError&) + 760
7   NewForeign
-[EMClient _bindDeviceToken] + 624
8   NewForeign
-[EMClient loginWithUsername:password:] + 1088
9   NewForeign
__60-[EMClient asyncLoginWithUsername:password:success:failure:]_block_invoke + 56
10  libdispatch.dylib
__dispatch_call_block_and_release + 24
11  libdispatch.dylib
__dispatch_client_callout + 16
12  libdispatch.dylib
__dispatch_queue_override_invoke$VARIANT$mp + 716
13  libdispatch.dylib
__dispatch_root_queue_drain + 600
14  libdispatch.dylib
__dispatch_worker_thread3 + 120
15  libsystem_pthread.dylib
_pthread_wqthread + 1268

相关文章

网友评论

      本文标题:iOS 环信崩溃Assertion failed: (IsObj

      本文链接:https://www.haomeiwen.com/subject/liyglftx.html