-
Notifications
You must be signed in to change notification settings - Fork 330
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
Parallax triggers Main Thread Checker error #98
Comments
Which version of iOS are you using? And is this happening on the simulator or on a real device? |
There seems to be some weirdness in iOS12.0.1 I see a similar problem on hardware. lionheart/openradar-mirror#20515 Is also similar in that performing an action on the UI Thread causes the Core Motion thread to perform an action which in turn triggers the Main Thread Checker error. |
Thanks @markj! So this is a bug in CoreMotion, not in JGProgressHUD. |
HI, someone help me onthis |
uncheck debug executable in your scheme and try again. (in Xcode, click on your target name in the left side top bar to the right of the stop button > Edit Scheme > Run > Info > uncheck Debug executable > close and relaunch.) This did the trick for me... |
Xcode 10.2.1 - iOS 12.2 @jkaunert this doesn't seem to be the exact way anymore, for me it just simply didn't start the app in debug mode. Instead I disabled the Main Thread Checker under: Works like a charm now. |
Yeah, this works as a temporary workaround. Hopefully a real fix arrives sometime soon... |
I've been getting some Main Thread Checker errors with JGProgressHUD and I think I've pinned them down to the Parallax effect.
I'm triggering the HUD in an
@IBAction
:This triggers the Main Thread Checker error:
If I disable Parallax, the HUD displays fine with no errors:
I've tried running it on the main thread to be sure but it appears the Parallax stuff is running asynchronously on a background thread somewhere:
I spent a bit of time digging into the JGProgressHUD code but I can't quite figure out what's going on with this. Any suggestions? It's possible I'm incorrectly displaying the HUD.
The text was updated successfully, but these errors were encountered: