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

ブラウザのサブプロセスがゾンビ化する #235

Open
andanteyk opened this issue Aug 28, 2018 · 2 comments
Open

ブラウザのサブプロセスがゾンビ化する #235

andanteyk opened this issue Aug 28, 2018 · 2 comments
Labels

Comments

@andanteyk
Copy link
Owner

CefSharp.BrowserSubprocess.exe が、デバッグ時に強制終了をかけるとゾンビ化する場合がある。
(taskkill コマンドでは殺せない。タスクマネージャーからは終了可能?)

@andanteyk andanteyk added the bug label Aug 28, 2018
@veigr
Copy link

veigr commented Sep 4, 2018

KanColleViewer でも同様の問題がありましたが、以下のように対処しています。
https://github.com/Grabacr07/KanColleViewer/blob/develop/source/Grabacr07.KanColleViewer/Application.Static.cs#L48
Cef.Initialize の前に CefSharpSettings.SubprocessExitIfParentProcessClosed = true を設定してください。。

元々 CEF/Chromium の問題のようですが、仕方なく CefSharp 側で回避策を用意したような感じっぽく見えます。
CefSharp.BrowserSubprocess.exe left running after parent process exit · Issue #2359 · cefsharp/CefSharp

@andanteyk
Copy link
Owner Author

こちらでも同様に設定していました。

CefSharpSettings.SubprocessExitIfParentProcessClosed = true;

今VSで起動→強制終了したところきちんと終了されました。

ただ、なぜか今ゾンビが1体存在するようで(昨日以前のデバッグ中に発生?)、完全に解決できているわけではなさそうです。

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

No branches or pull requests

2 participants