Float value UI switches between period and comma delimeters #120896

Open
opened 2024-04-21 22:11:02 +02:00 by Robert S · 8 comments

System Information
Operating system: Linux-6.7.6-201.fsync.fc39.x86_64-x86_64-with-glibc2.38 64 Bits, WAYLAND UI
Graphics card: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.67

Blender Version
Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: 40a5e739e270
Worked: (newest version of Blender that worked as expected)

Short description of error
I got confused as to why my interface blew up 5 times... turns out, the display says "1.0" before you click, but after you click when you start typing, it actually says "1,0" so if you only change the decimal value, you'll risk enlarging the interface to such a degree that it becomes difficult to change it back.

Not sure if this has to do with regional settings in Gnome or what's going on. I'm not very used to Linux yet.

Exact steps for others to reproduce the error

  • Click on interface scale
  • Hit backspace to remove the trailing 0
  • Type 5

Result: Interface scale becomes 5.0

Expected: Interface scale should have become 1.5

**System Information** Operating system: Linux-6.7.6-201.fsync.fc39.x86_64-x86_64-with-glibc2.38 64 Bits, WAYLAND UI Graphics card: NVIDIA GeForce RTX 3050 Ti Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 550.67 **Blender Version** Broken: version: 4.1.0, branch: blender-v4.1-release, commit date: 2024-03-25 20:42, hash: `40a5e739e270` Worked: (newest version of Blender that worked as expected) **Short description of error** I got confused as to why my interface blew up 5 times... turns out, the display says "1.0" before you click, but after you click when you start typing, it actually says "1,0" so if you only change the decimal value, you'll risk enlarging the interface to such a degree that it becomes difficult to change it back. Not sure if this has to do with regional settings in Gnome or what's going on. I'm not very used to Linux yet. **Exact steps for others to reproduce the error** * Click on interface scale * Hit backspace to remove the trailing 0 * Type 5 Result: Interface scale becomes 5.0 Expected: Interface scale should have become 1.5
Robert S added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2024-04-21 22:11:02 +02:00
Member

This appears to be a problem with local settings. sprintf would respect LC_NUMERIC setting for the decimal point, but Blender at the moment isn't designed to support localized number formats and it should only use . as decimal points. In the code blender doesn't call setlocale either. Could you try factory reset blender and see? It's possible that some addons called setlocale in python that caused the problem.

This appears to be a problem with local settings.` sprintf` would respect `LC_NUMERIC` setting for the decimal point, but Blender at the moment isn't designed to support localized number formats and it should only use `.` as decimal points. In the code blender doesn't call `setlocale` either. Could you try factory reset blender and see? It's possible that some addons called `setlocale` in python that caused the problem.
YimingWu added
Status
Needs Information from User
Interest
User Interface
and removed
Status
Needs Triage
labels 2024-04-22 04:10:32 +02:00
YimingWu changed title from Resolution scale switches between period and comma delimeters to Float value UI switches between period and comma delimeters 2024-04-22 04:11:11 +02:00
Author

I have not used Blender on Linux before. This is a fresh install. If you still want me to "factory reset", please let me know the procedure.

I have not used Blender on Linux before. This is a fresh install. If you still want me to "factory reset", please let me know the procedure.
Member

@RobertS I see, then don't need to.

I just tried using blender in fr_FR.UTF-8 locale in ubuntu 22.04 and the dot didn't change to comma, I'm not sure what's going on with your setup...

@RobertS I see, then don't need to. I just tried using blender in `fr_FR.UTF-8` locale in ubuntu 22.04 and the dot didn't change to comma, I'm not sure what's going on with your setup...

Did you change the Blender user interface language from English to something else? If so, which language?

Can you give us the output of running this in the terminal?

env | grep "LC_\|LANG"
Did you change the Blender user interface language from English to something else? If so, which language? Can you give us the output of running this in the terminal? ``` env | grep "LC_\|LANG" ```
Author
LC_ADDRESS=sv_SE.utf8
LC_NAME=sv_SE.utf8
LC_MONETARY=sv_SE.UTF-8
GDM_LANG=en_GB.utf8
LC_PAPER=sv_SE.UTF-8
LANG=en_GB.utf8
LC_IDENTIFICATION=sv_SE.utf8
LC_TELEPHONE=sv_SE.utf8
LC_MEASUREMENT=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8

Language is set to English in Blender.

``` LC_ADDRESS=sv_SE.utf8 LC_NAME=sv_SE.utf8 LC_MONETARY=sv_SE.UTF-8 GDM_LANG=en_GB.utf8 LC_PAPER=sv_SE.UTF-8 LANG=en_GB.utf8 LC_IDENTIFICATION=sv_SE.utf8 LC_TELEPHONE=sv_SE.utf8 LC_MEASUREMENT=sv_SE.UTF-8 LC_TIME=sv_SE.UTF-8 LC_NUMERIC=sv_SE.UTF-8 ``` Language is set to English in Blender.

Unfortunately I have not been able to reproduce the problem even with this information.

If this is Blender from a distribution package rather than downloaded from blender.org, maybe it could be a difference in the Boost version or other library. But looking at the reported version, I think this is a build from blender.org?

There is some unknown difference in the system, but not obvious what. This is Fedora 39, maybe that needs to be tried specifically.

Unfortunately I have not been able to reproduce the problem even with this information. If this is Blender from a distribution package rather than downloaded from blender.org, maybe it could be a difference in the Boost version or other library. But looking at the reported version, I think this is a build from blender.org? There is some unknown difference in the system, but not obvious what. This is Fedora 39, maybe that needs to be tried specifically.
Author

Ok, so this is apparently a version of Blender which comes with Nobara Linux, because I just downloaded the latest version from the official Blender website and when it ran it did not load the settings from the one I already had on my system (and it does not exhibit the bug either). I'm going to try to find out what's different about it.

Ok, so this is apparently a version of Blender which comes with Nobara Linux, because I just downloaded the latest version from the official Blender website and when it ran it did not load the settings from the one I already had on my system (and it does not exhibit the bug either). I'm going to try to find out what's different about it.
Author

Here's what the distro maintainer said:

"we currently do not modify or provide a custom blender, it comes directly from fedora

 Package                               Architecture     Version                       Repository         Size
==============================================================================================================
Installing:
 blender                               x86_64           1:4.0.2-1.fc39                updates            66 M

updates is the fedora-updates repository."
Here's what the distro maintainer said: ``` "we currently do not modify or provide a custom blender, it comes directly from fedora Package Architecture Version Repository Size ============================================================================================================== Installing: blender x86_64 1:4.0.2-1.fc39 updates 66 M updates is the fedora-updates repository." ```
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120896
No description provided.