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

got compilation runtime error when running pnpm start command (Wasm SIMD unsupported) #2279

Open
holiccoder opened this issue Jan 14, 2025 · 10 comments
Labels

Comments

@holiccoder
Copy link

OS version: ubuntu 22
node version: 23.3.0

every step is running good except running the command:
pnpm start --character="characters/trump.character.json"

4171601

@holiccoder holiccoder added the bug Something isn't working label Jan 14, 2025
Copy link
Contributor

Hello @holiccoder! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

@holiccoder holiccoder changed the title got compilation runtime error on when running start command got compilation runtime error when running pnpm start command (Wasm SIMD unsupported) Jan 14, 2025
@Endytech
Copy link

Endytech commented Jan 14, 2025

image

I have same error too: "Wasm SIMD unsupported"
OS version: Ubuntu 22.04.5 LTS
node version: 23.3.0

(node:1175100) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(node:1175100) ExperimentalWarning: CommonJS module /home/eliza/eliza2/node_modules/@3land/listings-sdk/dist/utility/utils.js is loading ES Module /home/eliza/eliza2/node_modules/@3land/listings-sdk/node_modules/node-fetch/src/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): Wasm SIMD unsupported @+59
Aborted(CompileError: WebAssembly.instantiate(): Wasm SIMD unsupported @+59)
/home/eliza/eliza2/node_modules/@primuslabs/zktls-core-sdk/dist/algorithm/client_plugin.js:1
var Module=typeof Module!="undefined"?Module:{};var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window=="object";
...
var parts=path.spli/home/eliza/eliza/agent:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/[email protected]+build.1 start: node --loader ts-node/esm src/index.ts "--isRoot" "--characters=characters/test.character.json"
Exit status 7
 ELIFECYCLE  Command failed with exit code 7.

@chadrandomdev
Copy link

same here with ubuntu 24.
error for zktls-core-sdk

@AIFlowML
Copy link
Collaborator

Hello guys.

Refering to this:

(node:1175100) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(node:1175100) ExperimentalWarning: CommonJS module /home/eliza/eliza2/node_modules/@3land/listings-sdk/dist/utility/utils.js is loading ES Module /home/eliza/eliza2/node_modules/@3land/listings-sdk/node_modules/node-fetch/src/index.js using require().
Support for loading ES Module in require() is an experimental feature and might change at any time
failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): Wasm SIMD unsupported @+59
Aborted(CompileError: WebAssembly.instantiate(): Wasm SIMD unsupported @+59)
/home/eliza/eliza2/node_modules/@primuslabs/zktls-core-sdk/dist/algorithm/client_plugin.js:1
var Module=typeof Module!="undefined"?Module:{};var moduleOverrides=Object.assign({},Module);var arguments_=[];var thisProgram="./this.program";var quit_=(status,toThrow)=>{throw toThrow};var ENVIRONMENT_IS_WEB=typeof window=="object";

This error happend due to multiple bluids attemps. Is possible that pnpm do some mess up. You should try to clean.

Refering to this:

var parts=path.spli/home/eliza/eliza/agent:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @elizaos/[email protected]+build.1 start: node --loader ts-node/esm src/index.ts "--isRoot" "--characters=characters/test.character.json"
Exit status 7
 ELIFECYCLE  Command failed with exit code 7.

Is due to a plugin that is blocking the way.
Try a clean run with no plugs and add them back to isolate the one that cause the crash.

@amosin
Copy link

amosin commented Jan 17, 2025

It look like the plugin that is causing the issue is plugin-primus, I just got the latest version and that primus code has like copied stuff from Twitter plugin... so not good I guess.

https://github.com/elizaOS/eliza/blob/v0.1.8%2Bbuild.1/packages/plugin-primus/src/index.ts

Here is what I did to make it work

    deleted:    packages/plugin-primus/.npmignore
    deleted:    packages/plugin-primus/README.md
    deleted:    packages/plugin-primus/package.json
    deleted:    packages/plugin-primus/src/actions/postTweetAction.ts
    deleted:    packages/plugin-primus/src/adapter/primusAdapter.ts
    deleted:    packages/plugin-primus/src/index.ts
    deleted:    packages/plugin-primus/src/providers/tokenPriceProvider.ts
    deleted:    packages/plugin-primus/src/providers/tweetProvider.ts
    deleted:    packages/plugin-primus/src/templates.ts
    deleted:    packages/plugin-primus/src/util/primusUtil.ts
    deleted:    packages/plugin-primus/src/util/twitterScraper.ts
    deleted:    packages/plugin-primus/tsconfig.json
    deleted:    packages/plugin-primus/tsup.config.ts

git diff agent/package.json

- "@elizaos/plugin-primus": "workspace:*",

git diff agent/src/index.ts


`-import { PrimusAdapter } from "@elizaos/plugin-primus";`

 
-    if (
-        process.env.PRIMUS_APP_ID &&
-        process.env.PRIMUS_APP_SECRET &&
-        process.env.VERIFIABLE_INFERENCE_ENABLED === "true"){
-        verifiableInferenceAdapter = new PrimusAdapter({
-            appId: process.env.PRIMUS_APP_ID,
-            appSecret: process.env.PRIMUS_APP_SECRET,
-            attMode: "proxytls",
-            modelProvider: character.modelProvider,
-            token,
-        });
-        elizaLogger.log("Verifiable inference primus adapter initialized");
-    }

@amosin
Copy link

amosin commented Jan 17, 2025

so I started playing with Eliza before Xmas, and it was great... now it has like all kinds of plugins... the plugins are great but OMG it is getting so slow... I need to work on cleaning up this to be able to use it because I don't even know if I can trust this source code anymore... Correct me if I am wrong! I feel like even a malicious code could be merged into this repo without anybody noticing? Or am I exaggerating?

@chadrandomdev
Copy link

You are correct, imho it would be good to have some dynamic installer, because you dont need all the plugins dod ElizaOS to use that.
And starter behaves totally different.

But regarding the issue - i just removed primus and all good.

@holiccoder
Copy link
Author

so I started playing with Eliza before Xmas, and it was great... now it has like all kinds of plugins... the plugins are great but OMG it is getting so slow... I need to work on cleaning up this to be able to use it because I don't even know if I can trust this source code anymore... Correct me if I am wrong! I feel like even a malicious code could be merged into this repo without anybody noticing? Or am I exaggerating?

thank you, i removed the plugin as per your instruction and it worked fine now, i don't know what will be the consequences of removing such plugin at the moment.

@amosin
Copy link

amosin commented Jan 20, 2025

so I started playing with Eliza before Xmas, and it was great... now it has like all kinds of plugins... the plugins are great but OMG it is getting so slow... I need to work on cleaning up this to be able to use it because I don't even know if I can trust this source code anymore... Correct me if I am wrong! I feel like even a malicious code could be merged into this repo without anybody noticing? Or am I exaggerating?

thank you, i removed the plugin as per your instruction and it worked fine now, i don't know what will be the consequences of removing such plugin at the moment.

none, this is a new plugin... not needed.

@AIFlowML
Copy link
Collaborator

AIFlowML commented Jan 20, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants