CEF crashes during startup

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.

Re: CEF crashes during startup

Postby edominic » Tue Mar 24, 2015 7:45 am

Some new problems :/

Code: Select all
#
# Fatal error in ../../v8/src/full-codegen.cc, line 1584
# CHECK(!fun_template.IsEmpty()) failed
#

==== C stack trace ===============================

 1: ??
 2: ??
...


If CefRegisterExtension is not implemented, then Browser starts without problems. If implemented there is only a empty (grey background) window.

Code: Select all
    std::cout << "==> OnWebKitInitialized" << std::endl;
   
     std::string app_code =
     "var app;"
     "if (!app)"
     "  app = {};"
     "(function() {"
     "  app.sendMessage = function(name, arguments) {"
     "    native function sendMessage();"
     "    return sendMessage(name, arguments);"
     "  };"
     "  app.setMessageCallback = function(name, callback) {"
     "    native function setMessageCallback();"
     "    return setMessageCallback(name, callback);"
     "  };"
     "  app.removeMessageCallback = function(name) {"
     "    native function removeMessageCallback();"
     "    return removeMessageCallback(name);"
     "  };"
     "})();";
     
     if(CefRegisterExtension("v8/app", app_code, NULL))
     {
         std::cout << "==> CefRegisterExtension" << std::endl;
     }
    else
    {
         std::cout << "==> CefRegisterExtension error" << std::endl;
    }


Code: Select all
AppShellExtensionHandler::Execute()
is implemented

Edit: Found the problem -.-"

It should be:
Code: Select all
if(CefRegisterExtension("v8/app", app_code, new AppShellExtensionHandler(this)))
edominic
Mentor
 
Posts: 82
Joined: Fri Mar 13, 2015 6:46 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 28 guests