unknown issue

Do not post support requests, bug reports or feature requests. Discuss CEF here. Non-CEF related discussion goes in General Discussion!

unknown issue

Postby giridharb54 » Wed Jan 01, 2014 2:53 pm

I have integrated cef3 with my application. I loaded the browser with "www.google.com" which contains today's doodle. It loaded fine and after sometime it crashed the subproc.exe(render process) with error "assertion failed : m_decodersize >= framebytescleared". Please let me know how to solve this issue
giridharb54
Expert
 
Posts: 100
Joined: Thu Oct 17, 2013 2:15 am

Re: unknown issue

Postby magreenblatt » Wed Jan 01, 2014 4:51 pm

You can use a release build of libcef with the debug build of your application to avoid debug assertions.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: unknown issue

Postby giridharb54 » Thu Jan 02, 2014 12:09 pm

the subproc.exe is crashing. Also on loading few sites rich in html5 my subproc.exe is crashing. The code for seperate executable is as shown below.
Code: Select all
#include <windows.h>
#include <stdlib.h>
#include <string.h>
#include <tchar.h>

#include "include/cef_app.h"
#include "include/cef_base.h"
#include "cefapplicationhandler.h"


int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE, PWSTR pCmdLine, int nCmdShow)
{   
   CefMainArgs main_args(hInstance);
   
   CefRefPtr<cefapplicationhandler> app(new cefapplicationhandler);
   return CefExecuteProcess(main_args, app.get());
   
}

Code: Select all
#include "include/cef_app.h"

class cefapplicationhandler : public CefApp,
        public CefBrowserProcessHandler,
        public CefRenderProcessHandler
{
public:

        virtual CefRefPtr<CefBrowserProcessHandler> GetBrowserProcessHandler()
                OVERRIDE { return this; }
        virtual CefRefPtr<CefRenderProcessHandler> GetRenderProcessHandler()
                OVERRIDE { return this; }
        virtual bool OnProcessMessageReceived(
                CefRefPtr<CefBrowser> browser,
                CefProcessId source_process,
            CefRefPtr<CefProcessMessage> message) OVERRIDE
      {
          if (message->GetName() == "InvokeScript")
          {
             CefRefPtr<CefFrame> frame = browser->GetMainFrame();
                 frame->ExecuteJavaScript("alert('ExecuteJavaScript works!');",frame->GetURL(), 0);
                 return true;
         }
      }
   
        IMPLEMENT_REFCOUNTING(cefapplicationhandler);
};

Please let me know if am missing something here.
giridharb54
Expert
 
Posts: 100
Joined: Thu Oct 17, 2013 2:15 am

Re: unknown issue

Postby magreenblatt » Thu Jan 02, 2014 12:33 pm

giridharb54 wrote:the subproc.exe is crashing. Also on loading few sites rich in html5 my subproc.exe is crashing.

If it's crashing with "assertion failed" then do as suggested above.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: unknown issue

Postby giridharb54 » Fri Jan 03, 2014 8:16 am

[img]
Screen Shot 2014-01-03 at 5.02.09 PM.png
Screen Shot 2014-01-03 at 5.02.09 PM.png (146.57 KiB) Viewed 9996 times

[/img]
this is the call stack when it crashes upon loading of airbnb.com website in my cef embeded browser.Please let me know the steps to resolve this issue.
giridharb54
Expert
 
Posts: 100
Joined: Thu Oct 17, 2013 2:15 am

Re: unknown issue

Postby giridharb54 » Sat Jan 04, 2014 3:06 am

Can you please help me resolve the above issiue??. I am stuck with this issue now .
giridharb54
Expert
 
Posts: 100
Joined: Thu Oct 17, 2013 2:15 am

Re: unknown issue

Postby giridharb54 » Tue Jan 07, 2014 4:37 pm

You can use a release build of libcef with the debug build of your application to avoid debug assertions.

Hi magreenblat,

Are you suggesting me to use release build libcef_dll_wrapper.lib with debug build of my application. wont it throw linker errors if I do this way?? When you say use release build of libcef what do you mean???
giridharb54
Expert
 
Posts: 100
Joined: Thu Oct 17, 2013 2:15 am

Re: unknown issue

Postby magreenblatt » Tue Jan 07, 2014 4:41 pm

giridharb54 wrote:Are you suggesting me to use release build libcef_dll_wrapper.lib with debug build of my application. wont it throw linker errors if I do this way?? When you say use release build of libcef what do you mean???

Use a release build of libcef.lib and libcef.dll with a debug build of libcef_dll_wrapper.lib and a debug build of your application.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: unknown issue

Postby giridharb54 » Wed Jan 08, 2014 10:27 am

Hi magreenblat,

It is working fine now. Thanks a lot for your help.
giridharb54
Expert
 
Posts: 100
Joined: Thu Oct 17, 2013 2:15 am


Return to CEF Discussion

Who is online

Users browsing this forum: No registered users and 168 guests

cron