CefGlue icon indicating copy to clipboard operation
CefGlue copied to clipboard

Offscreen rendering trouble

Open ShadowTeolog opened this issue 2 years ago • 0 comments

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); }

ShadowTeolog avatar Jun 09 '23 17:06 ShadowTeolog