Skip to content

[Problem/Bug]: Memory leak on WebResourceResponseReceived event listener #5138

Open
@lcornelatti

Description

@lcornelatti

What happened?

I can see memory usage of the webview renderer processes steadily go up throughout the day when I use this event listener. I need to use this event listener in order to get the content of HTTP requests made by my webapps.

Even setting up an empty event listener triggers the memory growth.

Importance

Blocking. My app's basic functions are not working due to this issue.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

133.0.3065.92

SDK Version

1.0.3065.39

Framework

Winforms

Operating System

Windows 10

OS Version

10.0.194045

Repro steps

Set up any WebResourceRequestedFilter and an event listener on WebResourceResponseReceived:

webView.CoreWebView2.AddWebResourceRequestedFilter("*", CoreWebView2WebResourceContext.All)
webView.CoreWebView2.WebResourceResponseReceived += OnWebResourceResponseReceived;
private void OnWebResourceResponseReceived(object sender, CoreWebView2WebResourceResponseReceivedEventArgs e)
{
    return;
}

Observing memory usage of renderer process over time (especially with web applications with lots of network requests).

Repros in Edge Browser

No, issue does not reproduce in the corresponding Edge version

Regression

Don't know

Last working version (if regression)

No response

Internal Tracking Number: 57210024

Metadata

Metadata

Labels

bugSomething isn't workingtrackedWe are tracking this work internally.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions