First thank you for your great work on cef
I am doing an experiment using cef (r218) within a Java application through JNI. I am not getting very far -- on my first call of CefInitialize() I got a SIGABRT with:
- Code: Select all
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct NULL not valid
I fired up GDB found the error is thrown from browser_webkit_glue_mac.mm line no.32
- Code: Select all
26 void InitializeDataPak() {
...
30 NSString *resource_path =
31 [base::mac::MainAppBundle() pathForResource:@"cefclient" ofType:@"pak"];
32 FilePath resources_pak_path([resource_path fileSystemRepresentation]);
...
Because my Java app are not even having a bundle directory, so there are no cefclient.pak to load, thus resource_path is NULL.
If I am not wrong, "cefclient" is the demo application, isn't it? Why the libcef are trying to load a pak file from cefclient's resource directory? Is it safe to remove webkit_glue::InitializeDataPak() call from CefProcessUIThread::PlatformInit ?
Thanks.
-- hal9000