Check failed: base::i18n::InitializeICU() on Linux

Having problems with building or using the JCEF Java binding? Ask your questions here.

Check failed: base::i18n::InitializeICU() on Linux

Postby leha2000 » Wed Sep 02, 2015 9:30 am

I built Java CEF on Ubuntu Linux 14.04 (CEF version is 3.2454.1317.gc22b77d) following BranchesAndBuilding instructions
but It fails to start with the error:
Code: Select all
leha@leha-ubuntu:/mnt/user/projects/jcef-src/src/tools$ ./run.sh linux64 Release simple
initialize on Thread[AWT-EventQueue-0,6,main] with library path /mnt/user/projects/jcef-src/src/out/Release
[0902/172707:FATAL:content_main_runner.cc(721)] Check failed: base::i18n::InitializeICU().
./run.sh: line 31: 11923 Aborted                 (core dumped) LD_PRELOAD=$LIB_PATH/libcef.so java -cp "$CLS_PATH" -Djava.library.path=$LIB_PATH tests.$RUN_TYPE.MainFrame "$@"


Can I just disable i18n support passing a parameter in Java code?
leha2000
Newbie
 
Posts: 8
Joined: Mon Aug 31, 2015 2:23 pm

Re: Check failed: base::i18n::InitializeICU() on Linux

Postby magreenblatt » Thu Sep 03, 2015 4:39 am

You need to create some symlinks. See comments at the end of https://bitbucket.org/chromiumembedded/ ... issues/137. I'll also update the documentation.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Check failed: base::i18n::InitializeICU() on Linux

Postby leha2000 » Thu Sep 03, 2015 11:57 am

magreenblatt wrote:You need to create some symlinks. See comments at the end of https://bitbucket.org/chromiumembedded/ ... issues/137. I'll also update the documentation.

Executed this:
Code: Select all
$ sudo ln -s /home/marshall/code/java-cef/src/third_party/cef/linux64/Resources/icudtl.dat /usr/lib/jvm/java-7-oracle/jre/bin/icudtl.dat
$ sudo ln -s /home/marshall/code/java-cef/src/third_party/cef/linux64/Debug/natives_blob.bin /usr/lib/jvm/java-7-oracle/jre/bin/natives_blob.bin
$ sudo ln -s /home/marshall/code/java-cef/src/third_party/cef/linux64/Debug/snapshot_blob.bin /usr/lib/jvm/java-7-oracle/jre/bin/snapshot_blob.bin


Will it be changed in the future i.e. I don't have to create these symlinks?
Also does the version for Mac create such links too? Or isn't such problem on Mac?
Do the older builds have the problem too? Maybe one-year old don't?

It helped but there are some warnings:
Code: Select all
leha@leha-ubuntu:/mnt/user/projects/jcef-src/src/tools$ ./run.sh linux64 Release simple
initialize on Thread[AWT-EventQueue-0,6,main] with library path /mnt/user/projects/jcef-src/src/out/Release
[0903/202331:ERROR:main_delegate.cc(715)] Could not load cef_extensions.pak
[0903/202331:ERROR:browser_main_loop.cc(189)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[0903/202331:ERROR:main_delegate.cc(715)] Could not load cef_extensions.pak
[0903/202331:ERROR:main_delegate.cc(715)] Could not load cef_extensions.pak
libEGL warning: failed to create a pipe screen for i965
[0903/202332:ERROR:renderer_main.cc(200)] Running without renderer sandbox
leha2000
Newbie
 
Posts: 8
Joined: Mon Aug 31, 2015 2:23 pm

Re: Check failed: base::i18n::InitializeICU() on Linux

Postby magreenblatt » Thu Sep 03, 2015 1:34 pm

Yes the requirement for symlinks will ideally be fixed in the future. It is not required on mac when using the app bundle.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 81 guests