Skip to content

Emitter memory leak related problems  #19200

@RomanNikitenko

Description

@RomanNikitenko

Describe the bug

The bug was reported in the Eclipse Che mattermost channel.

Che user detected a lot of logs in the browser console, also it's impossible to run a task

The logs:
WARN Possible Emitter memory leak detected. 196 listeners added. Use event.maxListeners to increase the limit (175). MOST frequent listener (120):
logger-protocol.ts:112 root WARN     at e.onDidRunOperation (https://routenss68q01-rnikiten-che.apps.che-dev.x6e0.p1.openshiftapps.com/theia.0211f3f21f574190b0b7.js:1:3450082
 
WARN Possible Emitter memory leak detected. 203 listeners added. Use event.maxListeners to increase the limit (175). MOST frequent listener (127):
root WARN     at e.onDidChangeFileSystemProviderCapabilities (https://routenss68q01-rnikiten-che.apps.che-dev.x6e0.p1.openshiftapps.com/theia.0211f3f21f574190b0b7.js:1:3450082
ERROR Child node 'file-change-tree-root' does not belong to this 'file-change-tree-root' tree.

I checked it using a workspace from Angular stack and faced with the state when:

  • nodes in the Explorer view are loading few seconds
  • My workspace panel is empty
  • opening a file takes few seconds

then the IDE goes to offline mode. Refreshing a page fixes the issue

Additional info from the user:

I made some changes in che-theia removing

  "vscode-git": "https://open-vsx.org/api/vscode/git/1.49.3/file/vscode.git-1.49.3.vsix",
  "vscode-github": "https://open-vsx.org/api/vscode/github/1.50.1/file/vscode.github-1.50.1.vsix"

and

plugins/github-auth-plugin

now both issues disappeared, the file-change-tree-root and also Possible Emitter memory leak detected and the tasks are working well.

Che version

  • latest
  • nightly
  • other: 7.26.1

Steps to reproduce

  1. Start a workspace using Angular devfile from dashboard.
  2. Try to do simple actions - like opening a file, expand packages in the Explorer view.

Runtime

dogfooding instance

Screenshots

memory_leak_angular

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/editor/theiaIssues related to the che-theia IDE of Chekind/bugOutline of a bug - must adhere to the bug report template.severity/P1Has a major impact to usage or development of the system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions