Skip to content
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

GD-486: Fix image size errors at startup #488

Merged
merged 1 commit into from
Jun 1, 2024
Merged

GD-486: Fix image size errors at startup #488

merged 1 commit into from
Jun 1, 2024

Conversation

MikeSchulze
Copy link
Owner

Why

On macOS there are errors on startup.

Godot Engine v4.2.1.stable.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
  core/variant/variant_utility.cpp:1091 - invalid height:16 vs 32
  Invalid image: null
  core/variant/variant_utility.cpp:1091 - invalid height:16 vs 32
  Invalid image: null
  core/variant/variant_utility.cpp:1091 - invalid height:16 vs 32
  Invalid image: null
  core/variant/variant_utility.cpp:1091 - invalid height:16 vs 32
  Invalid image: null
  core/variant/variant_utility.cpp:1091 - invalid height:16 vs 32
  Invalid image: null
  core/variant/variant_utility.cpp:1091 - invalid height:16 vs 32
  Invalid image: null
Loading GdUnit4 Plugin success

What

  • disable the image size check when merge icons because it has different size on macOS 16vs32 pixels

@MikeSchulze MikeSchulze self-assigned this Jun 1, 2024
@MikeSchulze MikeSchulze linked an issue Jun 1, 2024 that may be closed by this pull request
@MikeSchulze MikeSchulze added bug Something isn't working UI labels Jun 1, 2024
@MikeSchulze MikeSchulze merged commit 1edb6c1 into master Jun 1, 2024
@MikeSchulze MikeSchulze deleted the GD-486 branch June 1, 2024 08:45
@didierGuieu
Copy link

didierGuieu commented Jun 1, 2024

Not sure, it's only linked to macos. it's also probably linked to the hiDPI monitor.
Pehraps you need to check with EditorInterface.get_editor_scale()
https://docs.godotengine.org/en/stable/classes/class_editorinterface.html#class-editorinterface-method-get-editor-scale
In my case, the factor is 2.0 and it's exactly the scale factor encountered in the errors.

@MikeSchulze
Copy link
Owner Author

Not sure, it's only linked to macos. it's also probably linked to the hiDPI monitor. Pehraps you need to check with EditorInterface.get_editor_scale() https://docs.godotengine.org/en/stable/classes/class_editorinterface.html#class-editorinterface-method-get-editor-scale In my case, the factor is 2.0 and it's exactly the scale factor encountered in the errors.

Thanks for the hint, I will check this.

@MikeSchulze
Copy link
Owner Author

Thanks for the feedback, yes you are right.
I checked, and the image is scaled, I use scale 150% also on Windows.

  core/variant/variant_utility.cpp:1091 - invalid height:16 vs 24
  Invalid image: null
check icon size 16 24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GD-486: Error in the output console at the startup of the addin
2 participants