Closed nik-sp closed 7 months ago
--lang=es-MX
es-MX
is not a locale supported by Chromium. On Windows, this falls back to es-149
. On Mac, it should fall back to en-US
here. (Unless for some reason it can't find the en-US pak file).
Related log messages:
[6949:259:0220/123913.975353:WARNING:resource_bundle.cc(465)] locale_file_path.empty() for locale es-MX
[6949:259:0220/123913.975428:FATAL:chrome_resource_bundle_helper.cc(99)] Check failed: !actual_locale.empty(). Locale could not be found for es-MX
The problem is |app_locale| set to es-MX
here:
* thread #1, queue = 'com.apple.main-thread', stop reason = step over
frame #0: 0x00000001c828ba9a Chromium Embedded Framework`l10n_util::GetApplicationLocaleInternalMac(pref_locale="es-MX") at l10n_util.cc:510:18
507 // passed to the function.
508 std::string app_locale = l10n_util::GetLocaleOverride();
509 if (app_locale.empty())
-> 510 app_locale = pref_locale;
511
512 // The above should handle all of the cases Chrome normally hits, but for some
513 // unit tests, we need something to fall back too.
And then it fails in ResourceBundle::LoadLocaleResources because no pak file exists for that (invalid) locale.
GetApplicationLocaleInternalMac has no fallback for invalid locales. We can try using the same fallback code as Windows/Linux.
Describe the bug The application crashes unexpectedly when launched with the command
./cefclient --use-views --enable-chrome-runtime --lang=es-MX.
To Reproduce Steps to reproduce the behavior:
./cefclient --use-views --enable-chrome-runtime --lang=es-MX
Expected behavior The application should not crash.
Versions (please complete the following information):
Failed check
chrome/browser/chrome_resource_bundle_helper.cc:97
Additional context Maybe it relates to changes done in here: https://github.com/chromiumembedded/cef/issues/3623 https://github.com/chromiumembedded/cef/commit/9dc7653ddce1ceeba173d8311facc632b9c30b75