-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
toEventually in Xcode 15 somtimes results in "main run loop was unresponsive" #1095
Comments
After digging more into this topic, I suspect that this is related to the issue: https://discuss.circleci.com/t/severe-performance-problems-with-xcode-15/49205 |
@obrhoff were you able to find any solution for this? I have many of these issues with |
Unfortunately not. It still happened randomly, and I left the project to keep track of what happened in the meantime. |
@younata do you have any ideas about this? Not sure how common this issue is but in our projects this happens 100% of the time when running the full suite. |
Hey @tahirmt The "main run loop was unresponsive" error happens when the the main thread gets blocked while canceling the polling. The way that polling expectations work is that they run 2 tasks at the same time. The first task runs on the main thread and does the work of continuously polling the matcher until the conditions of the assertion pass. The second task runs on a background thread, where it waits until the timeout period has passed, and if the second task hasn't been canceled yet, then it cancels the first task and reports a failure. This second task failing to cancel the first task in time is what causes the "main run loop was unresponsive" error to happen. It's a minor race condition where if the main thread is blocked long enough for the Fixing this race condition is on my radar, but this is rather complex code and I'm always a bit hesitant to mess with it. |
Has anyone found a resilient workaround for this? Every once in a while we seem to be affected by this issue |
What did you do?
We upgraded our Azure DevOps Pipeline from Xcode 14 to 15.
What did you expect to happen?
Tests that use toEventually() should succeed like before.
What actually happened instead?
Some Tests are now randomly failing with
main run loop was unresponsive
when they use toEventually()The tests are really simple.
Environment
List the software versions you're using:
Please also mention which package manager you used and its version. Delete the
other package managers in this list:
The text was updated successfully, but these errors were encountered: