Skip to content

emscriptten built wasm module didn't load and had crash in reactjs project. #8

@Realitian

Description

@Realitian

Hi,
I tried to build wasm as single-thread mode by set USE_PTHREADS=0 and tried to load it in a simple threejs based react-js project.
But it failed to load and crashed with following error.

Uncaught (in promise) RuntimeError: memory access out of bounds
at emHdBindings.wasm:0x5c7ae4
at emHdBindings.wasm:0x5ca39e
at emHdBindings.wasm:0x52afbf
at emHdBindings.wasm:0x537a96
at emHdBindings.wasm:0x6591c4
at emHdBindings.wasm:0x52bbdc
at emHdBindings.wasm:0x3e44d8
at emHdBindings.wasm:0x3e413b
at emHdBindings.wasm:0x1839c
at emHdBindings.wasm:0x18001

Btw, it worked with webpack based threejs-vanillar project.
It is strange why it does not work in reactjs based.
Please advice me if anybody has clue.

@kaischroeder , Could you check my issue?

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