Open cgf1 opened 1 year ago
it crash in the CanonicalName.AfterFirst('_') which is a function in wxString (wxWidget library).
// get all characters after the first occurrence of ch // (returns empty string if ch not found) wxString AfterFirst(wxUniChar ch) const;
I tested the function, including an empty wxString, but they all worked, and I don't find some problem with the wxString source code either. https://github.com/wxWidgets/wxWidgets/blob/d7a98a44ea6c9f814e35db1d1aa869d3b5bf10d1/src/common/string.cpp
I will add some code to avoid empty string which may cause the crash.
Thanks! Stone Li
This still happens in the 1.7 beta (Fedora AppImage on Arch).
Same problem with 1.7.7.88 on Linux Debian 12 and Bambu_Studio_Linux_ubuntu-v01.07.07.88-20231010083344.AppImage
.
Changing the unexpected en_GB
in $HOME/.config/BambuStudio/BambuStudio.conf
to something available on the system does fix the issue (eg. en_US
in my case).
I had the en_US
locale configured ~/.config/BambuStudio/BambuStudio.conf
but continued to see this error. In the end I simply generated the en_GB
locale by uncommenting the appropriate entry in /etc/locale.gen
the ran sudo locale-gen
.
sudo nano /etc/locale.gen
取消 en_GB.UTF-8 的注释,并保存
sudo locale-gen
It looks like, by default, BambuStudio on linux creates a /home//.config/BambuStudio/BambuStudio.conf file with:
"language": "en_GB"
I don't have that language enabled on my system and it caused a segmentation violation before the GUI is displayed:
Hand editing the config file to use "en_US" stops the SEGV.