OrcaSlicer icon indicating copy to clipboard operation
OrcaSlicer copied to clipboard

Crashes when language set to en on a system without en_GB support

Open n3oney opened this issue 11 months ago • 6 comments

Is there an existing issue for this problem?

  • [X] I have searched the existing issues

OrcaSlicer Version

2.2.0

Operating System (OS)

Linux

OS Version

NixOS unstable

Additional system information

No response

Printer

Ender 3 Pro

How to reproduce

Set your language to english (en in OrcaSlicer.conf) Launch the slicer

Actual results

Observe this error: Switching Orca Slicer to language en_GB failed. You may need to reconfigure the missing locales image

Expected results

It launches.

Project file & Debug log uploads

no related logs

Checklist of files to include

  • [ ] Log file
  • [ ] Project file

Anything else?

Seems to be the same issue as this: https://github.com/prusa3d/PrusaSlicer/issues/3368

n3oney avatar Dec 03 '24 19:12 n3oney

Getting the same error, not sure where en_GB comes from since my system is set to en_IE. edited the OrcaSlicer.conf to en_IE from en_US and it works.

Perhaps the bug is somewhere in the locale detection? what's your locale @n3oney ?

TerraRoot avatar Jan 23 '25 15:01 TerraRoot

My locale is en_US.UTF-8.

n3oney avatar Jan 23 '25 16:01 n3oney

Hey there, i also get this error, but therefore I get: use system SSL certificate: /etc/ssl/certs/ca-certificates.crt To manually specify the system certificate store, set the SSL_CERT_FILE environment variable to the correct CA and restart the application Do you want to continue?

Now the problem is, that I can't change the language in the .config file, because it doesn't exist. I run the first time Orca, probably that is the reason. I use Debian and my OS-Language is German. How can I fix that without the .config-file?

HerrCules avatar Jan 27 '25 20:01 HerrCules

I had the same issue on Arch with my system's locale set to pl_PL.UTF-8. In my case I just needed to edit the file /etc/locale.gen and uncomment the line en_US.UTF-8 UTF-8 and then ran sudo locale-gen. After that the en_US locale shows up in locale -a and the slicer works.

HexSegfaultCat avatar Feb 15 '25 16:02 HexSegfaultCat

I believe it should pick any en_* locale when setting it to English with the GUI. My system locale list is:

C C.utf8 en_US.utf8 POSIX

there is no reason to believe someone on a minimal system will have en_GB, thus it should fallback to any en_* locale, and possibly even try C

n3oney avatar Feb 15 '25 18:02 n3oney

I came across this one today as well running version 2.3.0. The inconvenient thing is that you have to generate en_GB in the ISO variant. en_GB.UTF-8 will not suffice. And between us: I'd think it's far more likely that someone uses en_US (in any variant) rather than en_GB, so why not make that the default for English?

Smoerrebroed avatar Mar 23 '25 19:03 Smoerrebroed

i fixed it by un-commenting "en_GB" in /etc/locale.gen. and then ran "sudo locale-gen".

hope this helps anyone with this problem

(arch linux + hyprland)

semiAquaticOtter avatar May 05 '25 19:05 semiAquaticOtter

Looks like orca-slicer shells out to locale -a to handle this case, and if that command fails, it silently does nothing. I don't know Nix, but is it possible to add the locale command to orca-slicer's PATH in the nix packaging?

Also mentioned here: https://github.com/NixOS/nixpkgs/pull/430171#issuecomment-3148529629

flaviut avatar Aug 03 '25 16:08 flaviut

Orca bot: this issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar Nov 02 '25 00:11 github-actions[bot]

In my case, i just ran the command: sudo locale-gen en_GB...

Arsonist-Cook avatar Nov 02 '25 13:11 Arsonist-Cook