Skip to content

CefBrowserHost::CreateBrowser call failed when trying to reuse BrowserSettings instance #2643

@PitySOFT

Description

@PitySOFT
  • What version of the product are you using?

    • Nuget 71.0.0
  • What architecture x86 or x64?

    • x86
  • On what operating system?

    • Win 8 and Win10
  • Are you using WinForms, WPF or OffScreen?

    • WPF with WindowsFormsHost
  • What steps will reproduce the problem?

    • I have two instances of CefSharp with different CefSettings, because I can't change the settings on runtime. Depending on some data I choose what instance to show. Till version 71.0 the code where si make the swap between those two instances works great. But with version 71.0 it breaks with the exception attached below.

    • I try to set the Child of a WindowsFormsHost with an instance of a ChromiumWebBrowser with the following code MyFormsHost.Child = my ChromiumWebBrowser;

  • What is the expected output? What do you see instead?

    • The application crashes because on unhandled exception.
  • Please provide any additional information below.

    • System.InvalidOperationException
      HResult=0x80131509
      Message=CefBrowserHost::CreateBrowser call failed, review the CEF log file for more details.
      Source=CefSharp.Core
      StackTrace:
      at CefSharp.ManagedCefBrowserAdapter.CreateBrowser(IWindowInfo windowInfo, BrowserSettings browserSettings, RequestContext requestContext, String address) in c:\projects\cefsharp\cefsharp.core\managedcefbrowseradapter.cpp:line 29

    • The debug.log file is empty

  • Does this problem also occur in the CEF Sample Application from.

    • The examples are not relevant to this because I used 2 instances of CefSharp

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions