gpt4 book ai didi

ios - CFRunLoop 正在调用 Source0 执行函数崩溃

转载 作者:行者123 更新时间:2023-12-01 16:06:08 25 4
gpt4 key购买 nike

应用有时会崩溃,我无法重现这种情况。我正在尝试检查日志并找出导致崩溃的代码块。下面是我崩溃的主要威胁。我认为 CFRunLoop Is Calling Out To A Source0 Perform Function 行(第 23 行)导致了崩溃,但我不确定。如何找到相关函数?

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000185fa416c mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000185fa3fdc mach_msg + 72
2 CoreFoundation 0x0000000186fa1cec __CFRunLoopServiceMachPort + 192
3 CoreFoundation 0x0000000186f9f908 __CFRunLoopRun + 1132
4 CoreFoundation 0x0000000186ece048 CFRunLoopRunSpecific + 444
5 Foundation 0x00000001879dcb1c -[NSRunLoop+ 51996 (NSRunLoop) runMode:beforeDate:] + 304
6 MyAppTargetName 0x0000000100c05464 0x100084000 + 12063844
7 MyAppTargetName 0x0000000100b70408 0x100084000 + 11453448
8 MyAppTargetName 0x0000000100b7ef64 0x100084000 + 11513700
9 MyAppTargetName 0x000000010076b6e4 0x100084000 + 7239396
10 MyAppTargetName 0x000000010076aec0 0x100084000 + 7237312
11 MyAppTargetName 0x000000010076b11c 0x100084000 + 7237916
12 MyAppTargetName 0x0000000100569c28 0x100084000 + 5135400
13 UIKit 0x000000018d09e7ac -[UIApplication _sendWillEnterForegroundCallbacks] + 172
14 UIKit 0x000000018d0d9ccc -[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:] + 2140
15 UIKit 0x000000018d0d91fc -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 452
16 UIKit 0x000000018d0c48f8 __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 152
17 UIKit 0x000000018d0c457c -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 888
18 UIKit 0x000000018d3f5e44 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 464
19 FrontBoardServices 0x0000000188b67b8c __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.376 + 208
20 FrontBoardServices 0x0000000188b958bc __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
21 FrontBoardServices 0x0000000188b95728 -[FBSSerialQueue _performNext] + 176
22 FrontBoardServices 0x0000000188b95ad0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
23 CoreFoundation 0x0000000186fa2278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
24 CoreFoundation 0x0000000186fa1bc0 __CFRunLoopDoSources0 + 524
25 CoreFoundation 0x0000000186f9f7c0 __CFRunLoopRun + 804
26 CoreFoundation 0x0000000186ece048 CFRunLoopRunSpecific + 444
27 GraphicsServices 0x0000000188951198 GSEventRunModal + 180
28 UIKit 0x000000018cea8628 -[UIApplication _run] + 684
29 UIKit 0x000000018cea3360 UIApplicationMain + 208
30 MyAppTargetName 0x0000000100523e68 0x100084000 + 4849256
31 libdyld.dylib 0x0000000185eb05b8 start + 4

最佳答案

__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ 只是意味着“最终运行循环调用了这个”。这几乎意味着“您的应用程序正在运行”。这不是错误的一部分。

错误在此部分,您需要对其进行符号化:

6   MyAppTargetName                 0x0000000100c05464 0x100084000 + 12063844
7 MyAppTargetName 0x0000000100b70408 0x100084000 + 11453448
8 MyAppTargetName 0x0000000100b7ef64 0x100084000 + 11513700
9 MyAppTargetName 0x000000010076b6e4 0x100084000 + 7239396
10 MyAppTargetName 0x000000010076aec0 0x100084000 + 7237312
11 MyAppTargetName 0x000000010076b11c 0x100084000 + 7237916
12 MyAppTargetName 0x0000000100569c28 0x100084000 + 5135400

我怀疑这个框架会立即从您的代码中出来,但是:

5   Foundation                      0x00000001879dcb1c -[NSRunLoop+ 51996 (NSRunLoop) runMode:beforeDate:] + 304

这可能意味着您的代码试图直接处理 runloop,这在技术上是合法的,但这是一种非常先进的技术,可能会产生重大问题。但是你需要在 symbolication 之后查看你自己的代码.

关于ios - CFRunLoop 正在调用 Source0 执行函数崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60113423/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com