iOS最新版JCore崩溃


(Switeefish) #1
0 libobjc.A.dylib objc_msgSend + 16
1 App __40-[JCORESisManager requestReportAddress:]_block_invoke (JCORESisManager.m:881)
2 App __30-[JCOREHttpSis requst:result:]_block_invoke (JCOREHttpSis.m:262)
3 App __30-[JCOREHttpSis requst:result:]_block_invoke.241 (JCOREHttpSis.m:280)
4 App -[JCOREURLSessionController URLSession:task:didCompleteWithError:] (JCOREURLSessionController.m:0)
5 CFNetwork ___51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke.182 + 252
6 Foundation _NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 16
7 Foundation -[NSBlockOperation main] + 72
8 Foundation -[__NSOperationInternal _start:] + 740
9 Foundation ___NSOQSchedule_f + 272
10 libdispatch.dylib __dispatch_call_block_and_release + 24
11 libdispatch.dylib __dispatch_client_callout + 16
12 libdispatch.dylib __dispatch_continuation_pop$VARIANT$mp + 412
13 libdispatch.dylib __dispatch_async_redirect_invoke + 600
14 libdispatch.dylib __dispatch_root_queue_drain + 372
15 libdispatch.dylib __dispatch_worker_thread2 + 128
16 libsystem_pthread.dylib _pthread_wqthread + 464

JPush 3.2.0 Crash
(Switeefish) #2

#26103 SIGSEGV
SEGV_ACCERR

APP __40-[JCORESisManager requestReportAddress:]_block_invoke (JCORESisManager.m:)

崩溃发生在主线程,设备机型:iPhone 7 Plus,系统版本:12.2 (16E227)


#3

该崩溃可以复现吗?复现步骤如何?

出现频次多高?

确认下 JPush 和 JCore 的具体版本号


(Switeefish) #4
  • JCore (2.0.0)
  • JPush (3.2.0)

出现的频次还好,但是每天都有收到这类崩溃,之前版本没有出现过这类崩溃,。


(Switeefish) #5

又收到了另外一类崩溃日志。

#3 Thread

SIGSEGV

SEGV_ACCERR

解析原始
0 CoreFoundation _mdict_removeObjectForKey + 144
1 CoreFoundation 0x00000001880e6000 + 3190782745200236
2 APP 0x0000000104f84000 + 24364627924224704
3 APP __45-[JCORENetworkQueue copyQueue:withCondition:]_block_invoke (JCORENetworkQueue.m:0)
4 CoreFoundation -[__NSArrayM enumerateObjectsWithOptions:usingBlock:] + 232
5 APP 0x0000000104f84000 + 10192472798006500
6 APP -[JCORETcpChannelController reenqueueSendingRequests] (JCORETcpChannelController.m:680)
7 APP -[JCORETcpChannelController socket:connectStateChanged:] (JCORETcpChannelController.m:456)
8 APP -[JCOREConnectManager socket:connectStateChanged:] (JCOREConnectManager.m:619)
9 APP -[JCORENetwork connectStateChanged:] (JCORENetwork.m:192)
10 libobjc.A.dylib -[NSObject performSelector:withObject:] + 68
11 Foundation 0x0000000188b65000 + 4758136570499636
12 CoreFoundation 0x00000001880e6000 + 2202321791146324
13 CoreFoundation 0x00000001880e6000 + 12650431034087632
14 CoreFoundation 0x00000001880e6000 + 26405871253377420
15 CoreFoundation 0x00000001880e6000 + 17625721149750880
16 CoreFoundation CFRunLoopRunSpecific + 5880737941160388
17 Foundation 0x0000000188b65000 + 12044600126506364
18 Foundation 0x0000000188b65000 + 22770336055709296
19 APP 0x0000000104f84000 + 28083726004953496
20 Foundation -[NSThread main] + 72
21 Foundation 0x0000000188b65000 + 2132502803370048
22 libsystem_pthread.dylib 0x0000000187e0c000 + 28279988822219040
23 libsystem_pthread.dylib _pthread_start + 14867046474973232


#6

这两种错误是以前都没有出现过的是吧?

你客户端有没有复现到这个错误?


(Switeefish) #7

是的,上个版本从来没有出现过这几个崩溃,就是更新了这个版本才出现的,今天又陆陆续续收到几个这样的崩溃。我们这边没办法复现哦


#8

根据崩溃堆栈信息,分析可能原因是多线程同步问题,JCore2.0.2版本会做一次处理,由于不好重现,发布后需要你这边升级后再观测留意这个问题

如果你之后有复测到这个问题有更多信息可以继续提供


(Switeefish) #9

好的,2.1.0版本预计什么时候发布?


#10

现在可以更新到最新的 JCore 2.0.2 观察一下


#11

14 个帖子被分离到了新主题:升级至JCore 2.0.2 后有崩溃产生