ArmorPaint version:
1.0 alpha-97d9614
OS / GPU model:
Windows, NVIDIA GeForce RTX 4080 Laptop GPU, Intel(R) UHD Graphics
Issue description:
It is possible to set a negative value for UI scale in Preferences > Interface, which causes the application to not start anymore. The negative value is created automatically when entering a comma-separated decimal value (e.g., 1,5). Upon confirmation, the value automatically jumps to -1. Only dot-separated decimal values (e.g., 1.5) are accepted correctly.
Severity: Critical - Once this setting is applied, the application becomes completely broken and cannot be executed anymore.
Workaround to recover:
To restore functionality, the user needs to manually edit the configuration file:
- Navigate to the ArmorPaint application folder (e.g., where ArmorPaint.exe is located)
- Open the
data/config.json file in a text editor
- Find the
"window_scale" parameter
- Change the negative value (e.g., -1) to a valid positive value (e.g., 1.0 or 1.5)
- Save the file and restart ArmorPaint
This appears to be a locale issue where the application expects decimal points (.) but users with comma-based locales (German, etc.) naturally enter commas, which are incorrectly parsed and result in negative values.
Steps to reproduce:
- Open ArmorPaint
- Go to Preferences > Interface
- In the UI scale field, enter a decimal value with a comma (e.g., 1,5)
- Confirm the value
- Observe that the value automatically changes to -1
- Close and restart ArmorPaint
- Application fails to start due to the negative UI scale value
Expected behavior:
- The UI scale field should either:
- Accept both comma and decimal point separators based on system locale
- Reject invalid input and show a clear error message
- Prevent negative values from being saved
- Provide input validation to ensure only valid positive values are accepted
ArmorPaint version:
1.0 alpha-97d9614
OS / GPU model:
Windows, NVIDIA GeForce RTX 4080 Laptop GPU, Intel(R) UHD Graphics
Issue description:
It is possible to set a negative value for UI scale in Preferences > Interface, which causes the application to not start anymore. The negative value is created automatically when entering a comma-separated decimal value (e.g., 1,5). Upon confirmation, the value automatically jumps to -1. Only dot-separated decimal values (e.g., 1.5) are accepted correctly.
Severity: Critical - Once this setting is applied, the application becomes completely broken and cannot be executed anymore.
Workaround to recover:
To restore functionality, the user needs to manually edit the configuration file:
data/config.jsonfile in a text editor"window_scale"parameterThis appears to be a locale issue where the application expects decimal points (.) but users with comma-based locales (German, etc.) naturally enter commas, which are incorrectly parsed and result in negative values.
Steps to reproduce:
Expected behavior: