-
Notifications
You must be signed in to change notification settings - Fork 16
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
Does not run with newer Emscripten #1
Comments
Probably needs to call |
What surprises me is I can't find the call to "stackSave" except in the build results.. |
What does it look like? Maybe I'll recognize it, or can search for that specific code in emscripten's src/ to find it. |
When compiling with ASSERTIONS=1 I get:
My HTML is like:
Maybe things are more asynchronous than in the past - how should one load zee.js? Anyway I tried commenting out the tests and running them from the console later, but I get:
EDIT: same with -s WASM=0 |
Yes, wasm starts up async by default. You can disable async compilation ( Usually the proper thing to do is to use |
You probably missed my edit: it's the same with WASM=0, while I'd expect ASMJS to start sync. Also even when waiting there is the other error. I'd like to use this to load another gzipped wasm (as discussed at https://groups.google.com/forum/#!msg/emscripten-discuss/ORbvqatO9hE/pZcMKTzEAwAJ ), so this would need to work in Chrome, and ideally this would start synchronously because the emscripten bootstrapping is complex enough. If that's too complex maybe I need to roll-up my own gunzipper in pure JS :/ |
|
|
asm.js will be async too, when using a mem init file (-O2 and above, by defualt, I believe). Can use SINGLE_FILE to make asm.js startup synchronous, and for wasm, can disable async compilation if it's small enough (64K or less). |
Here's a longer output
|
Not sure what could cause that - really weird. Might be easier to debug with a small testcase maybe? |
It was another early use of the FS module causing 0x00 padding - cf. #4 :) |
I think this is all fixed now. |
Thanks for the PRs! I think pushing builds makes sense to do, could help some people that don't want to build themselves. |
When compiling with 1.38.28, compilation ran fine (just has to replace
$(EMSCRIPTEN)/emcc
withemcc
in the Makefile), but when running test.js within a html page I just get an error:It runs fine with the pre-built version, saved for a
TypeError: asm.js type error: Disabled by debugger
warning.The text was updated successfully, but these errors were encountered: