Closed linuxaged closed 4 years ago
EmscriptenApplication.js:35 missing function: emscripten_get_sbrk_ptr
Hmm, this seems to be the culprit. Maybe caused by a newer emscripten version...
Try enabling assertions, maybe you'll get more info:
target_link_options(MyApplication PRIVATE
# Set debugging flags (assertions and demangle)
$<$<CONFIG:DEBUG>:-s ASSERTIONS=1 -s DEMANGLE_SUPPORT=1>)
Looking at Emscripten's issues, especially https://github.com/emscripten-core/emscripten/pull/9397, it seems like this sbrk
stuff is some pretty bleeding edge feature, you may want to go back to 1.38.46
or even earlier.
I have to admit the new Emscripten versions don't work for me very well (complaining about Clang version mismatch and whatnot), so I'm personally at 1.38.38 (and binaryen
87 to go with that).
I'll look at this before release, but so far it seems it's one of those "emscripten is broken" days ... let's wait until things settle down there :D
Have tested with emsdk 1.38.30 and 1.38.46, both with error:
include.preload.js:335 [Deprecation] Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
createShadowTree @ include.preload.js:335
ElemHide @ include.preload.js:294
(anonymous) @ include.preload.js:460
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
EmscriptenApplication.js:35 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
printErr @ EmscriptenApplication.js:35
(anonymous) @ MyApplication.js:1
Promise.then (async)
createWasm @ MyApplication.js:1
Module.asm @ MyApplication.js:1
(anonymous) @ MyApplication.js:1
EmscriptenApplication.js:35 falling back to ArrayBuffer instantiation
printErr @ EmscriptenApplication.js:35
(anonymous) @ MyApplication.js:1
Promise.then (async)
createWasm @ MyApplication.js:1
Module.asm @ MyApplication.js:1
(anonymous) @ MyApplication.js:1
EmscriptenApplication.js:39 Renderer: WebKit WebGL by WebKit
EmscriptenApplication.js:39 OpenGL version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))
EmscriptenApplication.js:39 Using optional features:
EmscriptenApplication.js:39 GL_EXT_texture_filter_anisotropic
wasm-0040f726-1142:1 Uncaught RuntimeError: float unrepresentable in integer range
at wasm-function[1142]:0xd81fe
at wasm-function[1037]:0x93456
at wasm-function[1143]:0xdb915
at wasm-function[1253]:0xe1b44
at Module.dynCall_ii (http://localhost:8000/MyApplication.js:1:157063)
at dynCall (http://localhost:8000/MyApplication.js:1:4535)
at drawEvent (http://localhost:8000/MyApplication.js:1:15574)
(anonymous) @ wasm-0040f726-1142:1
(anonymous) @ wasm-0040f726-1037:1
(anonymous) @ wasm-0040f726-1143:1
(anonymous) @ wasm-0040f726-1253:1
Module.dynCall_ii @ MyApplication.js:1
dynCall @ MyApplication.js:1
drawEvent @ MyApplication.js:1
requestAnimationFrame (async)
ASM_CONSTS @ MyApplication.js:1
_emscripten_asm_const_iii @ MyApplication.js:1
(anonymous) @ wasm-0040f726-1184:1
Module._main @ MyApplication.js:1
callMain @ MyApplication.js:1
doRun @ MyApplication.js:1
(anonymous) @ MyApplication.js:1
setTimeout (async)
run @ MyApplication.js:1
runCaller @ MyApplication.js:1
removeRunDependency @ MyApplication.js:1
receiveInstance @ MyApplication.js:1
receiveInstantiatedSource @ MyApplication.js:1
Promise.then (async)
instantiateArrayBuffer @ MyApplication.js:1
(anonymous) @ MyApplication.js:1
Promise.then (async)
createWasm @ MyApplication.js:1
Module.asm @ MyApplication.js:1
(anonymous) @ MyApplication.js:1
@linuxaged did you get any further with this? I wasn't able to reproduce on my side.
Keeping this open until we figure it out, but since it seems to be that Emscripten is to blame I don't think it's blocking the 2019.10 release.
update corrade
, magnum
, magnum-integration
to latest master, built with emsdk-1.38.38.
not crash now but still have some errors:
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
MyApplication.html:1 Unchecked runtime.lastError: The message port closed before a response was received.
EmscriptenApplication.js:35 wasm streaming compile failed: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.
printErr @ EmscriptenApplication.js:35
EmscriptenApplication.js:35 falling back to ArrayBuffer instantiation
printErr @ EmscriptenApplication.js:35
EmscriptenApplication.js:39 Renderer: WebKit WebGL by WebKit
EmscriptenApplication.js:39 OpenGL version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))
EmscriptenApplication.js:39 Using optional features:
EmscriptenApplication.js:39 GL_EXT_texture_filter_anisotropic
Nice.
The wasm streaming compile failed
is due to the server not knowing about WebAssembly MIME types. It's harmless, AFAIK it only slows down the startup slightly since the browser can't do wasm compilation in parallel to download.
by the way, cmake toochain files not included in the bootstrap Emscripten project archive, complete project maybe more friendly to newcomers : >
It's a Git submodule and the ZIPs created automagically by github don't include these :/ Not sure how to fix that (besides manually putting all files there..).
Anything left to be done here? :)
fine to close
follow the official emscripten example, app crashed:
console log:
emsdk version:
app build log:
http server log: