-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
RangeError: WebAssembly.Instance(): Out of memory: Cannot allocate Wasm memory for new instance #12529
Comments
@mdeberts Does this bug repro with the Modern Fortran extension disabled? |
I don't install Modern Fortran and also see this error on my remote server. When I reinstall 1.20.5 no error occurs. |
Hi @mdeberts . Since this isn't happening for most people, can you tell us more about your remote machine? Is there anything about how it's configured that may be non-standard or different from default? Between those versions, we upgraded several of our dependencies (for security purposes), including webpack, which appears to be where this issue is coming from (before any of our code actually executes). |
@Thomasyse @Colengms HPC Linux version: I uninstalled Modern Fortran and opened a .cpp file. Uninstalled Modern Fortran Uninstalled Modern Fortran |
Same error, similar setup (but while trying to solve it, I've mode the vscode cache folder to a custom location outside my tiny home directory which has a limitation of 4 GB), no Fortran extension (just tried plain C/C++ project in the remote ssh project). Downgrading (from 1.21.4) to 1.20.5 worked. Note: without remote ssh, everything worked on my Windows host. |
I suspect the issue has something to do with: webpack/webpack#15584 (comment) @mdeberts , @Thomasyse , @kvoronin , Can you confirm whether or not you have a memory limit set, and whether unsetting or increasing it avoids this memory allocation issue in NodeJS? |
I set the Max TS Sever Memory to 4096. It seems not a concern? |
I updated to 1.21.6, and it works again if I use my remote ssh from a linux machine.But I still get an WebAssembly error, which does not seem to have a negative effect for now. Log of Extension Host (Remote) 2024-08-07 07:40:33.442 [info] Extension host with pid 975811 started From my windows machine connecting to the hpc via remote ssh the C++ extension is still not working2024-08-09 10:45:59.371 [info] Extension host with pid 2995090 started |
For me 1.21.6 still doesn't work. |
updated my upper post, since somehow connecting via remote shh from my windows machine it is not working, but if I connect via remote ssh from my linux machine it works. |
By upgrading to the pre-release version, v1.22.3 (pre-release), this error got resolved on my end! Note that, if this error occurs, trying to edit configurations would experience the following... Have to open the output for
|
Thanks it’s working for me again. |
Closing as fixed. |
Type: Bug
Install C/C++ and Modern Fortran
Start remote ssh in VsCode and check "Extension Hoste (Remote)"
There is enough space in the directories to expand / save files up to 20 GB that should not be the problem.
024-07-30 15:02:24.434 [info] ExtensionService#_doActivateExtension vscode.emmet, startup: false, activationEvent: 'onLanguage'
2024-07-30 15:02:24.435 [info] ExtensionService#_doActivateExtension ms-vscode.cpptools, startup: false, activationEvent: 'onLanguage:FortranFreeForm', root cause: fortran-lang.linter-gfortran
2024-07-30 15:02:24.770 [error] Activating extension ms-vscode.cpptools failed due to an error:
2024-07-30 15:02:24.770 [error] RangeError: WebAssembly.Instance(): Out of memory: Cannot allocate Wasm memory for new instance
at 1298 (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:28534:22)
at webpack_require (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:116162:42)
at 6278 (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:40823:16)
at webpack_require (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:116162:42)
at 2277 (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:83848:22)
at webpack_require (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:116162:42)
at 1817 (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:72989:20)
at webpack_require (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:116162:42)
at /hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:116187:27
at /hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:116459:3
at Object. (/hpc/uhome/mdeberts/.vscode-server/extensions/ms-vscode.cpptools-1.21.4-linux-x64/dist/src/main.js:116462:12)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at S._load (/hpc/uhome/mdeberts/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/out/vs/workbench/api/node/extensionHostProcess.js:179:6035)
at n._load (/hpc/uhome/mdeberts/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/out/vs/workbench/api/node/extensionHostProcess.js:176:31788)
at i._load (/hpc/uhome/mdeberts/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/out/vs/workbench/api/node/extensionHostProcess.js:141:34301)
at Module.require (node:internal/modules/cjs/loader:1235:19)
at require (node:internal/modules/helpers:176:18)
at Function.i [as __$__nodeRequire] (/hpc/uhome/mdeberts/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/out/vs/loader.js:5:98)
at m.xb (/hpc/uhome/mdeberts/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/out/vs/workbench/api/node/extensionHostProcess.js:176:32967)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Promise.all (index 0)
Extension version: 1.21.4
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:08:12.169Z)
OS version: Linux x64 5.14.21-150500.55.68-default
Modes:
Remote OS version: Linux x64 4.18.0-477.15.1.el8_8.x86_64
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: