Skip to content
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

CompileError: WebAssembly.Module(): Wasm SIMD unsupported #7177

Open
wemeetagain opened this issue Oct 18, 2024 · 4 comments
Open

CompileError: WebAssembly.Module(): Wasm SIMD unsupported #7177

wemeetagain opened this issue Oct 18, 2024 · 4 comments
Labels
meta-bug Issues that identify a bug and require a fix. meta-investigate Issues found that require further investigation and may not have a specific resolution/fix prio-high Resolve issues as soon as possible.

Comments

@wemeetagain
Copy link
Member

Describe the bug

Hey everyone, I want to switch my beacon and validator node to lodestar but experience an interesting issue with v1.22.0. This is the error I receive:

/usr/app/node_modules/@chainsafe/as-sha256/lib/wasm.js:5
const _module = new WebAssembly.Module(wasmCode_1.wasmCode);
                ^

CompileError: WebAssembly.Module(): Wasm SIMD unsupported @+103
    at Object.<anonymous> (/usr/app/node_modules/@chainsafe/as-sha256/lib/wasm.js:5:17)
    at Module._compile (node:internal/modules/cjs/loader:1467:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1551:10)
    at Module.load (node:internal/modules/cjs/loader:1282:32)
    at Module._load (node:internal/modules/cjs/loader:1098:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:215:24)
    at Module.require (node:internal/modules/cjs/loader:1304:12)
    at require (node:internal/modules/helpers:123:16)
    at Object.<anonymous> (/usr/app/node_modules/@chainsafe/as-sha256/lib/index.js:8:16)

Node.js v22.4.1

I just tested docker run chainsafe/lodestar:v1.22.0 --help in the first place in order to compile my compose with the necessary cli flags. I tested my compose and I receive similar errors there. Actually the same error, just stacked multiple times. Did I miss something in the release notes? Is there a breaking change how to run the image or is it really an error in the image? It looks like the build/compilation didn't work properly but I guess you would have seen this in your test pipelines 🤔 .

Short update: I don't have this issue on my local PC. So it looks like that it is VM related (want to start the client on a VM). I will try on my NUC tomorrow and let you know.

See https://discord.com/channels/593655374469660673/593655641445367808/1296836508287893505

Expected behavior

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

@wemeetagain wemeetagain added the meta-bug Issues that identify a bug and require a fix. label Oct 18, 2024
@TobiWo
Copy link

TobiWo commented Oct 18, 2024

Hi, I reported this but I didn't open the issue so I need to add the update as a comment:

  1. I tried on another VM and it fails there as well
  2. The Hypervisor in use for both VMs (different self build cloud environments from a friend) is Proxmox VE (was asked by @philknows on Discord)
  3. It runs, as expected, on my AMD barebone
  4. The CPU which is used for the VM is a Intel® Xeon® Gold 6138 (previous CPU generation on the second VM)
  5. This issue is not present with v1.21.0

As I understand, the error indicates that SIMD is not supported (I mean that is what the error states exactly 😉 ) which kind of targets the CPU as reason for the error. On the other hand I'm not sure if this makes sense since SIMD is using the SSE instruction set which is supported by both CPU generations ofc. I'm not an expert on this low level stuff. A more trusting opinion would be helpful. Just let me know if you guys need any additional infos.

Update: I tested it on a public cloud VM as well, with KVM as hypervisor: Works as expected.

@ocelot2123
Copy link

I just updated to v1.22.0 today and got the same error.

I run things through rocketpool through docker mode

@philknows philknows added prio-high Resolve issues as soon as possible. meta-investigate Issues found that require further investigation and may not have a specific resolution/fix labels Nov 3, 2024
@0xbdm0101
Copy link

Image

I encountered the same issue in my Safari browser, version information: Version/15.6.1 Safari/605.1.15

@matthewkeil
Copy link
Member

Looking into this a bit. Going to drop some notes here and update as I find more details.

Not sure why ProxmoxVE is not proxying the SIMD instructions correctly. Nothing came up when searching for info regarding the two and compatability.

There is an option to check for SIMD compatibility and we can alternately load the module with and without SIMD
https://v8.dev/features/simd

Not sure if the issue @0xbdm0101 is encountering is related. What were you attempting to do when you encountered that error @0xbdm0101 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta-bug Issues that identify a bug and require a fix. meta-investigate Issues found that require further investigation and may not have a specific resolution/fix prio-high Resolve issues as soon as possible.
Projects
None yet
Development

No branches or pull requests

7 participants
@wemeetagain @TobiWo @ocelot2123 @matthewkeil @0xbdm0101 @philknows and others