-
Notifications
You must be signed in to change notification settings - Fork 27.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
fix: memory leak in simple find widget #198978
fix: memory leak in simple find widget #198978
Conversation
Thanks for the PR. I already prepared fix for the |
Thanks! I made a separate issue for the simpleFindWidget: #199043 and updated this PR. It seems {
"eventListenersWithStackTrace": [
{
"type": "-monaco-gesturetap",
"description": "(e)=>this.emitter.fire(e)",
"objectId": "-6782061013704719865.4.16307",
"sourceMaps": [""],
"stack": [
"listener (vscode/out/vs/base/browser/event.js:17:23)",
"Object.onWillAddFirstListener (vscode/out/vs/base/browser/event.js:20:53)",
"_event (vscode/out/vs/base/common/event.js:650:60)",
"new Sash (vscode/out/vs/base/browser/ui/sash/sash.js:241:28)",
"new SimpleFindWidget (vscode/out/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js:176:36)",
"new WebviewFindWidget (vscode/out/vs/workbench/contrib/webview/browser/webviewFindWidget.js:33:13)",
"InstantiationService._createInstance (vscode/out/vs/platform/instantiation/common/instantiationService.js:103:28)",
"InstantiationService.createInstance (vscode/out/vs/platform/instantiation/common/instantiationService.js:78:31)",
"new WebviewElement (vscode/out/vs/workbench/contrib/webview/browser/webviewElement.js:298:79)",
"new ElectronWebviewElement (vscode/out/vs/workbench/contrib/webview/electron-sandbox/webviewElement.js:47:13)",
"InstantiationService._createInstance (vscode/out/vs/platform/instantiation/common/instantiationService.js:103:28)",
"InstantiationService.createInstance (vscode/out/vs/platform/instantiation/common/instantiationService.js:78:31)",
"ElectronWebviewService.createWebviewElement (vscode/out/vs/workbench/contrib/webview/electron-sandbox/webviewService.js:16:56)",
"OverlayWebview._show (vscode/out/vs/workbench/contrib/webview/browser/overlayWebview.js:164:54)",
"OverlayWebview.claim (vscode/out/vs/workbench/contrib/webview/browser/overlayWebview.js:110:18)",
"ExtensionEditor.openMarkdown (vscode/out/vs/workbench/contrib/extensions/browser/extensionEditor.js:636:25)",
"async ExtensionEditor.openDetails (vscode/out/vs/workbench/contrib/extensions/browser/extensionEditor.js:768:33)"
],
"count": 42
}
],
"isLeak": true
}
|
Sash did not dispose. 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the investigation and fix!
Fixes #199043
Output with
--measure event-listeners