flathub / com.bambulab.BambuStudio

https://flathub.org/apps/details/com.bambulab.BambuStudio
13 stars 3 forks source link

Work-around crash on missing locale support #8

Closed hadess closed 5 months ago

hadess commented 5 months ago

BambuStudio crashes when running under an unsupported locale: https://github.com/bambulab/BambuStudio/issues/3440

Force C-UTF-8 as the locale, seeing as the UI doesn't follow the OS locale for its UI and expects users to change the language on first start or in the preferences.

flathubbot commented 5 months ago

Started test build 94698

flathubbot commented 5 months ago

Build 94698 successful To test this build, install it from the testing repository:

flatpak install --user https://dl.flathub.org/build-repo/77446/com.bambulab.BambuStudio.flatpakref
hadess commented 5 months ago

Worked in my tests, on a system without German support:

Works:

$ LC_ALL=de_DE.UTF-8 flatpak run com.bambulab.BambuStudio//test

Crashes:

$ LC_ALL=de_DE.UTF-8 flatpak run com.bambulab.BambuStudio//stable
sh: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
[2024-01-20 12:39:59.905718] [0x00007f882597fbc0] [trace]   Initializing StaticPrintConfigs
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
grm commented 5 months ago

Awesome, it works perfectly now :)