-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Description
I notice that when I enable Main Thread Checker in Xcode 9, I see these warnings when GetAppController() method in UnityAppController.h is called.
Calling UI API from another thread rather than Main thread more or less cause some lags in the UI drawing I believe. Does anyone suggest a good way to fix this ?
Thanks in advanced.
Here's full log:
2017-10-26 11:57:16.365031+0700 nexus[3836:955175] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication delegate]
PID: 3836, TID: 955175, Thread name: (none), Queue name: NSOperationQueue 0x1c4e3ee00 (QOS: UNSPECIFIED), QoS: 0
Backtrace:
4 nexus 0x000000010083cf04 UnityCurrentOrientation + 64
5 nexus 0x00000001015debac _Z20UnityReorientVector3fff + 36
6 nexus 0x00000001015deaa4 __UnityCoreMotionStart_block_invoke + 292
7 Foundation 0x0000000183e72310 <redacted> + 16
8 Foundation 0x0000000183db29e4 <redacted> + 72
9 Foundation 0x0000000183da2620 <redacted> + 848
10 libdispatch.dylib 0x000000010f10545c _dispatch_client_callout + 16
11 libdispatch.dylib 0x000000010f111b74 _dispatch_block_invoke_direct + 268
12 libdispatch.dylib 0x000000010f10545c _dispatch_client_callout + 16
13 libdispatch.dylib 0x000000010f111b74 _dispatch_block_invoke_direct + 268
14 libdispatch.dylib 0x000000010f111a34 dispatch_block_perform + 104
15 Foundation 0x0000000183e73fe8 <redacted> + 376
16 libdispatch.dylib 0x000000010f10545c _dispatch_client_callout + 16
17 libdispatch.dylib 0x000000010f112800 _dispatch_continuation_pop + 592
18 libdispatch.dylib 0x000000010f11109c _dispatch_async_redirect_invoke + 628
19 libdispatch.dylib 0x000000010f116b54 _dispatch_root_queue_drain + 616
20 libdispatch.dylib 0x000000010f116880 _dispatch_worker_thread3 + 136
21 libsystem_pthread.dylib 0x00000001830d3130 _pthread_wqthread + 1268
22 libsystem_pthread.dylib 0x00000001830d2c30 start_wqthread + 4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels