flathub / net.jami.Jami

https://flathub.org/apps/details/net.jami.Jami
GNU General Public License v3.0
7 stars 7 forks source link

crashes on startup (locale::facet::_S_create_c_locale name not valid) #53

Closed mikelpr closed 5 months ago

mikelpr commented 2 years ago

here be stdout of running flatpak run net.jami.Jami

Using Qt runtime version: 6.3.1
qt.webenginecontext: 

GL Type: desktop
Surface Type: OpenGL
Surface Profile: CompatibilityProfile
Surface Version: 4.6
QSG RHI Backend: OpenGL
Using Supported QSG Backend: yes
Using Software Dynamic GL: no
Using Multithreaded OpenGL: yes

Init Parameters:
  *  application-name Jami 
  *  browser-subprocess-path /app/bin/QtWebEngineProcess 
  *  create-default-gl-context  
  *  disable-features ConsolidatedMovementXY,InstalledApp,BackgroundFetch,WebOTP,WebPayments,WebUSB,PictureInPicture 
  *  disable-setuid-sandbox  
  *  disable-speech-api  
  *  disable-web-security  
  *  enable-features NetworkServiceInProcess,TracingServiceInProcess 
  *  enable-threaded-compositing  
  *  in-process-gpu  
  *  single-process  
  *  use-gl desktop 

"Using locale: en_GB"
terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
FuchtelJockel commented 2 years ago

What happens if you run LC_ALL=C flatpak run net.jami.Jami? or LC_ALL=C LANGUAGE= flatpak run net.jami.Jami

Fregf commented 1 year ago

I'm experiencing exactly the same error with the latest flatpak. Yes setting LC_ALL to C works around the problem.

FuchtelJockel commented 1 year ago

I need some more information:

Fregf commented 1 year ago

I'm using Debian 12 Bookworm.

$ locale LANG=en_GB.UTF-8 LANGUAGE=en_GB:en LC_CTYPE="en_GB.UTF-8" LC_NUMERIC=nl_BE.utf8 LC_TIME=nl_BE.utf8 LC_COLLATE="en_GB.UTF-8" LC_MONETARY=nl_BE.utf8 LC_MESSAGES="en_GB.UTF-8" LC_PAPER=nl_BE.utf8 LC_NAME="en_GB.UTF-8" LC_ADDRESS="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_MEASUREMENT=nl_BE.utf8 LC_IDENTIFICATION="en_GB.UTF-8" LC_ALL=

For comparison, this is what I get when starting another Flatpak application which does not fail:

$ flatpak run com.github.tchx84.Flatseal

(com.github.tchx84.Flatseal:2): Gtk-WARNING **: 11:34:17.199: Locale not supported by C library.
    Using the fallback 'C' locale.
FuchtelJockel commented 1 year ago

I think your locale settings are misconfigured. You should update it like described in the wiki. You have to enable all the locales you see in the output of locale with sudo dpkg-reconfigure locales. And please report upstream that a misconfigured locale can crash Jami and isn't falling back to C like Flatseal.

Fregf commented 1 year ago

My locale settings are correctly set up in my host system using dpkg-reconfigure locales. I guess the problem is that this locale is not included in the flatpak environment.

I can proof this by starting gnome-text-editor (installed from the Debian package) using my set up locale, and by starting it up with an unconfigured locale:

frederik@piranha:~$ gnome-text-editor
frederik@piranha:~$ LC_ALL=dk_DK gnome-text-editor

(gnome-text-editor:20498): Gtk-WARNING **: 12:42:44.353: Locale not supported by C library.
    Using the fallback 'C' locale.

Notice that there is no error when starting with my configured locale.

I will open a bug report for Jami.

FuchtelJockel commented 1 year ago

You can also look into this bug report, it shows how to add languages to flatpak.