[Linux] Sound problems related to locales other than english
Missing menu, intro and ingame sounds when using a system locale different from English, like Spanish on my case.
Workaround suggested by the community:
Recommendations for users with non-English locales and audio problems from DerRidda: Set your launch options to the following
LC_ALL=C LANG=en_US.UTF-8 SDL_AUDIODRIVER=pulse %command%
Información sobre el procesador:
Fabricante: GenuineIntel
Familia de la CPU: 0x6
Modelo de la CPU: 0x3a
Stepping de la CPU: 0x9
Tipo de CPU: 0x0
Velocidad: 3501 MHz
Procesadores lógicos 8
Procesadores físicos 4
HyperThreading: Compatible
FCMOV: Compatible
SSE2: Compatible
SSE3: Compatible
SSSE3: Compatible
SSE4a: No compatible
SSE41: Compatible
SSE42: Compatible
Información sobre la red:
Velocidad de la red:
Versión del sistema operativo:
Ubuntu 14.04.1 LTS (64 bits)
Nombre de kernel: Linux
Versión de kernel: 3.13.0-24-generic
Editor de X Server: The X.Org Foundation
Versión de X Server: 11501000
Gestor X Window: Compiz
Versión del runtime de Steam: steam-runtime-release_2014-08-20
Tarjeta de vídeo:
Controlador: NVIDIA Corporation GeForce GTX 680/PCIe/SSE2
Versión de controlador: 4.4.0 NVIDIA 331.38
Versión de OpenGL: 4.4
Densidad de color del escritorio: 24 bits por píxel
Frecuencia de actualización del monitor: 59 Hz
Identificador del fabricante: 0x10de
Identificador del dispositivo: 0x1180
Número de monitores: 1
Número de tarjetas de vídeo lógicas: 2
Resolución de pantalla principal: 1920 x 1200
Resolución de escritorio: 1920 x 1200
Tamaño de pantalla principal: 20,43" x 12,76" (24,06" diag)
51,9cm x 32,4cm (61,1cm diag)
Bus principal: PCI Express 16x
Memoria VRAM principal: 2048 MB
Modos MSAA compatibles: 2x 4x 8x 16x
Tarjeta de sonido:
Dispositivo de sonido: Intel PantherPoint HDMI
Memoria:
RAM: 7868 Mb
Varios:
Idioma de la IU: Español
IDIOMA: es_ES.UTF-8
Micrófono: Not set
Espacio total en disco disponible: 649514 MB
Bloque libre más grande en el disco: 396104 MB
Software Instalado:
Informes de fallos recientes:
Tue Sep 23 06:57:13 2014 GMT: file ''/tmp/dumps/crash_20140923085535_1.dmp'', upload yes: ''CrashID=bp-f371fa28-2255-4ce8-b3d6-1e8782140922''
Same problem here with Czech language.
Same issue, with Nvidia GTX560(GF114) Drivers 340.32, i7-2600K and 8GiB DDR3 in ArchLinux Linux 3.16.2-1-ARCH x86_64 with Alsa (PulseAudio is not installed)
FR language
EDIT : Fixed to for sound "LC_ALL=C LANG=en_US.UTF-8 SDL_AUDIODRIVER=alsa %command%"
I did throw everything and the kitchen sink at it with these launch options. LC_ALL=C alone is sufficient.
It has to do with locales that use commas instead of periods for decimal separation, it is THE most common issue with any game coming to Linux.
I can reproduce this issue. LC_ALL=C alone is a functionally sufficient workaround, although obviously not acceptable for a stable, released, product.
I came to this conclusion independently upon checking the standard output and finding the following line, and many more like it:
qhull error: the joggle for 'QJn', 9,8e-07, is below roundoff for distance computations, 1
This manifested as many more issues in addition to this sound problem, such as the items in the inventory having zero rotation, and excessive crashing.
For users suffering from this problem can you please paste in your full list of environment variables, to aid in us reproducing the problem?
Here it is: http://pastebin.com/B1S58xXr If it is not enough, please tell me what I should post.
Here its mine http://pastebin.com/9ynrsmhx
and this is what my locale says
LANGUAGE=es
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=
'''
It seems that with LC_ALL=C LANG=en_US.UTF-8 game works as it should. It fixed all of my issues, from sound, physics, shaders, crashes, etc.
What all these systems here have in common is that they use a locale which has commas instead of periods for decimals. This results in the printf family of calls having unexpected output, which can break shader generation and config reading/writing, among others.
LC_NUMERIC is the environment variable to look for, but bear in mind that it is overridden by the value of LC_ALL, and if neither is present, it will have the same value as LANG. So, the way to reproduce this issue is to set the launch options to something like this:
LC_NUMERIC=fi_FI.UTF-8 %command%
This should have been fixed in the update 5/6 days ago.