-
Notifications
You must be signed in to change notification settings - Fork 14
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
on macos, clicking "down" on the UI scale feature will crash the application #50
Comments
When I run it from the command line and click on the scale down button, I get the following error message. It seems that the size of something is set to 0.
|
It does not crash when the scale value is changed directly. |
For some reason, SpinBox.value_changed seems to be called many times on macOS, causing it to go to 0 and crash. As a temporary measure, setting SpinBox.min_value to a value greater than 0 seems to prevent the crash. |
I think value_changed should be called only once on a mouse click, but value_changed is being called on the frame during mouse down. |
Thanks @cmr624 for the report and @shiena for debugging the issue. I've set the minimum value to 0.25 to prevent the crash. What I see is that SpinBox reacts to holding the mouse down and dragging up and down to change the value. This, combined with the UI scaling must be causing problems on OSX. I cannot reproduce it on Windows. Since that's related to the way a native Godot node works it should be reported here: https://github.com/godotengine/godot/issues |
@noidexe |
GVM is not doing anything special other than connecting to value_changed. I suspect what triggers the issue is the resizing of the window. On Windows I see the cursor being repositioned so it's exactly in the same position relative to the SpinBox. It might be that on mac it doesn't happen, and Godot interprets that as a drag motion, which triggers another UI resize, and so on |
If I comment out |
Using:
macos Ventura 13.2.1 (22D68)
Apple M1 Max
The text was updated successfully, but these errors were encountered: