cefsharp / CefSharp

.NET (WPF and Windows Forms) bindings for the Chromium Embedded Framework
http://cefsharp.github.io/
Other
9.84k stars 2.92k forks source link

After upgrading cefsharp, the program cannot run two instances at the same time. #4804

Closed Jun-GY closed 4 months ago

Jun-GY commented 4 months ago

Is there an existing issue for this?

CefSharp Version

124.3.80

Operating System

Windows 10

Architecture

x64

.Net Version

.Net 8

Implementation

WinForms

Reproduction Steps

The wpf program cefsharp control version is upgraded to 124.3.80. The program cannot run two instances at the same time.what do i need to do?

Demo code

Expected behavior

Run correctly

Actual behavior

There is no exception, the second startup process cannot be started

Regression?

No response

Known Workarounds

No response

Does this problem also occur in the CEF Sample Application

Yes using WPF/OffScreen command line args

Other information

No response

amaitland commented 4 months ago

CEF now supports the Chromium process singleton, this brings with it changes to how CachePath/RootCachePath are accessed from multiple processes. See https://github.com/cefsharp/CefSharp/issues/4668 for more details

What you are seeing is the expected behaviour.