CEF3 run in single process error

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.

CEF3 run in single process error

Postby FamousHe » Tue Apr 08, 2014 12:40 am

Hello:
I run the demo in cef_binary_3.1650.1562_windows32 with settings.single_process=true and settings.multi_threaded_message_loop=true. But when i close the window,it makes an error like "0xC0000005 read 0xffb052b8 error".
What's wrong with my code? Thank you
FamousHe
Newbie
 
Posts: 8
Joined: Sun Jan 12, 2014 4:17 pm

Re: CEF3 run in single process error

Postby magreenblatt » Tue Apr 08, 2014 9:58 am

There are some known crashes with this combination of settings. See https://code.google.com/p/chromiumembed ... ells=tiles.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3 run in single process error

Postby FamousHe » Tue Apr 08, 2014 12:09 pm

Thanks for your answer.I'm sorry for my simple describe about this question.
Now i will detailed describe about it.

1.I build my project with vs2008/win7/MFC;
2.I created a MFC Dialog project
3.replace default codes in CCEFFrameApp::InitInstance() like this
.................
//default codes
.................
CefMainArgs main_args(theApp.m_hInstance);
CefRefPtr<ClientApp> app(new ClientApp); // ClientApp is a class public CefApp
CefSettings settings;
settings.multi_threaded_message_loop = true;
settings.single_process = true;
CefInitialize(main_args,settings,app.get());
CCEFFrameDlg dlg;
dlg.DoModal();
CefShutdown()
.......................
// default codes
.......................

4.create browser in dlg::OnInitDialog();

it load html well
but when i close the dialog,it shutdown in libcef.dll(CrBrowserMain thread)
if i just set one of multi_threaded_message_loop and single_process as true ,its nothing wrong.
are the both can not be true together?
FamousHe
Newbie
 
Posts: 8
Joined: Sun Jan 12, 2014 4:17 pm

Re: CEF3 run in single process error

Postby magreenblatt » Tue Apr 08, 2014 12:22 pm

FamousHe wrote:if i just set one of multi_threaded_message_loop and single_process as true ,its nothing wrong.
are the both can not be true together?

Correct. That's what causes the above-linked crashes.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3 run in single process error

Postby FamousHe » Tue Apr 08, 2014 7:24 pm

magreenblatt wrote:
Correct. That's what causes the above-linked crashes.

Why they can not be true both?
FamousHe
Newbie
 
Posts: 8
Joined: Sun Jan 12, 2014 4:17 pm

Re: CEF3 run in single process error

Postby magreenblatt » Tue Apr 08, 2014 7:47 pm

FamousHe wrote:
magreenblatt wrote:
Correct. That's what causes the above-linked crashes.

Why they can not be true both?

They can be if someone fixes the crashes.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: CEF3 run in single process error

Postby DOCaCola » Sat May 24, 2014 4:07 am

are there other down sides with single process mode other it being unsupported? i have heard there some bugs related to single process mode. does that apply only to some certain combination of settings or can it be considered 'quite stable' when avoiding those?
Is single process mode planned to be fully supported at one point?
DOCaCola
Newbie
 
Posts: 3
Joined: Sat May 24, 2014 4:01 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], linuxcef07, Majestic-12 [Bot] and 100 guests