-
-
Notifications
You must be signed in to change notification settings - Fork 684
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
Speculative fix for intermittent Wayland issue. #2891
Conversation
As another datapoint, this delay was my first strategy...but I didn't have any luck :/ |
Hrm... your original PR has collapsed all its commit history - I don't suppose you have any records of the specific change you made? In particular, did you do a |
I never actually pushed changes that included a delay because no matter how I incorporated a delay locally changed anything. In #2873, I was mostly just trying to confirm that none of the widgets had focus when the test failed in CI...which is what I was seeing locally. Also, FWIW, this is how I test locally: while true; do WAYLAND_DISPLAY=toga briefcase run --test -- tests/widgets/; sleep 3; done I delete first Additional FWIW, it fails very often on my machine....so, slower machines like CI may be even less likely to experience this failure. |
Could I ask you to take the latest commit on this branch for a spin? It's takes a bit more of a persistent retry approach; if you've got a case that reproduces it (or, at least, more reliably reproduces it than CI), that would be helpful - I don't see it locally. |
failing currently
|
🤦 Save all the file before pushing, Russell... Try it now. |
🤣 no worries Got this on my 2nd or 3rd run:
|
Whelp. And the first run in CI. This one is a doozy... |
Closing on the basis that #2893 fixes the problem. |
A speculative fix for the intermittent Wayland issue. Experimentally from #2873, the issue appears to be that no widget has focus as a result of the
other.focus()
call; one theory is that due to the timing on some machines, the "other" widget isn't quite ready to receive focus. Add a short delay before assigning focus to test that theory.Fixes #2871.
PR Checklist: