Skip to content

PS 3.0.0-alpha11: crash on startup due to system locale #15747

Description

@leptun

Description of the bug

If my locale includes any non-english selection, then starting prusaslicer 3.0.0-alpha11 results in the following crash:

terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid

The issue goes away as soon as i switch it to something based on english.

Zipped project file & How to reproduce

The following locale causes a crash:

~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=C
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_IE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_IE.UTF-8
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=en_IE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Whereas this works just fine:

~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME=C
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_IE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_IE.UTF-8
LC_NAME=C
LC_ADDRESS=C
LC_TELEPHONE=C
LC_MEASUREMENT=en_IE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Only difference between the two is LC_TELEPHONE being in Dutch instead of en_* or C.

Version of PrusaSlicer

3.0.0-alpha11

Operating system

Linux

Operating system version

Fedora 44

Printer model

Not relevant

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions