Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offscreen rendering trouble #93

Open
ShadowTeolog opened this issue Jun 9, 2023 · 0 comments
Open

Offscreen rendering trouble #93

ShadowTeolog opened this issue Jun 9, 2023 · 0 comments

Comments

@ShadowTeolog
Copy link

ShadowTeolog commented Jun 9, 2023

For off-screen rendering I use CefClient with custom CefRenderHandler.
But after upgrade from CefGlue.Common from 91.4472.29 to 106.5249.7 Xilium.CefGlue.BrowserProcess.exe start crashing.
After some investigation i found that trouble in CrashPipeNameKey
If this variable not provided - browser process is crashing.
Unfortunately, the CreateBrowser API did not require this before, and you can guess what went wrong only after cloning the repository and replacing the nuget-provided files with a self-compiled one, which is not the first thing to do.
So for workaround need to replace
CefBrowserHost.CreateBrowser(cefWindowInfo, this, cefBrowserSettings, url);
with
const string CrashPipeNameKey = "CrashPipeName";'
using (var extraInfo = CefDictionaryValue.Create())
{
// send the name of the crash (side) pipe to the render process
var crashServerPipeName = Guid.NewGuid().ToString();
extraInfo.SetString(CrashPipeNameKey, crashServerPipeName);
CefBrowserHost.CreateBrowser(cefWindowInfo, this, cefBrowserSettings, url, extraInfo, RequestContext);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant