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

Unhandled Rejection (RuntimeError): abort(CompileError: WebAssembly.instantiate(): expected magic word #153

Closed
ohad1989 opened this issue Oct 18, 2020 · 2 comments
Labels
not an issue Asking for help or other discussions

Comments

@ohad1989
Copy link

Hi,
I'm trying to run the application. I ran the suggested command:

git clone https://github.com/magjac/graphviz-visual-editor
cd graphviz-visual-editor
npm install
make
npm run start

Now, just right after the application appears for a few milliseconds, it crashes and I get this error:
Unhandled Rejection (RuntimeError): abort(CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 2e 2e 2f 2e @+0). Build with -s ASSERTIONS=1 for more info.
abort
C:/.../build/graphviz/graphvizlib/graphvizlib.js:9

I tried cp -p node_modules/@hpcc-js/wasm/dist/graphvizlib.wasm public/js as suggested here without help.

Thanks in advance!

@ohad1989 ohad1989 reopened this Oct 19, 2020
@magjac
Copy link
Owner

magjac commented Oct 24, 2020

Is this still a problem? @ohad1989 @Zoharit You both seem to have deleted your comments.

C:/.../build/graphviz/graphvizlib/graphvizlib.js:9

This suggests to me that you're running this on Windows. The repo contains a symbolic link: https://github.com/magjac/graphviz-visual-editor/blob/master/%40hpcc-js that probably doesn't work on Windows. Also, the Makefile is not built to run on Windows, so I'm kind of surprised you even managed to build it.

@ohad1989
Copy link
Author

Hi, Thanks for your comment.
make did work with some warnings.
In general, it worked after copying the whole folder (kind of a WA instead of using a symbolic link).

@magjac magjac added the not an issue Asking for help or other discussions label May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not an issue Asking for help or other discussions
Projects
None yet
Development

No branches or pull requests

2 participants