ios 切换到Xcode 14测试版后,我得到了这个错误:QOS_CLASS_USER_INITIATED正在等待以QOS_CLASS_DEFAULT运行的较低QoS线程

lskq00tm  于 2022-12-20  发布在  iOS
关注(0)|答案(2)|浏览(2365)

我的应用程序运行良好,我没有得到这个错误的Xcode 13.4,是Xcode 14测试版错误或我做了一些坏线程?!
第一个月

我不明白这个问题,所以我也添加了我的堆栈日志:

_TtGC7SwiftUI14_UIHostingViewVVS_P10$1dc8d4d8821BridgedNavigationView8RootView_ implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
2022-06-07 18:53:41.412342+0430 MyApp[916:25641] [UIFocus] _TtCC7SwiftUI17HostingScrollView22PlatformGroupContainer implements focusItemsInRect: - caching for linear focus movement is limited as long as this view is on screen.
Thread Performance Checker: Thread running at QOS_CLASS_USER_INITIATED waiting on a lower QoS thread running at QOS_CLASS_DEFAULT. Investigate ways to avoid priority inversionsPID: 916, TID: 25815
Backtrace
=================================================================
3   MyApp                                 0x0000000102c7665c -[_FSRRunLoopThread runLoop] + 44
4   MyApp                                 0x0000000102c763a8 __45+[NSRunLoop(FSRWebSocket) FSR_networkRunLoop]_block_invoke + 124
5   libdispatch.dylib                   0x00000001054318fc _dispatch_client_callout + 16
6   libdispatch.dylib                   0x0000000105433240 _dispatch_once_callout + 80
7   MyApp                                 0x0000000102c76304 +[NSRunLoop(FSRWebSocket) FSR_networkRunLoop] + 84
8   MyApp                                 0x0000000102c6ff30 -[FSRWebSocket _connect] + 68
9   MyApp                                 0x0000000102c6ed60 -[FSRWebSocket open] + 216
10  MyApp                                 0x0000000102c4ebdc -[FWebSocketConnection open] + 248
11  MyApp                                 0x0000000102c4d3c4 -[FConnection open] + 112
12  MyApp                                 0x0000000102bf1404 -[FPersistentConnection openNetworkConnectionWithContext:] + 588
13  MyApp                                 0x0000000102bf1078 __45-[FPersistentConnection tryScheduleReconnect]_block_invoke_2 + 332
14  MyApp                                 0x0000000102c3d0fc -[FIRDatabaseConnectionContextProvider fetchContextForcingRefresh:withCallback:] + 264
15  MyApp                                 0x0000000102bf0f0c __45-[FPersistentConnection tryScheduleReconnect]_block_invoke + 460
16  MyApp                                 0x0000000102c1c0d8 -[FIRRetryHelperTask execute] + 92
17  MyApp                                 0x0000000102c1c6dc __24-[FIRRetryHelper retry:]_block_invoke + 84
18  libdispatch.dylib                   0x00000001054300c4 _dispatch_call_block_and_release + 24
19  libdispatch.dylib                   0x00000001054318fc _dispatch_client_callout + 16
20  libdispatch.dylib                   0x0000000105438a58 _dispatch_lane_serial_drain + 688
21  libdispatch.dylib                   0x00000001054396d0 _dispatch_lane_invoke + 424
22  libdispatch.dylib                   0x0000000105445150 _dispatch_workloop_worker_thread + 696
23  libsystem_pthread.dylib             0x000000023db94ddc _pthread_wqthread + 284
24  libsystem_pthread.dylib             0x000000023db94908 start_wqthread + 8
bvn4nwqk

bvn4nwqk1#

由于代码中的优先级反转,您将收到此消息。更多详细信息,请单击此处:https://developer.apple.com/documentation/xcode/diagnosing-performance-issues-early
更具体地说,您使用的是dispatch_group_wait,它不提供优先级反转避免;所以你的等待线程很容易发生反转,看起来就是这样。

8ljdwjyq

8ljdwjyq2#

尝试将您的Xcode更新到14.2。此问题已在更新版本中得到修复。谢谢,

相关问题