LizardByte / LizardByte/Sunshine
Unsupported locale causes a crash on Linux
@LizardByte-bot is already working on this.
Since May 31, 2026.
- Dominant language
- C++
- Stars
- 41.4k
- Forks
- 2.1k
- Avg merge
- 23h 47m
- Merged PRs (30d)
- 124
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.