- Code: Select all
Starting Application
[0427/131338:FATAL:content_main_runner.cc(644)] Check failed: base::allocator::IsAllocatorInitialized().
#0 0x7f8cc093177e base::debug::StackTrace::StackTrace()
#1 0x7f8cc0945d6b logging::LogMessage::~LogMessage()
#2 0x7f8cc38933f6 content::ContentMainRunnerImpl::Initialize()
#3 0x7f8cc085996f CefContext::Initialize()
#4 0x7f8cc085976b CefInitialize()
#5 0x7f8cc080d476 cef_initialize
#6 0x7f8cc5c13d90 CefInitialize()
#7 0x7f8cc5bfb27a MyClass::init()
#8 0x000000400d12 main
#9 0x7f8cc5291830 __libc_start_main
#10 0x000000400be9 _start
Aborted (core dumped)
This the wrapper which I compile as a shared library.
- Code: Select all
class MyClass {
public:
MyClass();
int init(int argc, char *argv[]);
~MyClass();
private:
};
- Code: Select all
MyClass::MyClass() {}
MyClass::~MyClass() {}
int MyClass::init(int argc, char *argv[]) {
CefMainArgs main_args(argc, argv);
CefRefPtr<ClientApp> app(new ClientApp);
int exit_code = CefExecuteProcess(main_args, app.get(), NULL);
if (exit_code >= 0) {
return 1;
}
// TODO REMOVE
XSetErrorHandler(XErrorHandlerImpl);
XSetIOErrorHandler(XIOErrorHandlerImpl);
CefSettings settings;
settings.remote_debugging_port = 8888; // TODO REMOVE
CefInitialize(main_args, settings, app.get(), NULL);
CefRunMessageLoop();
CefShutdown();
std::cout << "haza" << std::endl;
return 0;
}
This is the application.
- Code: Select all
int main(int argc, char *argv[]) {
std::cout << "Starting Application" << std::endl;
MyClass application;
application.init(argc, argv);
return 0;
}