org.hxhg.jiguang.thread 线程崩溃
您好:我们的App苹果审核被拒。
- Apple的回复如下:
Your app crashed on iPhone running iOS 11.2 connected to an IPv6 network when we:
Specifically, your app crashed when user attempts to login.
This occurred when your app was used:
- Offline
- On Wi-Fi
We have attached detailed crash logs to help troubleshoot this issue.
崩溃报告摘抄如下:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4297539584
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
Thread 10 name: org.hxhg.jiguang.thread
Thread 10 Crashed:
0 CoreFoundation 0x0000000184b3a9cc 0x184b24000 + 92620
1 CoreFoundation 0x0000000184b3a9ac 0x184b24000 + 92588
.....
使用atos 命令解析崩溃报告信息如下:
-[JMSGHTTPRequestSerializer observeValueForKeyPath:ofObject:change:context:] (in ) + 360
-[JMSGHTTPRequestSerializer setTimeoutInterval:] (in ) + 136
-[JMSGHttpManager createHeader] (in ) + 328
-[JMSGUserHttp createHeader] (in ) + 64
-[JMSGHttpManager p_HttpRequest:urlString:parameters:success:failure:] (in ) + 476
-[JMSGHttpManager POST:parameters:success:failure:] (in ) + 108
+[JMSGUserHttp p_userInfoListRequestWithUrl:parameter:hasRetried:handle:] (in ) + 288
+[JMSGUserHttp userInfoArrayWithIDArray:requestType:appKey:completionHandler:] (in ) + 440
+[JMSGUser(JMSGInner) p_getUserInfoWithIDArray:requestType:appKey:completionHandler:] (in ) + 204
+[JMSGUser(JMSGInner) jmsg_userInfoArrayWithIDArray:requestType:appKey:completionHandler:] (in ) + 776
+[JMSGUser(JMSGInner) jmsg_userInfoArrayWithIDArray:requestType:completionHandler:] (in ) + 216
+[JMSGUser(JMSGInner) jmsg_updateCurrentUserInfoWithHandler:] (in ) + 360
+[JMSGUser pp_afterLoginedLoadSDKMustDataHandler:] (in ) + 32
__51+[JMSGUser p_loginWithParameter:completionHandler:]_block_invoke_2 (in ) + 252
+[JMessage jmsg_updateDBWithCompletionHandler:] (in ) + 412
__51+[JMSGUser p_loginWithParameter:completionHandler:]_block_invoke (in ) + 872
-[JPUSHIMResponse resultBlockTrigger] (in ) + 460
-[JPUSHIMUserResponse resultBlockTrigger] (in ) + 40
-[JPUSHIMLoginResponse resultBlockTrigger] (in ) + 1156
-[JPUSHIMController onReceiveResponseForSequence:withCode:WithResponse:] (in ) + 1328
-[JPUSHIMResponse handleReceipt] (in ) + 264
-[JPUSHIMUserResponse handleReceipt] (in ) + 40
-[JPUSHIMLoginResponse handleReceipt] (in ) + 40
-[JPUSHTcpSocket delayedDidReceiveElement:] (in ) + 76
-[JPUSHTcpSocket doRead] (in ) + 476
-[JPUSHTcpSocket doCFSocketCallback:forSocket:withData:] (in ) + 316
MyTcpCFSocketCallback (in ) + 252
-[JPUSHThread clientThreadMain] (in ) + 100
- App使用ionic1开发,插件:jmessage-phonegap-plugin (版本:3.0.17),cordova-plugin-jcore (版本:1.1.8)
对应 SDK 版本 3.2.1
代码调用:
1). 初始化调用:
document.addEventListener("deviceready", function () {
JMessage.init({'isOpenMessageRoaming': false});
JMessage.setDebugMode({'enable': false});
//设置全局免打扰,默认关闭
JMessage.isNoDisturbGlobal(function (result) {
var isNoDisturb = result.isNoDisturb;
if (!isNoDisturb) {
JMessage.setNoDisturbGlobal({isNoDisturb: true}, function () {
});
}
});
});
2)用户登录后调用:
JMessage.login({'username': userName, 'password': IMPASSWORD}, function () {
console.log(userName + " login success.");
}, function (error) {
window.prompt("消息初始化失败: " + error.description);
});
麻烦帮分析一下,定位错误,非常感谢!