ios 12.1 下出現 Main Thread Checker: UI API called on a background thread

ruru7947
2018-11-08 04:07 6.6k 0

在12.01 跟 12.1 測試,只會在12.1出現

```
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 1153, TID: 193781, Thread name: org.hxhg.jiguang.thread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 libobjc.A.dylib 0x00000001809a3894 + 56
5 CoreLocation 0x000000018879727c CLClientStopVehicleHeadingUpdates + 142084
6 CoreLocation 0x000000018876e388 CoreLocation + 21384
7 CoreLocation 0x000000018876ea78 CLClientCreateWithBundleIdentifierAndPathOnRunLoop + 128
8 CoreLocation 0x000000018876e980 CLClientCreateWithBundleIdentifierAndPath + 320
9 CoreLocation 0x000000018877a114 CLClientStopVehicleHeadingUpdates + 22940
10 CoreLocation 0x000000018877a918 CLClientStopVehicleHeadingUpdates + 24992
11 TYCThree 0x00000001026168fc -[JCORELocationController setupLocationManager] + 108
12 TYCThree 0x00000001026159c8 -[JCORELocationController initWithDelegate:] + 124
13 TYCThree 0x0000000102633a10 -[JPUSHHttpSessionController init] + 204
14 TYCThree 0x000000010261ddc4 -[JPUSHNetworkController init] + 156
15 TYCThree 0x0000000102617c74 -[JCOREClientController networkService] + 72
16 TYCThree 0x000000010261a0c4 -[JCOREClientController reportSession] + 24
17 TYCThree 0x0000000102617d84 -[JCOREClientController reportLaunch:] + 68
18 TYCThree 0x0000000102617b9c -[JCOREClientController setup] + 696
19 TYCThree 0x000000010264e27c +[JCOREInterface setup] + 56
20 TYCThree 0x000000010267a9e8 -[JPUSHClientController setup] + 148
21 libobjc.A.dylib 0x00000001809a3604 + 68
22 Foundation 0x0000000182272da8 + 340
23 CoreFoundation 0x00000001817396a0 + 28
24 CoreFoundation 0x000000018173961c + 92
25 CoreFoundation 0x0000000181738ed4 + 180
26 CoreFoundation 0x0000000181733bb4 + 1032
27 CoreFoundation 0x0000000181733494 CFRunLoopRunSpecific + 452
28 CoreFoundation 0x00000001817341f8 CFRunLoopRun + 84
29 TYCThree 0x0000000102642b00 -[JPUSHThread clientThreadMain] + 100
30 Foundation 0x0000000182135f30 + 72
31 Foundation 0x0000000182272bb4 + 1044
32 libsystem_pthread.dylib 0x00000001813ae9c8 + 132
33 libsystem_pthread.dylib 0x00000001813ae924 _pthread_start + 52
34 libsystem_pthread.dylib 0x00000001813b6ddc thread_start + 4
2018-11-08 11:57:41.732891+0800 TYCThree[1153:193781] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 1153, TID: 193781, Thread name: org.hxhg.jiguang.thread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4 libobjc.A.dylib 0x00000001809a3894 + 56
5 CoreLocation 0x000000018879727c CLClientStopVehicleHeadingUpdates + 142084
6 CoreLocation 0x000000018876e388 CoreLocation + 21384
7 CoreLocation 0x000000018876ea78 CLClientCreateWithBundleIdentifierAndPathOnRunLoop + 128
8 CoreLocation 0x000000018876e980 CLClientCreateWithBundleIdentifierAndPath + 320
9 CoreLocation 0x000000018877a114 CLClientStopVehicleHeadingUpdates + 22940
10 CoreLocation 0x000000018877a918 CLClientStopVehicleHeadingUpdates + 24992
11 TYCThree 0x00000001026168fc -[JCORELocationController setupLocationManager] + 108
12 TYCThree 0x00000001026159c8 -[JCORELocationController initWithDelegate:] + 124
13 TYCThree 0x0000000102633a10 -[JPUSHHttpSessionController init] + 204
14 TYCThree 0x000000010261ddc4 -[JPUSHNetworkController init] + 156
15 TYCThree 0x0000000102617c74 -[JCOREClientController networkService] + 72
16 TYCThree 0x000000010261a0c4 -[JCOREClientController reportSession] + 24
17 TYCThree 0x0000000102617d84 -[JCOREClientController reportLaunch:] + 68
18 TYCThree 0x0000000102617b9c -[JCOREClientController setup] + 696
19 TYCThree 0x000000010264e27c +[JCOREInterface setup] + 56
20 TYCThree 0x000000010267a9e8 -[JPUSHClientController setup] + 148
21 libobjc.A.dylib 0x00000001809a3604 + 68
22 Foundation 0x0000000182272da8 + 340
23 CoreFoundation 0x00000001817396a0 + 28
24 CoreFoundation 0x000000018173961c + 92
25 CoreFoundation 0x0000000181738ed4 + 180
26 CoreFoundation 0x0000000181733bb4 + 1032
27 CoreFoundation 0x0000000181733494 CFRunLoopRunSpecific + 452
28 CoreFoundation 0x00000001817341f8 CFRunLoopRun + 84
29 TYCThree 0x0000000102642b00 -[JPUSHThread clientThreadMain] + 100
30 Foundation 0x0000000182135f30 + 72
31 Foundation 0x0000000182272bb4 + 1044
32 libsystem_pthread.dylib 0x00000001813ae9c8 + 132
33 libsystem_pthread.dylib 0x00000001813ae924 _pthread_start + 52
34 libsystem_pthread.dylib 0x00000001813b6ddc thread_start + 4
(lldb)

3个回答

热门排序