Skip to content

VS Code Remote-SSH plugin gives out-of-memory error when connecting to CSC supercomputers

Connecting to CSC supercomputers using VS Code versions 1.101 and later may fail with error Out of memory: Cannot allocate Wasm memory for new instance. There are three workarounds to avoid this issue:

  1. Add to your .bashrc file on CSC supercomputers the line export NODE_OPTIONS="--disable-wasm-trap-handler", or
  2. increase login node virtual memory limit by adding the line ulimit -v "$(ulimit -Hv)" to your .bashrc file on CSC supercomputers, or
  3. downgrade your VS Code version to 1.100.
Do you find this page useful?
Thank you for your feedback!
Thank you! Your feedback is appreciated.

Please let us know how we could improve this page by contacting us or by creating an issue in GitHub. You can also edit this page yourself and contribute your improvements by creating a pull request.

September 16, 2025