Page 1 of 1

Couldn't mmap v8 natives data file

PostPosted: Sat Jan 17, 2015 8:03 pm
by sunflare
i'm trying to update to the current cef version (trunk r1971), and get this error message at startup:
Code: Select all
[0118/015708:FATAL:isolate_holder.cc(55)] Couldn't mmap v8 natives data file


this thread suggests adding natives_blob.bin and snapshot_blob.bin to the resources dir, so I did that but the error still occurs.

anything else that could be causing this?

Re: Couldn't mmap v8 natives data file

PostPosted: Sat Jan 17, 2015 8:44 pm
by magreenblatt
What OS?

Re: Couldn't mmap v8 natives data file

PostPosted: Sun Jan 18, 2015 7:21 am
by sunflare
64 bit linux

Re: Couldn't mmap v8 natives data file

PostPosted: Fri Jan 23, 2015 7:05 pm
by sunflare
it looks like the problem is that my resources path is completely ignored

for testing I did this:

Code: Select all
CefSettings settings;
CefString(&settings.resources_dir_path).FromASCII("/boguspath");
CefInitialize(args, settings, cefApp.get(), nullptr);


and get this error:
Code: Select all
[0124/005016:ERROR:icu_util.cc(149)] Couldn't mmap /home/sunflare/ssd_cache/aspera/build/icudtl.dat


the path above is where the binary is.
shouldn't it search for icudtl.dat in /boguspath?

Re: Couldn't mmap v8 natives data file

PostPosted: Fri Jan 23, 2015 7:48 pm
by magreenblatt
No, the path to icudtl.dat is hard-coded in Chromium relative to the executable and cannot be configured via resources_dir_path.

Re: Couldn't mmap v8 natives data file

PostPosted: Fri Jan 23, 2015 8:13 pm
by sunflare
ok, are natives_blob.bin and snapshot_blob.bin hard-coded the same way?

Re: Couldn't mmap v8 natives data file

PostPosted: Fri Jan 23, 2015 8:26 pm
by magreenblatt
sunflare wrote:ok, are natives_blob.bin and snapshot_blob.bin hard-coded the same way?

I don't have the code in front of me at the moment but I believe so.

Re: Couldn't mmap v8 natives data file

PostPosted: Fri Jan 23, 2015 8:27 pm
by sunflare
alright, that explains it

thank you for your help