AcalaNetwork / chopsticks

Create parallel reality of your Substrate network.
Apache License 2.0
133 stars 80 forks source link

improve handling of reading stroages from wasm #551

Closed xlc closed 10 months ago

xlc commented 10 months ago
panicked at 'unexpected exception: JsValue(RpcError: -32702: Response is too big: Exceeded max limit of 15728640
Error: -32702: Response is too big: Exceeded max limit of 15728640
    at checkError (/home/bryan/projects/supx-deploy/supx/node_modules/@polkadot/rpc-provider/coder/index.js:18:84)
    at decodeResponse (/home/bryan/projects/supx-deploy/supx/node_modules/@polkadot/rpc-provider/coder/index.js:36:12)
    at <anonymous> (/home/bryan/projects/supx-deploy/supx/node_modules/@polkadot/rpc-provider/http/index.js:139:17)
    at asyncFunctionResume (native)
    at promiseReactionJobWithoutPromiseUnwrapAsyncContext (native)
    at promiseReactionJob (native)
    at processTicksAndRejections (native))', src/lib.rs:33:1

Stack:

Error: 
    at <anonymous> (/home/bryan/projects/supx-deploy/supx/node_modules/@acala-network/chopsticks-executor/dist/esm/chopsticks_executor.js:718:15)
    at <?>.wasm-function[728] (native)
    at <?>.wasm-function[886] (native)
    at <?>.wasm-function[802] (native)
    at <?>.wasm-function[105] (native)
    at <?>.wasm-function[355] (native)
    at <?>.wasm-function[937] (native)
    at __wbg_adapter_46 (/home/bryan/projects/supx-deploy/supx/node_modules/@acala-network/chopsticks-executor/dist/esm/chopsticks_executor.js:374:104)
    at real (/home/bryan/projects/supx-deploy/supx/node_modules/@acala-network/chopsticks-executor/dist/esm/chopsticks_executor.js:359:16)
    at performMicrotask (native)

error: [native code]
panicked at 'cannot modify the panic hook from a panicking thread', library/std/src/panicking.rs:135:9

Stack:

Error: 
    at <anonymous> (/home/bryan/projects/supx-deploy/supx/node_modules/@acala-network/chopsticks-executor/dist/esm/chopsticks_executor.js:718:15)
    at <?>.wasm-function[728] (native)
    at <?>.wasm-function[886] (native)
    at <?>.wasm-function[131] (native)
    at <?>.wasm-function[105] (native)
    at <?>.wasm-function[355] (native)
    at <?>.wasm-function[937] (native)
    at __wbg_adapter_46 (/home/bryan/projects/supx-deploy/supx/node_modules/@acala-network/chopsticks-executor/dist/esm/chopsticks_executor.js:374:104)
    at real (/home/bryan/projects/supx-deploy/supx/node_modules/@acala-network/chopsticks-executor/dist/esm/chopsticks_executor.js:359:16)
    at performMicrotask (native)

I think this happens when wasm executor is trying to read some storage and the RPC failed to response it (due to size limit) and that caused panic somehow double pancing?