emscripten-core / emscripten-core/emscripten
emrun exception thrown: NetworkError: Failed to execute 'send' on XMLHttpRequest stdio.html
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
I have a simple c file,
#include
int main() {
printf("Hello Word");
return 0;
}
I have compiled the file successfully to wasm with the following command:
D:\Practice\emscripten>emcc -O3 --emrun -s WASM=1 -o Hello.html hello.c
But I get an error using emrun. emrun is making an AJAX request to stdio.html. Can you please help on how to fix this issue?
D:\Practice\emscripten>emrun Hello.html
exception thrown: NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:6931/stdio.html'.,Error: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'http://localhost:6931/stdio.html'.
at postExit (http://localhost:6931/Hello.js:1:14076)
at http://localhost:6931/Hello.js:1:14629
at callRuntimeCallbacks (http://localhost:6931/Hello.js:1:10404)
at exitRuntime (http://localhost:6931/Hello.js:1:6251)
at exit (http://localhost:6931/Hello.js:1:13422)
at callMain (http://localhost:6931/Hello.js:1:12558)
at doRun (http://localhost:6931/Hello.js:1:13093)
at http://localhost:6931/Hello.js:1:13248
Contributor guide
Assessment
This issue has not been assessed yet.