matrix
matrix copied to clipboard
iOS Crash: [WCBlockMonitorMgr freeCpuHighThreadArray]
异常类型:app 运行时异常
手机型号:iPhone X
手机系统版本:iOS 13.4.1
matrix版本:2.0.8(master 最新代码)
问题描述:Firebase上收到crash
-[WCBlockMonitorMgr freeCpuHighThreadArray] + 301 (WCBlockMonitorMgr.mm:301)
创建WCCrashBlockMonitorPlugin插件的代码
let config = WCCrashBlockMonitorConfig()
config.enableCrash = true
config.enableBlockMonitor = true
config.reportStrategy = .all
let blockMonitorConfig = WCBlockMonitorConfiguration.defaultConfig() as! WCBlockMonitorConfiguration
blockMonitorConfig.bMainThreadHandle = true
blockMonitorConfig.bGetPowerConsumeStack = true
config.blockMonitorConfiguration = blockMonitorConfig
let plugin = WCCrashBlockMonitorPlugin()
plugin.pluginConfig = config
堆栈:
Fatal Exception: std::__1::system_error
Crashed: com.google.firebase.crashlytics.ios.exception
0 App 0x126556c FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1 App 0x126594c FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2 App 0x125eb14 FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3 App 0x12597d4 __FIRCLSExceptionRecord_block_invoke + 218 (FIRCLSException.mm:218)
4 libdispatch.dylib 0x5b524 _dispatch_client_callout + 16
5 libdispatch.dylib 0x3f1fc _dispatch_lane_barrier_sync_invoke_and_complete + 56
6 App 0x1258f90 FIRCLSExceptionRecord + 225 (FIRCLSException.mm:225)
7 App 0x1258c38 FIRCLSTerminateHandler() + 285 (FIRCLSException.mm:285)
8 libc++abi.dylib 0x1214c std::__terminate(void (*)()) + 16
9 libc++abi.dylib 0x120e4 std::terminate() + 44
10 App 0x151f33c -[WCBlockMonitorMgr freeCpuHighThreadArray] + 301 (WCBlockMonitorMgr.mm:301)
11 App 0x4491f4 e2ee::MLSClient::~MLSClient() + 48 (mls_client.cpp:48)
12 App 0x45b348 std::__1::shared_ptr<e2ee::MLSClient>::~shared_ptr() + 3212 (memory:3212)
13 App 0x45b0f4 e2ee::EncryptionController::~EncryptionController() + 1423 (string:1423)
14 App 0x5e9bf4 std::__1::shared_ptr<KRISP::CONTAINERS::MapObject>::~shared_ptr() + 3488 (memory:3488)
15 App 0x1df5370 app_mobile::E2eeCoreService::~E2eeCoreService() + 64
16 App 0x5e9bf4 std::__1::shared_ptr<KRISP::CONTAINERS::MapObject>::~shared_ptr() + 3488 (memory:3488)
17 App 0x1dfed7c pubsub::observer<app_mobile::E2eeCoreService>::~observer() + 52
18 App 0x5077b8 pubsub::pubsub::~pubsub() + 180
19 App 0x508510 std::__1::__shared_ptr_pointer<pubsub::pubsub*, std::__1::shared_ptr<pubsub::pubsub>::__shared_ptr_default_delete<pubsub::pubsub, pubsub::pubsub>, std::__1::allocator<pubsub::pubsub> >::__on_zero_shared() + 20
20 App 0x4f01c0 std::__1::shared_ptr<logger::filter>::~shared_ptr() + 80
21 libsystem_c.dylib 0x534c8 __cxa_finalize_ranges + 384
22 libsystem_c.dylib 0x537d8 exit + 24
23 UIKitCore 0xa318f0 -[UIApplication terminateWithSuccess] + 502
24 UIKitCore 0x1d1b14 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 124
25 UIKitCore 0x1d179c -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 216
26 UIKitCore 0xa2798c -[UIApplication workspaceShouldExit:withTransitionContext:] + 212
27 FrontBoardServices 0x5490 -[FBSUIApplicationWorkspaceShim workspaceShouldExit:withTransitionContext:] + 84
28 FrontBoardServices 0x305ac __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke_2 + 76
29 FrontBoardServices 0x167ec -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 232
30 FrontBoardServices 0x3053c __83-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:withAcknowledgement:]_block_invoke + 124
31 libdispatch.dylib 0x5b524 _dispatch_client_callout + 16
32 libdispatch.dylib 0x35808 _dispatch_block_invoke_direct$VARIANT$armv81 + 216
33 FrontBoardServices 0x55440 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 40
34 FrontBoardServices 0x5510c -[FBSSerialQueue _queue_performNextIfPossible] + 404
35 FrontBoardServices 0x55634 -[FBSSerialQueue _performNextFromRunLoopSource] + 28
36 CoreFoundation 0xa8b64 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
37 CoreFoundation 0xa8abc __CFRunLoopDoSource0 + 80
38 CoreFoundation 0xa8244 __CFRunLoopDoSources0 + 184
39 CoreFoundation 0xa3274 __CFRunLoopRun + 788
40 CoreFoundation 0xa2c34 CFRunLoopRunSpecific + 424
41 GraphicsServices 0x338c GSEventRunModal + 160
42 UIKitCore 0xa2c22c UIApplicationMain + 1932
43 App 0x8010 main + 13 (main.swift:13)
44 libdyld.dylib 0x1800 start + 4