gnome-control-center crash because of wrong locale
Hi,
I am experiencing a 100% crash when I start the gnome-control-center.
Steps to reproduce:
- Open GNOME Settings
- Nothing happens, crash in
dmesg
This is the current version:
raffi@mymachine:~$ dpkg -l | grep gnome-control-center
ii gnome-control-center 1:3.28.2-0ubuntu0.18.04.2 amd64 utilities to configure the GNOME desktop
ii gnome-control-center-data 1:3.28.2-0ubuntu0.18.04.2 all configuration applets for GNOME - data files
ii gnome-control-center-faces 1:3.28.2-0ubuntu0.18.04.2 all utilities to configure the GNOME desktop - faces images
This is what is inside /var/log/syslog
Jan 2 14:41:52 mymachine gnome-control-c[11079]: locale 'en_US.UTF-8 ' isn't valid
Jan 2 14:41:52 mymachine gnome-control-c[11079]: message repeated 2 times: [ locale 'en_US.UTF-8 ' isn't valid]
Jan 2 14:41:52 mymachine gnome-control-c[11079]: Language en_US.UTF-8 not installed, trying to install it
Jan 2 14:41:52 mymachine gnome-control-center.desktop[11079]: free(): invalid pointer
There is an extra space in the name of the locale. I reinstalled those locale with dpkg-reconfigure locales
and by reconfiguring the /etc/default/locale
but the problem persists.
When I run the panel from the command line:
raffi@mymachine:~$ LC_CTYPE="en_US.UTF-8" gnome-control-center
(gnome-control-center:11281): GnomeDesktop-WARNING **: 14:45:14.266: locale 'en_US.UTF-8 ' isn't valid
(gnome-control-center:11281): GnomeDesktop-WARNING **: 14:45:14.274: locale 'en_US.UTF-8 ' isn't valid
(gnome-control-center:11281): GnomeDesktop-WARNING **: 14:45:14.276: locale 'en_US.UTF-8 ' isn't valid
** (gnome-control-center:11281): WARNING **: 14:45:14.297: Language en_US.UTF-8 not installed, trying to install it
Segmentation fault
I can run the panel from the command line like this:
raffi@mymachine:~$ LC_ALL="en_US.UTF-8" gnome-control-center
** (gnome-control-center:11296): WARNING **: 14:45:33.370: Language en_US.UTF-8 not installed, trying to install it
** (gnome-control-center:11296): WARNING **: 14:45:43.596: Language is already installed
(gnome-control-center:11296): GnomeDesktop-WARNING **: 14:45:43.633: locale 'en_US.UTF-8 ' isn't valid
(gnome-control-center:11296): privacy-cc-panel-WARNING **: 14:46:03.185: Failed fetch permissions from flatpak permission store: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.impl.portal.PermissionStore was not provided by any .service files
the problem is still there, but the panel is showing up. When I change again the locale from the panel to US, I can always see this in the console:
(gnome-control-center:11296): GnomeDesktop-WARNING **: 14:50:03.555: locale 'en_US.UTF-8 ' isn't valid
** (gnome-control-center:11296): WARNING **: 15:03:52.149: Language en_US.UTF-8 not installed, trying to install it
although it does not crash.
It seems that there are 2 bugs:
- the trailing space in the name of the locale
- the fact that a wrong locale triggers a
free
that leads to a crash
Thanks, Raffi Enficiaud
Edited by Ghost User