Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Issue - Couldn't mmap icu data file #1

Open
ryanerwin opened this issue Sep 4, 2020 · 5 comments
Open

Build Issue - Couldn't mmap icu data file #1

ryanerwin opened this issue Sep 4, 2020 · 5 comments

Comments

@ryanerwin
Copy link

Hello!

I found your cefgo project via your post on the go-ultralight issue tracker
maneac/go-ultralight#9 (comment)

I was doing some testing with Ultralight and noticed that some very simple Vue.js wasn't even working... Curious to see how CEF compares... Definitely excellent that it's actually open source!

I am trying to build the example on Ubuntu 20.04, but I'm getting a core dump...

I was able to get the release to build, though note the Readme.md says to use examples/main.go but I think it's updated to examples/mainthead/main.go.

go clean -cache -testcache && CGO_ENABLED=1 go build -o Release/test examples/mainthread/main.go

Once it builds though, I'm unable to get the test app to launch:

❯ ./test
[example app]fillMainArgs [./test] 1
[example app]ExecuteProcess
[example app]Initialize Settings
[example app]ResourcesDirPath= /home/ryan/Dev/cefgo/Release
[example app]LocalesDirPath= /home/ryan/Dev/cefgo/Release/locales
[example app]RemoteDebuggingPort= 6696
[example app]IgnoreCertificateErrors= false
[example app]CommandLineArgsDisabled= false
[example app]fillMainArgs [./test] 1
init_gui
cef_initialize
on_before_command_line_processing
on_register_custom_schemes
[0904/203439.702504:ERROR:icu_util.cc(247)] Couldn't mmap icu data file
zsh: trace trap (core dumped)  ./test

I'm using:

cef_binary_85.3.1+g1306235+chromium-85.0.4183.83_linux64_minimal
go version go1.13.8 linux/amd64
Ubuntu 20.04.1 LTS (Focal Fossa)
@Gurkengewuerz
Copy link
Owner

Could you please test against CEF 83.3.9+ged43e55+chromium-83.0.4103.61 as described in the readme? Maybe there was some update in the api.

@ryanerwin
Copy link
Author

To actually use the Filter feature on the CEF page, just enter 83.3.9 and the builds of CEF 83.3.9+ged43e55+chromium-83.0.4103.61 can be located.

image

Unfortunately for me though, after downloading CEF 83.3.9+ged43e55+chromium-83.0.4103.61 I still get the exact same error as I did with CEF 85.3.1.

To make certain, I deleted the entire cefgo checkout, checked it out again, and copied the Release, include, and Resources from CEF 83.3.9, but I still get the couldn't mmap icu data file and core dump.

❯ cd Release
❯ ./test
[example app]fillMainArgs [./test] 1
[example app]ExecuteProcess
[example app]Initialize Settings
[example app]ResourcesDirPath= /home/ryan/Dev/cefgo/Release
[example app]LocalesDirPath= /home/ryan/Dev/cefgo/Release/locales
[example app]RemoteDebuggingPort= 6696
[example app]IgnoreCertificateErrors= false
[example app]CommandLineArgsDisabled= false
[example app]fillMainArgs [./test] 1
init_gui
cef_initialize
on_before_command_line_processing
on_register_custom_schemes
[0905/070214.823404:ERROR:icu_util.cc(247)] Couldn't mmap icu data file
zsh: trace trap (core dumped)  ./test

@Gurkengewuerz
Copy link
Owner

I can look at it in a few days. I am currently in examination phase and was sick the last days. Therefore I could and can find no time for the project. Sorry for now but i try my best!

@amansx
Copy link

amansx commented Sep 16, 2020

I can help take a look, I have some time on my hand, I had the same issue on mac and resolved it by fixing the bundle

@dminGod
Copy link

dminGod commented Apr 11, 2021

I had the same issue. I think the problem is that in the newer version of CEF ( 89.0.18 ) the Release/locales folder does not exist -- the locales folder is actually part of the Resources -- I just coped all the contents of the Resources folder to the Releases folder as well - did not get that error after that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants