-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Crash when importing image as FontData if setting rows to 0 #91812
Labels
Milestone
Comments
Could you test if it's reproducible in 4.3dev5? |
The error seems to be here:
columns and rows are used as divisors. There should be an ERR_FAIL_COND if they are 0 |
It is. |
dimitry-
pushed a commit
to AndroidWasm/godot
that referenced
this issue
May 16, 2024
MewPurPur
pushed a commit
to MewPurPur/godot
that referenced
this issue
Jul 11, 2024
2nafish117
pushed a commit
to 2nafish117/godot
that referenced
this issue
Aug 5, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested versions
System information
Windows 10.0.22631 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700S (Advanced Micro Devices, Inc.; 31.0.24031.5001) - AMD Ryzen 9 6900HS with Radeon Graphics (16 Threads)
Issue description
When importing an image as FontData, setting "rows" to 0 in the Import tab and reimporting crashes the editor
Steps to reproduce
Expected: An error is shown into the console since 0 is an invalid value
Actual: The editor crashes and the invalid value gets saved in the .import file
This is just an example, you can cause the same crash by setting columns to 0
Other errors, like having a total character range exceeding rows*columns show properly without causing any crashes
Minimal reproduction project (MRP)
fontdata-mrp.zip
The text was updated successfully, but these errors were encountered: