GPU process crashes when opening dev tools

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: GPU process crashes when opening dev tools

Postby mICON » Thu Nov 21, 2024 11:57 am

I understand..

I read up on Alloy and I'm not using it. I have a subprocess executable.

Is this the correct way to open the dev tools then?
Code: Select all
    CefWindowInfo windowInfo;
    CefBrowserSettings browserSettings;
    windowInfo.SetAsPopup(nullptr, "DevTools");
    windowInfo.windowless_rendering_enabled = false;
    windowInfo.shared_texture_enabled = 0;

    CefPoint inspectPoint;
    CefRefPtr<CefClient> devtoolsClient;

    // Show the devtools
    mBrowser->GetHost()->ShowDevTools(windowInfo, devtoolsClient, browserSettings, inspectPoint);


I am trying this but it still fails at
Code: Select all
  if (!window) {
    logging::SystemErrorCode error = logging::GetLastSystemErrorCode();
    base::debug::Alias(&error);
    CHECK(false);
  }


error comes out to
0
mICON
Techie
 
Posts: 13
Joined: Wed Sep 18, 2024 2:00 am

Re: GPU process crashes when opening dev tools

Postby magreenblatt » Thu Nov 21, 2024 12:05 pm

Is this the correct way to open the dev tools then?

Looks correct.
magreenblatt
Site Admin
 
Posts: 13006
Joined: Fri May 29, 2009 6:57 pm

Re: GPU process crashes when opening dev tools

Postby magreenblatt » Thu Nov 21, 2024 12:07 pm

CreateWindowsOnThread failing sounds like https://github.com/chromiumembedded/cef/issues/3765
magreenblatt
Site Admin
 
Posts: 13006
Joined: Fri May 29, 2009 6:57 pm

Re: GPU process crashes when opening dev tools

Postby mICON » Thu Nov 21, 2024 12:28 pm

I see now. I was using a custom sub process executable when I should've just used cefclient.exe

Thank you for your help, much appreciated!
mICON
Techie
 
Posts: 13
Joined: Wed Sep 18, 2024 2:00 am

Re: GPU process crashes when opening dev tools

Postby magreenblatt » Thu Nov 21, 2024 12:58 pm

You can use a custom subprocess exe. You just have to set the manifest correctly.
magreenblatt
Site Admin
 
Posts: 13006
Joined: Fri May 29, 2009 6:57 pm

Re: GPU process crashes when opening dev tools

Postby amaitland » Fri Nov 22, 2024 2:48 am

You should also set the stack size.

https://github.com/chromiumembedded/cef ... 1465029971

Make your subprocess TSAware if you plan on running in terminal services.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1334
Joined: Wed Jan 14, 2015 2:35 am

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 78 guests