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:
- Add to your
.bashrc
file on CSC supercomputers the lineexport NODE_OPTIONS="--disable-wasm-trap-handler"
, or - increase login node virtual memory limit by adding the line
ulimit -v "$(ulimit -Hv)"
to your.bashrc
file on CSC supercomputers, or - downgrade your VS Code version to 1.100.