Getting "Couldn't mmap icu data file" error

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Getting "Couldn't mmap icu data file" error

Postby Voltageist » Mon Sep 21, 2020 12:55 pm

My g++ command for compiling the binary is the following:
Code: Select all
g++ -Wall src/entry_main.cpp
    -I/home/user/temp/CEF src/ClientApp.cpp src/ClientHandler.cpp
    -lX11 -Wl,libcef_dll_wrapper.a,libcef.so -g -o build/entry_test


And my directory looks as follows:
Code: Select all
build                debug.log               libGLESv2.so
CEF                  devtools_resources.pak  locales
cef_100_percent.pak  files                   media
cef_200_percent.pak  GPUCache                snapshot_blob.bin
cef_extensions.pak   icudtl.dat              src
cef.pak              libcef_dll_wrapper.a    swiftshader
cefsimple            libcef.so               chrome-sandbox       
libEGL.so            v8_context_snapshot.bin


Am I missing an environment variable possibly? I know the error is occurring during my call to CefInitialize.
Voltageist
Techie
 
Posts: 16
Joined: Fri Jul 31, 2020 9:37 am

Re: Getting "Couldn't mmap icu data file" error

Postby magreenblatt » Mon Sep 21, 2020 1:07 pm

Where is your executable relative to the libcef.so and icudtl.dat files?
magreenblatt
Site Admin
 
Posts: 10548
Joined: Fri May 29, 2009 6:57 pm

Re: Getting "Couldn't mmap icu data file" error

Postby Voltageist » Mon Sep 21, 2020 1:20 pm

magreenblatt wrote:Where is your executable relative to the libcef.so and icudtl.dat files?


Are you referring to the binary that I'm compiling? If so, it's in the build/ directory
Voltageist
Techie
 
Posts: 16
Joined: Fri Jul 31, 2020 9:37 am

Re: Getting "Couldn't mmap icu data file" error

Postby Voltageist » Mon Sep 21, 2020 1:34 pm

The CEF/ directory is the actual CEF3 build that I downloaded online.
Voltageist
Techie
 
Posts: 16
Joined: Fri Jul 31, 2020 9:37 am

Re: Getting "Couldn't mmap icu data file" error

Postby magreenblatt » Mon Sep 21, 2020 1:57 pm

Your executable needs to be in the same directory as the other binary files.
magreenblatt
Site Admin
 
Posts: 10548
Joined: Fri May 29, 2009 6:57 pm

Re: Getting "Couldn't mmap icu data file" error

Postby Voltageist » Mon Sep 21, 2020 2:07 pm

magreenblatt wrote:Your executable needs to be in the same directory as the other binary files.


I just moved my /build/entry_test binary into the directory specified above, is this what you meant? Because I keep getting the same error when I do this.
Voltageist
Techie
 
Posts: 16
Joined: Fri Jul 31, 2020 9:37 am

Re: Getting "Couldn't mmap icu data file" error

Postby Voltageist » Mon Sep 21, 2020 9:04 pm

magreenblatt wrote:Your executable needs to be in the same directory as the other binary files.


This is my GDB stack trace with these changes:
Code: Select all
#0  0x00007fffeea3cc95 in operator() ()
    at ../../components/download/internal/common/base_file.cc:657
#1  0x00007fffeea3cc95 in OnQuarantineServiceError() ()
    at ../../components/download/internal/common/base_file.cc:657
#2  0x00007ffff119be70 in TerminateForFatalInitializationError ()
    at ../../content/app/content_main_runner_impl.cc:589
#3  0x00007ffff119be70 in Initialize() ()
    at ../../content/app/content_main_runner_impl.cc:773
#4  0x00007ffff365b1f8 in MainInitialize() ()
    at ../../services/service_manager/embedder/main.cc:379
#5  0x00007ffff1412428 in Initialize() ()
    at ../../cef/libcef/browser/context.cc:501
#6  0x00007ffff1411d88 in CefInitialize() ()
    at ../../cef/libcef/browser/context.cc:330
#7  0x00007fffed8475bd in cef_initialize() ()
    at ../../cef/libcef_dll/libcef_dll.cc:112
#8  0x0000555555595d1c in CefInitialize(CefMainArgs const&, CefStructBase<CefSettingsTraits> const&, scoped_refptr<CefApp>, void*) (args=..., settings=..., application=..., windows_sandbox_info=0x0)
    at /home/dangelone/Downloads/temp/chrome-to-libbb/CEF/libcef_dll/wrapper/libcef_dll_wrapper.cc:106
#9  0x0000555555572b57 in main(int, char**) (argc=1, argv=0x7fffffffdef8)
    at src/entry_main.cpp:104
Voltageist
Techie
 
Posts: 16
Joined: Fri Jul 31, 2020 9:37 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 34 guests