jpush / jpush-ios-sdk-pod

JPush's officially supported iOS SDK Pod for CocosPods. 极光推送官方支持的 iOS SDK Pod.
https://docs.jiguang.cn
MIT License
28 stars 9 forks source link

JPush 被bugly 卡顿检测 #26

Open aiquantong opened 4 years ago

aiquantong commented 4 years ago

最近公司上线bugly 卡顿检测,代码如下:

0 libsystem_platform.dylib _platform_memcmp + 16 1 CoreFoundation _CFStringEqual + 328 2 CoreFoundation -[NSCFString isEqualToString:] + 164 3 Pasteboard PBIsPasteboardNameGeneralPasteboard + 80 4 Pasteboard -[PBItemCollection(Pasteboard) isSystemPasteboard] + 56 5 Pasteboard -[PBItemCollection(Pasteboard) isPersistent] + 40 6 UIKitCore -[_UIConcretePasteboard _pasteboardCacheQueuesaveItemCollection:currentNotificationState:outNewNotificationState:] + 340 7 UIKitCore 45-[_UIConcretePasteboard _saveItemCollection:]_block_invoke_2 + 48 8 libdispatch.dylib dispatch_client_callout + 16 9 libdispatch.dylib dispatch_lane_barrier_sync_invoke_and_complete + 56 10 UIKitCore _45-[_UIConcretePasteboard _saveItemCollection:]_block_invoke + 116 11 libdispatch.dylib dispatch_client_callout + 16 12 libdispatch.dylib __dispatch_lane_barrier_sync_invoke_and_complete + 56 13 UIKitCore -[_UIConcretePasteboard _saveItemCollection:] + 156 14 UIKitCore -[_UIConcretePasteboard _setItemsAndSave:options:coerceStringsToURLs:] + 1240 15 UIKitCore -[_UIConcretePasteboard _setItemsAndSave:options:] + 64 16 UIKitCore -[_UIConcretePasteboard setItems:options:] + 1416 17 XXXXX 49+[JCOREPasteInfo setPasteboardObject:forName:on:]_block_invoke (JCOREPasteInfo.m:66) 18 libdispatch.dylib dispatch_client_callout + 16 19 libdispatch.dylib dispatch_async_and_wait_invoke + 92

JPush为啥有和剪贴板相关的东西 [JCOREPasteInfo setPasteboardObject:forName:on:]

并且还导致uiblock

aiquantong commented 4 years ago

还有这个地方

0 libsystem_kernel.dylib semaphore_wait_trap + 8
1 libdispatch.dylib __dispatch_sema4_wait$VARIANT$mp + 24
2 libdispatch.dylib __dispatch_semaphore_wait_slow + 140
3 UIKitCore -[_UIConcretePasteboard items] + 604
4 XXXX +[JCOREPasteInfo pasteboardObjectForName:on:] (JCOREPasteInfo.m:0)
5 XXXX __35+[JCOREPasteInfo objectForName:on:]_block_invoke (JCOREPasteInfo.m:96)
6 libdispatch.dylib __dispatch_client_callout + 16
7 libdispatch.dylib __dispatch_async_and_wait_invoke + 92
8 libdispatch.dylib __dispatch_client_callout + 16
9 libdispatch.dylib __dispatch_main_queue_callback_4CF$VARIANT$mp + 1068
10 CoreFoundation _CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12
11 CoreFoundation ___CFRunLoopRun + 1924
12 CoreFoundation CFRunLoopRunSpecific + 436
13 GraphicsServices GSEventRunModal + 104
14 UIKitCore UIApplicationMain + 212
15 XXXXX main (main.m:17)
16 libdyld.dylib _start + 4