Browser process creation crashes

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.

Browser process creation crashes

Postby ssaraf » Thu Dec 12, 2024 6:44 am

Hello, I see a weird behaviour I am creating multiple browser windows v130 but in one of the window it crashes with below call stack

1.png
1.png (90.8 KiB) Viewed 2178 times


But the same window creation works when I am using alloy runtime info.runtime_style = CEF_RUNTIME_STYLE_ALLOY before CreateBrowser, which I prefer not to use as it is deprecated and also other features like zoom in/out stops working with alloy runtime.

creation of browser process :

auto browserState = m_stateFactory->Create();

CefRect bounds;
CefWindowInfo info;
info.SetAsChild(m_parentWindow->GetHwnd(), bounds);

const std::wstring startPage = L"about:blank";
CefBrowserSettings browserDefaults;
CefRefPtr<CefDictionaryValue> extra_info = CefDictionaryValue::Create();
// info.runtime_style = CEF_RUNTIME_STYLE_ALLOY;
CefBrowserHost::CreateBrowser(info, browserState->GetClient(), startPage, browserDefaults, extra_info, nullptr);
ssaraf
Mentor
 
Posts: 75
Joined: Mon Nov 09, 2020 2:18 am

Re: Browser process creation crashes

Postby magreenblatt » Thu Dec 12, 2024 9:19 am

AlloyBrowserHostImpl (from the call stack) should not be used with Chrome style browsers. You will need to debug the code to find out what’s going wrong.
magreenblatt
Site Admin
 
Posts: 13002
Joined: Fri May 29, 2009 6:57 pm

Re: Browser process creation crashes

Postby ssaraf » Fri Dec 13, 2024 2:50 am

Ok, i found the issue it looks like it crashes for this call m_state->GetBrowser()->GetHost()->NotifyMoveOrResizeStarted(); where it somehow hits AlloyBrowserHostImpl
Attachments
2.png
2.png (99.21 KiB) Viewed 2083 times
ssaraf
Mentor
 
Posts: 75
Joined: Mon Nov 09, 2020 2:18 am


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 94 guests