Bug #86443 Mysql Workbench crash/error while opening saved model

Submitted: 24 May 2017 13:36 Modified: 24 May 2017 18:25
Reporter: Rafał K Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:6.3.9 OS:Linux (Arch Antergos)
Assigned to: CPU Architecture:Any
Tags: crash, locale, workbench

[24 May 2017 13:36] Rafał K
Description:
Workbench crash when opening model file with "locale::facet::_S_create_c_locale name not valid"

OS: Linux Arch Antergos
Locale: pl_PL

How to repeat:
Open workbech by opening a mwb file - crash with:
unhandled exception (type std::exception) in signal handler:
what: locale::facet::_S_create_c_locale name not valid

Opening workbench and then doing File Open Model - alert:
"Failed to open model:
locale::facet::_S_create_c_locale name not valid"

Suggested fix:
Message the user that "en_US" (or any other) locale is missing in your system.

How to fix (in my case):

edit /etc/locale.gen
add en_US.UTF-8 UTF-8
execute: locale-gen - to regenerate locales
[24 May 2017 14:46] MySQL Verification Team
Thank you for the bug report. Please provide (attach using Files tab) a model file which provoke the issue reported. Thanks.
[24 May 2017 17:13] Rafał K
newly created - the same problem without en_US.UTF8 locale

Attachment: test.mwb (application/vnd.mysql-workbench-model, text), 4.47 KiB.

[24 May 2017 17:14] Rafał K
Startign workbench and loading model:
https://download.dlk.pl/screenshots/2017-05-24-19-09-56-CIAEYcfF8WWpRNCo.png

Starting workbench with file:
$ mysql-workbench test.mwb 
Workbench can't find libproj.so, some options may be unavailable.

(mysql-workbench-bin:4212): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(mysql-workbench-bin:4212): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(mysql-workbench-bin:4212): Gtk-WARNING **: Theme parsing error: gtk.css:70:34: The style property GtkCheckButton:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(mysql-workbench-bin:4212): Gtk-WARNING **: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(mysql-workbench-bin:4212): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

(mysql-workbench-bin:4212): Gtk-WARNING **: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(mysql-workbench-bin:4212): Gtk-WARNING **: Theme parsing error: gtk.css:83:29: The style property GtkStatusbar:shadow-type is deprecated and shouldn't be used anymore. It will be removed in a future version
Ready.

(mysql-workbench-bin:4212): glibmm-ERROR **: 
unhandled exception (type std::exception) in signal handler:
what: locale::facet::_S_create_c_locale name not valid
[24 May 2017 17:21] Rafał K
$ echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; locale-gen

After adding US locale everything works, i know that most distro probably have English locales enabled, but not everyone and i lost like 7h total because of this small but unknown problem.

Maybe someone else had this problem that's why i did open this bug.
[24 May 2017 18:25] MySQL Verification Team
Thank you for the bug report. Duplicate of https://bugs.mysql.com/bug.php?id=84908.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.057 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.