Skip to content

Mismatch in shared state of memory, declared = 0, imported = 1 #2190

Closed
@ccartas

Description

@ccartas

I'm trying to instantiate a wasm module across multiple web workers using SharedArrayBuffer.
I've managed to find the way to pass the Webassembly.Memory object to the init function but now I get this error and I'm stuck.

Uncaught (in promise) LinkError: WebAssembly.instantiate(): mismatch in shared state of memory, declared = 0, imported = 1

Any help is much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions