Aborted(CompileError: WebAssembly.instantiate(): expected magic word
(1) By Ar_Ray (KushalR) on 2024-01-02 12:10:44 [source]
In Console error occurring, Please help
Exception loading sqlite3 module: RuntimeError: Aborted(CompileError: WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f @+0). Build with -sASSERTIONS for more info.
(2) By Stephan Beal (stephan) on 2024-01-02 12:15:44 in reply to 1 [link] [source]
WebAssembly.instantiate(): expected magic word 00 61 73 6d, found 3c 21 44 4f
You are going to need to provide more information, such as which version and which browser.
My guess is that your wasm file is corrupt, as this error has never come up in many hundreds of tests and has never been reported before.
(3) By Ar_Ray (KushalR) on 2024-01-02 12:22:25 in reply to 2 [link] [source]
Hi Stephan,
I am using Chrome Browser with version 119.0.6045.200 and this issue occurring while push the files on IIS, on local its working fine.
(5) By Stephan Beal (stephan) on 2024-01-02 12:24:40 in reply to 3 [link] [source]
... this issue occurring while push the files on IIS,...
Perhaps (just speculating) IIS needs to be configured with the proper mimetype for wasm files? Right now it appears to be attempting to serve them as HTML files.
(4) By Stephan Beal (stephan) on 2024-01-02 12:23:18 in reply to 2 [link] [source]
My guess is that your wasm file is corrupt ...
The hex from your error report decodes to:
<!DO
which looks like the first 4 bytes of an HTML5 DOCTYPE header. You have a file named sqlite3.wasm
which is not actually sqlite3.wasm
.
(6) By Ar_Ray (KushalR) on 2024-01-02 14:21:04 in reply to 4 [link] [source]
I got the issue there was an issue of mime type. Now its working Thanks for help.
(7) By anonymous on 2024-06-11 09:46:38 in reply to 6 [link] [source]
Hi! Can you please share more details how you got this issue fixed? I am facing the same issue.
(8) By Stephan Beal (stephan) on 2024-06-11 10:03:12 in reply to 7 [link] [source]
I am facing the same issue.
"Somewhere" in IIS you need to tell it that files named *.wasm
have mime type application/wasm
. It's apparently defaulting to a different mime type for such files.