-
-
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
Memory leak when using CefSharp.BindObjectAsync(). #2432
Comments
I just tested it with |
Thanks for providing an example 👍
No idea at this stage. The |
Looks like a duplicate, but in my case the leak is not present in legacy mode, only in the native one. BTW, it seems to be present since 63.x, I just haven't tested it well enough with that version. |
Running the Relevant commit 57d60e9 |
Testing with b0af05a and the Closing as unable to reproduce with newer versions. |
…o an anon function Use CefV8Context::Eval to create the promise using an anonymous function Attempt to resolve #2432 (though it actually seems upgrading to a newer version resolves the underlying problem)
…o an anon function Use CefV8Context::Eval to create the promise using an anonymous function Attempt to resolve cefsharp#2432 (though it actually seems upgrading to a newer version resolves the underlying problem)
What version of the product are you using?
65.0.0-pre02 (NuGet)
What architecture x86 or x64?
Both.
On what operating system?
Win10.
Are you using
WinForms
,WPF
orOffScreen
?OffScreen.
What steps will reproduce the problem?
A huge memory leak occurs on each page reload when CefSharp.BindObjectAsync() is used.
To reproduce run the test project: https://github.com/HTD/CefSharpTest
When run in probably less than a minute memory usage of
CefSharp.BrowserSubprocess.exe
will grow exceeding 100MB, soon exceeding 1GB and more. SwitchIsFullTestEnabled
field to false and rerun the test. The described memory leak will not occur.When
IsFullTestEnabled
field is set to false the bound class is still cached during each reload, but it is unavailable (not bound) after reloading.It is expected, that binding the same object on each page reload should not cause a memory leak.
The text was updated successfully, but these errors were encountered: