Failed to launch zygote process

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Failed to launch zygote process

Postby Tom741 » Thu Apr 28, 2016 3:12 pm

Hello everyone,
I continue to go on my journey to integrate cef with QT on linux ^^.
What I did so far:
- the system: Ubuntu 14.04
- Download/compile CEF (2623) because I need to make a change in the source code
- Make my QT application (QTWidget)
- Added the libcef_dll_wrapper.a and Libcef.so in the dependencies/includes

For the moment the code is pretty simple:
Code: Select all
Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);

    CefMainArgs main_args(argc, argv);
    int exit_code = CefExecuteProcess(main_args, NULL, NULL);
    if (exit_code >= 0) {
        // The sub-process has completed so return here.
    }
    else
    {
        CefSettings settings;
        CefRefPtr<SimpleApp> app(new SimpleApp);
        bool success = CefInitialize(main_args, settings, app.get(), NULL);
        if(success)
        {
            qDebug("init ok");
        }
        else
        {
            qDebug("failed to init cef");
        }
    }
}


I fought against a good amount of errors (bad includes paths, malformed archive ...) and now I'm stuck at this point:
- it passes CefExecuteProcess (-1)
- on CefInitialize, success is false and I have the following error in debug.log:
Code: Select all
[0428/220931:ERROR:launch_posix.cc(358)] fork: Invalid argument
[0428/220931:FATAL:zygote_host_impl_linux.cc(193)] Check failed: process.IsValid(). Failed to launch zygote process
#0 0x7fffeba0d5ce base::debug::StackTrace::StackTrace()
#1 0x7fffeba5811f logging::LogMessage::~LogMessage()
#2 0x7ffff2f22847 content::ZygoteHostImpl::Init()
#3 0x7ffff262ea74 content::(anonymous namespace)::SetupSandbox()
#4 0x7ffff262e490 content::BrowserMainLoop::EarlyInitialization()
#5 0x7ffff26389c5 content::BrowserMainRunnerImpl::Initialize()
#6 0x7fffeb84bbb4 CefMainDelegate::RunProcess()
#7 0x7ffff33d148b content::RunNamedProcessTypeMain()
#8 0x7ffff33d30fd content::ContentMainRunnerImpl::Run()
#9 0x7fffeb71c83c CefContext::Initialize()
#10 0x7fffeb71c48a CefInitialize()
#11 0x7fffeb5dbba3 cef_initialize
#12 0x000000437b27 CefInitialize()
#13 0x000000408ddd Widget::Widget()
#14 0x000000408bc7 main
#15 0x7fffe9106ec5 __libc_start_main
#16 0x000000408ac4 <unknown>


Do you maybe have an idea from where can it comes ?
Side question: is this normal that the debug version of Libcef.so is like 1.2Gb ? and 100mb for the release, compared to 30mb on windows ?

Many thanks,
Tom741
Techie
 
Posts: 31
Joined: Tue Aug 19, 2014 9:16 am

Return to Support Forum

Who is online

Users browsing this forum: Majestic-12 [Bot] and 92 guests