Skip to content

Unsupported locale causes a crash on Linux #5234

@lapinsami

Description

@lapinsami

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

This issue is present in the latest pre-release

Describe the Bug

Sunshine (on Arch Linux, KDE) crashes when opening Steam Big Picture mode on the Moonlight app

Expected Behavior

Sunshine does not crash

Additional Context

My LC_TIME is set to en_SE.UTF-8 in the KDE settings. Launching Steam Big picture mode in Moonlight causes Sunshine to crash on the host PC. I think this has something to do with the fact that en_SE.UTF-8 is not a supported locale in glibc (but it is on KDE/Qt).

The locale stuff is probably a problem for KDE devs or whoever, but Sunshine probably also shouldn't crash when ran on KDE with a locale like that.

Sunshine crash + error:

terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
fish: Job 1, 'sunshine' terminated by signal SIGABRT (Abort)

Launching Sunshine with LC_TIME=en_GB.UTF-8 (or any locale supported by glibc) stops the crash from happening

Host Operating System

Linux

Operating System Version

Arch

Architecture

amd64/x86_64

Package

other (self built)

GPU Type

AMD

GPU Model

7800 XT

GPU Driver/Mesa Version

1:26.1.1-2

Capture Method

None

Apps

Log output

Online logs

No response

Metadata

Metadata

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions