Skip to content

internal error: entered unreachable code #913

@indirection42

Description

@indirection42

When I use chopsticks to run the runtime PoC of https://github.com/open-web3-stack/PVQ, got the following error.
Changing runtime-log-level from 5 to 4 resolves the issue. Unsure if this is a misconfiguration or a bug.

bunx @acala-network/chopsticks@latest --config poc/runtime/chopsticks.yml --genesis output/chainspec.json

    chopsticks::executor  TRACE: Calling Metadata_metadata
    chopsticks::executor  TRACE: Completed Metadata_metadata
    chopsticks::executor  TRACE: Calling Core_initialize_block
    chopsticks::executor  TRACE: Completed Core_initialize_block
    chopsticks::executor  TRACE: Calling BlockBuilder_apply_extrinsic

panicked at src/task.rs:356:42:
internal error: entered unreachable code: unexpected log level 5

Stack:

Error
at imports.wbg.__wbg_new_abda76e883ba8a5f (/private/tmp/bunx-501-@acala-network/chopsticks@latest/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:749:19)
at wasm://wasm/00bdbb8a:wasm-function[1234]:0x1ba647
at wasm://wasm/00bdbb8a:wasm-function[1421]:0x1c242a
at wasm://wasm/00bdbb8a:wasm-function[105]:0xb47d3
at wasm://wasm/00bdbb8a:wasm-function[497]:0x16e5c7
at wasm://wasm/00bdbb8a:wasm-function[1491]:0x1c326c
at __wbg_adapter_48 (/private/tmp/bunx-501-@acala-network/chopsticks@latest/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:419:10)
at real (/private/tmp/bunx-501-@acala-network/chopsticks@latest/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:401:22)
at node:internal/process/task_queues:140:7
at AsyncResource.runInAsyncScope (node:async_hooks:206:9)

[14:29:06.877] INFO (block-builder): poc-runtime building #1
app: "chopsticks"
number: 1
extrinsics: []
umpCount: 0

node:internal/event_target:1084
process.nextTick(() => { throw err; });
^
Error [RuntimeError]: unreachable
at wasm://wasm/00bdbb8a:wasm-function[1234]:0x1ba820
at wasm://wasm/00bdbb8a:wasm-function[1421]:0x1c242a
at wasm://wasm/00bdbb8a:wasm-function[105]:0xb47d3
at wasm://wasm/00bdbb8a:wasm-function[497]:0x16e5c7
at wasm://wasm/00bdbb8a:wasm-function[1491]:0x1c326c
at __wbg_adapter_48 (/private/tmp/bunx-501-@acala-network/chopsticks@latest/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:419:10)
at real (/private/tmp/bunx-501-@acala-network/chopsticks@latest/node_modules/@acala-network/chopsticks-executor/dist/cjs/chopsticks_executor.js:401:22)
at node:internal/process/task_queues:140:7
at AsyncResource.runInAsyncScope (node:async_hooks:206:9)
at AsyncResource.runMicrotask (node:internal/process/task_queues:137:8)

Node.js v21.1.0
make: *** [run] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions