Page 1 of 1

Getting "Couldn't mmap icu data file" error

PostPosted: Mon Sep 21, 2020 12:55 pm
by Voltageist
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.

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

PostPosted: Mon Sep 21, 2020 1:07 pm
by magreenblatt
Where is your executable relative to the libcef.so and icudtl.dat files?

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

PostPosted: Mon Sep 21, 2020 1:20 pm
by Voltageist
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

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

PostPosted: Mon Sep 21, 2020 1:34 pm
by Voltageist
The CEF/ directory is the actual CEF3 build that I downloaded online.

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

PostPosted: Mon Sep 21, 2020 1:57 pm
by magreenblatt
Your executable needs to be in the same directory as the other binary files.

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

PostPosted: Mon Sep 21, 2020 2:07 pm
by Voltageist
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.

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

PostPosted: Mon Sep 21, 2020 9:04 pm
by Voltageist
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