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

Chopsticks not compatible with Moonbeam RT260X Runtimes #575

Closed
albertov19 opened this issue Nov 30, 2023 · 17 comments
Closed

Chopsticks not compatible with Moonbeam RT260X Runtimes #575

albertov19 opened this issue Nov 30, 2023 · 17 comments

Comments

@albertov19
Copy link
Contributor

Moonbeam-based networks upgraded to RT260X and now Chopsticks is not compatible with any of them. For example, the error I get when I launch Chopsticks pointing to Moonbeam is:

npx @acala-network/chopsticks@latest -c moonbeam

Logs:

panicked at 'called `Result::unwrap()` on an `Err` value: VirtualMachine(UnresolvedFunctionImport { function: "ext_panic_handler_abort_on_panic_version_1", module_name: "env" })', src/task.rs:133:6

Stack:

Error
    at imports.wbg.__wbg_new_abda76e883ba8a5f (/home/purestake/.npm/_npx/81ad9c881cb83600/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:729:19)
    at wasm://wasm/009743be:wasm-function[728]:0x12aaea
    at wasm://wasm/009743be:wasm-function[886]:0x13420c
    at wasm://wasm/009743be:wasm-function[802]:0x12eaca
    at wasm://wasm/009743be:wasm-function[105]:0xa92ae
    at wasm://wasm/009743be:wasm-function[355]:0x10e846
    at wasm://wasm/009743be:wasm-function[937]:0x134a9e
    at __wbg_adapter_46 (/home/purestake/.npm/_npx/81ad9c881cb83600/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:407:10)
    at real (/home/purestake/.npm/_npx/81ad9c881cb83600/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:391:22)
    at node:internal/process/task_queues:141:7



node:internal/event_target:777
  process.nextTick(() => { throw err; });
                           ^
Error [RuntimeError]: unreachable
    at wasm://wasm/009743be:wasm-function[728]:0x12ac13
    at wasm://wasm/009743be:wasm-function[886]:0x13420c
    at wasm://wasm/009743be:wasm-function[802]:0x12eaca
    at wasm://wasm/009743be:wasm-function[105]:0xa92ae
    at wasm://wasm/009743be:wasm-function[355]:0x10e846
    at wasm://wasm/009743be:wasm-function[937]:0x134a9e
    at __wbg_adapter_46 (/home/purestake/.npm/_npx/81ad9c881cb83600/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:407:10)
    at real (/home/purestake/.npm/_npx/81ad9c881cb83600/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:391:22)
    ```
    
    
    This is using Chopsticks version `0.9.3`
@albertov19
Copy link
Contributor Author

It seems that with the flag --allow-unresolved-imports true it works :)

@ermalkaleci
Copy link
Collaborator

moonbeam's new runtime has functions unknown to smoldot

@wuzhong-zhu
Copy link

wuzhong-zhu commented Dec 1, 2023 via email

@albertov19
Copy link
Contributor Author

@xlc @ermalkaleci It seems that --allow-unresolved-imports true does not work with the xcm feature of Chopsticks. Do you know any alternative?

@ermalkaleci
Copy link
Collaborator

#584

@ermalkaleci
Copy link
Collaborator

new beta will be released in a few minutes

@albertov19
Copy link
Contributor Author

Thank you @ermalkaleci - I'll keep the issue open to ensure the compatibility issues are solved for Moonbeam-based networks

@ermalkaleci
Copy link
Collaborator

ermalkaleci commented Dec 6, 2023

@albertov19 0.9.4-6 should work

@albertov19
Copy link
Contributor Author

albertov19 commented Dec 7, 2023

Hey @ermalkaleci it seems that is not working as expected with "@acala-network/chopsticks": "0.9.4-6" :

Any clues?

Was running NPX with @latest and not @beta

@qiweiii
Copy link
Member

qiweiii commented Dec 7, 2023

@acala-network/chopsticks@latest is version 0.9.3

npx @acala-network/[email protected] xcm -r polkadot -p hydradx -p moonbeam will work

@ermalkaleci
Copy link
Collaborator

@albertov19 use beta

@albertov19
Copy link
Contributor Author

@qiweiii I'm using the beta version as suggested by @ermalkaleci because of a Moonbeam specific issue (check comments above)

@ermalkaleci per my previous message I'm using beta, version ^0.9.4-6. Is there anything specific you want me to look into?

@ermalkaleci
Copy link
Collaborator

your npx command says latest which is 0.9.3 use npx @acala-network/chopsticks@beta xcm -r polkadot -p moonbeam

@ermalkaleci
Copy link
Collaborator

Screenshot 2023-12-07 at 12 31 03 PM

@albertov19
Copy link
Contributor Author

albertov19 commented Dec 7, 2023

AHHH crap!!!!!! Need more sleep! haha thanks and sorry for the dumb mistake 😄 - Working like a charm. Thanks again

@albertov19
Copy link
Contributor Author

I wanted to reopen this until the fix is done in the smoldot thing

@ermalkaleci
Copy link
Collaborator

better open an issue on smoldot

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

No branches or pull requests

4 participants