godotengine / godotengine/godot
Max Integer Error spams when pressing Control key and hovering specific UI elements or Right-Clicking in code editor
- Dominant language
- C++
- Stars
- 117k
- Forks
- 26.8k
- PR merge metrics
- PR metrics pending
Description
### Tested versions
Reproducible in v4.2.2.stable.official [15073afe3] via Steam
Reproducible in v4.1.2.stable.official [399c9dc39]
Reproducible in v4.1.1.stable.official [bd6af8e0e]
Reproducible in v4.0.4.stable.official [fc0b241c9]
Reproducible in v4.0.stable.official [92bee43ad]
Reproducible in v4.0.beta1.official [20d667284]
Reproducible in v4.0.alpha1.official [31a7ddbf8]
Not Reproducible in v3.6.rc1.official [cfc4a0eff] (although the error does appear 3 times as soon as the code is typed)
Not reproducible in v3.5.3.stable.official [6c814135b] (error appears 3 times)
### System information
Windows 10 22H2 - v4.2.2.stable.official [15073afe3] via Steam - Forward+ - NVIDIA GeForce RTX 2080 (Driver 556.12) - Intel Core i7-8700 @ 3.20GHz (12 CPUs)
### Issue description
If you create an integer with a number that is too large (such as 9223372036854775808, for example), you will receive the error "Cannot represent 9223372036854775808 as a 64-bit signed integer, since the value is too large." in your output. However, if you press the Control key on your keyboard while hovered over specific UI elements in the Godot Engine, or right-click inside of the code editor, it will repeatedly send the message.
### Steps to reproduce
Create a script with the following sample code:
var IntTest = 9223372036854775808
You will receive the message "Cannot represent 9223372036854775808 as a 64-bit signed integer, since the value is too large.". Press Control while your mouse is to the right of the integer and you will receive the error again for each. Move your mouse between the equals sign and integer and press control and you will not receive the error, but place your mouse cursor on the equals sign and press control, and you will. Place your mouse cursor over other elements like the Filter Scripts box, a node, the top menu bar, etc. and press Control to receive the error again, but only if the text cursor is in the script editor section (it is "active").
The error will not display when pressing Control on certain other elements, such as the FileSystem, the Output window's Filter Messages box, the Inspector's Filter Properties box, etc.
These errors also appear when Right-Clicking, but only within the script editor window.
Edit: These errors also appear when holding Control and using mouse wheel up/down or +/- keys to zoom (one error per scroll/key press), or Ctrl + 0 to reset zoom (when zoomed in or out).
### Minimal reproduction project (MRP)
[BugTest.zip](https://github.com/user-attachments/files/16448335/BugTest.zip)
Contributor guide
Research direction
Start with the attached BugTest.zip minimal reproduction and reproduce the oversized integer error in the Godot script editor. Exercise Control, right-click, zoom, and related editor interactions while the script editor is active; done means those actions no longer repeatedly emit the same integer-conversion error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- godot
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100