-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
BrowserSubprocess memory leak + crash. #2170
Comments
I have observed similar results when using 57. Making the 32 bit app large address aware or compiling as 64 bit prevented crashes in my case but pages that produce a lot of garbage quickly used up memory. I traced this to garbage collection settings within chrome that were relaxed to improve performance between versions 53 and 59. I was able to reproduce the issues directly in the chrome browser with these versions. chrome 60 the GC settings were reverted and the issue when testing had resolved for my test case. |
Yes, in the issue template see "Does this problem also occur in the CEF Sample Application from ..." First try the same version (57), and then try newer versions to see if the problem is fixed. Let us know how you go. |
Here are my results:
I think dandotevans is correct, except the error starts occurring as soon they switch to Chromium 54 and keeps occurring on 60 and 61. The difference between GOOD and BAD is very noticeable. Good ones won't use more than about 300 MB, while bad ones will quickly reach 2-3 GB and crash. To confirm the problem is with Chromium and not CEF, I found an older version of Chromium (61.0.3153.0) here where it also crashed. Then I tested it on the latest version (62.0.3202.62) which I got here and worked fine, so I guess they fixed it somewhere in between. I wonder if there is some kind of workaround (some setting related to GC) other than going back to CefSharp 53. Update: Tested it on CEF 3.3202.1674, which is the earliest version that uses Chrome 62, and on 3.3202.1680 and both worked (see table). |
@jsoldi Thanks for a high-quality analysis of the problem, it really helps! 👏 I would suggest trying with the latest (I think this hits WPF also actually, we have seen issues there with CefSharp 57.0.0 at my employer. In that case though, we managed to find a workaround by tweaking the application a bit.) |
62 definitely resolved the issue. In 57, I had to resort to exposing |
@perlun Yes, it works great on the 62 pre-release. Didn't use more than 200 MB. |
Closing this as the |
Hi, mine isn't an answer to the question, but I have the same problem and I wanted to know if or how to solve it. I was forced to use version 75 by my corporate, and I compiled CEF branch 3770 with .mp4 support with success. I have my renderer with CefSharp and recompiled CEF working. Info : Version Info - CefSharpVersion: 75.1.143.0, CefVersion: r75.1.14+gc81164e+chromium-75.0.3770.100, ChromiumVersion: 75.0.3770.100 |
Steps to reproduce:
Then just keep an eye on BrowserSubprocess.exe on the taskbar. It'll quickly reach close to 2 GB (or 4 GB on x64) and then just stop responding. Same URL on Chrome, Firefox and Edge open fine.
I'm using Windows 10 in case that makes a difference.
I'm willing to test this on CEF except I've no idea how to. Is there any CEF exe I can download without having to build so I can confirm whether the leak occurs there or not?
The text was updated successfully, but these errors were encountered: