Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI API called on a background thread #113

Open
grifas opened this issue Mar 1, 2019 · 4 comments
Open

UI API called on a background thread #113

grifas opened this issue Mar 1, 2019 · 4 comments

Comments

@grifas
Copy link

grifas commented Mar 1, 2019

This message appears in the console when I call KVNProgress.show:

Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 2105, TID: 410020, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   libobjc.A.dylib                     0x00000001b2f53894 <redacted> + 56
5   CoreMotion                          0x00000001b97b37a4 CoreMotion + 305060
6   CoreMotion                          0x00000001b97b3cd8 CoreMotion + 306392
7   CoreMotion                          0x00000001b97b3be8 CoreMotion + 306152
8   CoreMotion                          0x00000001b97e53cc CoreMotion + 508876
9   CoreMotion                          0x00000001b97e542c CoreMotion + 508972
10  CoreFoundation                      0x00000001b3cec888 <redacted> + 28
11  CoreFoundation                      0x00000001b3cec16c <redacted> + 276
12  CoreFoundation                      0x00000001b3ce7470 <redacted> + 2324
13  CoreFoundation                      0x00000001b3ce6844 CFRunLoopRunSpecific + 452
14  CoreFoundation                      0x00000001b3ce75a8 CFRunLoopRun + 84
15  CoreMotion                          0x00000001b97e4d64 CoreMotion + 507236
16  libsystem_pthread.dylib             0x00000001b3961a04 <redacted> + 132
17  libsystem_pthread.dylib             0x00000001b3961960 _pthread_start + 52
18  libsystem_pthread.dylib             0x00000001b3969df4 thread_start + 4

Seems to appear only on iOS 12.

@pierrem
Copy link

pierrem commented Mar 1, 2019

I had this kind of crash when calling UI things from another thread than the main thread. Nothing related to CoreMotion !

@grifas
Copy link
Author

grifas commented Mar 11, 2019

But I'm calling show in the main thread :/

DispatchQueue.main.async {
 KVNProgress.show(withStatus: text)
}

@danscheibe
Copy link

Got this error on iOS 12.1 on Iphone XSMax too. It not raised in sim or older hardware. (iphone 7 plus )

@grifas
Copy link
Author

grifas commented Apr 12, 2019

I found this radar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants