You are not logged in.

#1 2024-11-30 07:59:01

TheKnightsky
Member
Registered: 2024-11-22
Posts: 12

[Solved] Minecraft Crash C Locale Error

Hi,
I installed the minecraft-launcher package from yay and have the proprietary NVIDIA graphics driver installed. When I try to launch the launcher through shell, I get this output

ace@AceStrix ~]$ minecraft-launcher
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
https://launchermeta.mojang.com/v1/products/launcher/6f083b80d5e6fabbc4236f81d0d8f8a350c665a9/linux.json

(process:35481): Gtk-WARNING **: 13:12:49.259: Locale not supported by C library.
        Using the fallback 'C' locale.
OK
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid

While setting up Arch Linux during installation I had used "en_GB.UTF-8"  by editing /etc/locale.gen and then running the following

locale-gen
echo LANG=en_GB.UTF-8 > /etc/locale.conf
export LANG=en_GB.UTF-8

I am using the KDE environment with SDDM, an AMD CPU and dedicated NVIDIA GPU and I'm using the "jre-openjdk" package which can be confirmed with

 [ace@AceStrix ~]$ archlinux-java status
Available Java environments:
  java-23-openjdk (default)

Please let me know what the issue is and how to tackle this.

Last edited by TheKnightsky (2024-11-30 09:38:09)

Offline

#2 2024-11-30 09:22:39

TheKnightsky
Member
Registered: 2024-11-22
Posts: 12

Re: [Solved] Minecraft Crash C Locale Error

The command " LC_ALL=C minecraft-launcher " seems to work but without it I can't seem to launch it

Offline

#3 2024-11-30 09:37:42

TheKnightsky
Member
Registered: 2024-11-22
Posts: 12

Re: [Solved] Minecraft Crash C Locale Error

Update:
I had only uncommented en_GB.UTF-8
but by also uncommenting en_US.UTF-8 and regenerating the locales, I can now use minecraft-launcher normally.
Marking it as solved but I still don't understand why this happens, please let me know.

Offline

#4 2024-11-30 11:59:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,477
Website

Re: [Solved] Minecraft Crash C Locale Error

Mod note: moving to AUR Issues


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB