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]: CTD and incorrect parameter value when adding GSInfo setting with certain int max values #10059
Comments
Can reproduce in d843c8b on Windows 10, 64-bit (via Steam) with the provided Game Script, triggering the following assertion in the process: OpenTTD/src/widgets/dropdown.cpp Line 146 in d843c8b
Crash files: crash20220928064727.zip Furthermore, depending on the state of |
It's caused by implicit 64 bit to 32 bit conversions. |
Also prevent random_deviation to be below 0.
…to 12 digits, including '-' for negative numbers
Also prevent random_deviation to be below 0.
…to 12 digits, including '-' for negative numbers
Also prevent random_deviation to be below 0.
…to 12 digits, including '-' for negative numbers
Also prevent random_deviation to be below 0.
…to 10 digits + 1 for sign
Also prevent random_deviation to be below 0.
…to 10 digits + 1 for sign
Also prevent random_deviation to be below 0.
…to 10 digits + 1 for sign
…to 10 digits + 1 for sign
Also prevent random_deviation to be below 0.
Version of OpenTTD
OpenTTD 12.2, Windows 10 64-bit
Steps to reproduce
See below for the screenshot at crash time. I have attached a minimal game script setup to test this functionality: MinimalCTDTest.zip
NOTE: if you skip step 5 and do not put a label, the game will not crash but you will instead have incorrect parameters:
In this case, it does not show a drop down but the correct number picker, although it is grayed out. Inputting any number into the parameter will cause it to change from 0 to -29496729
Upload crash files
The exception is "0xC0000094: The thread tried to divide an integer value by an integer divisor of zero."
crash20220928063447.log
The text was updated successfully, but these errors were encountered: