-
Notifications
You must be signed in to change notification settings - Fork 39.2k
Comments: Possible Memory Leak? #213535
Copy link
Copy link
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugcommentsComments Provider/Widget/Panel issuesComments Provider/Widget/Panel issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersverifiedVerification succeededVerification succeeded
Milestone
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugcommentsComments Provider/Widget/Panel issuesComments Provider/Widget/Panel issuesinsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersverifiedVerification succeededVerification succeeded
While working with comments I noticed that the vscode memory consumption was consistently increasing. After checking the logs I found this:
ERR [176] REFUSES to accept new listeners because it exceeded its threshold by far (526/175). HINT: Stack shows most frequent listener (129-times): Error
at vs/base/common/event.ts:900:14
at vs/base/common/event.ts:1095:33
at vs/platform/actions/common/menuService.ts:395:33
at vs/base/common/event.ts:1104:44
at vs/workbench/contrib/comments/browser/commentThreadHeader.ts:71:22
at vs/workbench/contrib/comments/browser/commentThreadHeader.ts:49:7
at vs/workbench/contrib/comments/browser/commentThreadWidget.ts:91:17
at vs/platform/instantiation/common/instantiationService.ts:161:17
at vs/platform/instantiation/common/instantiationService.ts:127:17
at vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts:241:63
at vs/editor/contrib/zoneWidget/browser/zoneWidget.ts:246:7
at vs/workbench/contrib/comments/browser/commentThreadZoneWidget.ts:155:7
at vs/platform/instantiation/common/instantiationService.ts:161:17
at vs/platform/instantiation/common/instantiationService.ts:127:17
at vs/workbench/contrib/comments/browser/commentsController.ts:1042:47
at vs/workbench/contrib/comments/browser/commentsController.ts:1334:15