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
Main Thread Checker throws Error in Xcode 9.2 #194
Comments
Hey @Ruckt, |
No, I don't get it when trying out your sample project. It seems to be in certain situations only - the first time I press the button it will print out these errors but not subsequent times. In looking up the error, I saw solutions for moving things to |
We are talking about 2 separate issues here:
Is it possible to wrap this up in a tiny, separate project that showcases these errors and share it here? I am not sure any of these is related to the dialog, but let’s find out! |
I found I had the same issue with another pod. I put that line on the main thread and it eliminated the problem. The blur layer is a return line in a getter and i've forgotten a bit of my obj-c so it wasn't so easy to wrap it in a dispatchQueue so I couldn't test it. But if you can tell me how to do it and I can test it out for you - or maybe you want to create a fork....we can test it out that way. |
Do you have liveBlur enabled? FXBlurView is going to be replaced with upcoming dialog versions. |
Yes, how does that contribute? |
Hey there. Not sure yet, just trying to narrow it down. Of course, the subsequent question would be if you see the same problem also with live blur disabled... |
So yes, if I disable live blur, I no longer get that warning. |
Ok, so until FXBlurView is replaced, this will not be fixed. :( Solution for now is to keep liveBlur disabled. However, if you want to investigate, it would be great to have a PR for this! Thanks! |
FXBlurView was replaced with DynamicBlurView with the latest development version and can be tested on the development branch. Just change your pod file to Please report any findings here. Thanks for testing 👍 |
Sorry I won't be of any more help on this one. My project for this client finished and I had to delete the code. |
When presenting the
popup
, the first time it is presented after pressing a button, I get the following logs in the console: First:Warning: Attempt to present ... viewController.... whose view is not in the window hierarchy!
Then:
This issue persists even when wrapping everything in
DispatchQueue.main.async { .. }
.After doing some research, seems like you may have some updating to do as mentioned here:
https://stackoverflow.com/a/44392584/5912335
Or is there another solution?
The text was updated successfully, but these errors were encountered: