-
Notifications
You must be signed in to change notification settings - Fork 120
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
Calculator example: jumpy relayout and panic when changing window size on macOS #455
Comments
This panic was in debug mode. In release mode there are lots of errors/warnings instead:
|
For me, just hovering over buttons is enough to trigger a crash from this.
|
Thanks for the reports. The panic @jaredoconnell is related to the hot state. This should be resolved when we implement linebender/rfcs#7, and isn't really possible to fix before then without changing the behaviour of the buttons to not have a border. This occurs because in |
Thank you for your reply.
I was using the mouse at the window borders/corner to trigger the panic. It's reproducible best when run in debug mode and resizing both window width and height. Sometimes it didn't occur but reappeared after restarting the calc example. Could be a race condition or even undefined behaviour. The jumpy relayouting when resizing the window height is always reproducible. |
Right. I guess your desktop environment is bringing the mouse inside the window as you drag it. I think the crash is the same issue @jaredoconnell is reporting. Can you provide a video showing the jumpy resizing you're seeing - the effect seemed very subtle to me, and I couldn't notice it just using the mouse. |
jumpy.mp4 |
In the last few seconds you can see another subtlety: the hovering marker of the button changes. |
I've first come across the vertical jumpiness/jitteryness with https://github.com/veniamin-ilmer/minesweeper_xilem. But now i suppose it's a problem with the fundamental layouting. |
Changing the window height leads to jumpy relayouting. This does not happen with changing the window width.
Changing window width and height eventually leads to a panic.
The text was updated successfully, but these errors were encountered: