-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
Description
Edit: for point two --profiling
seems to be helping digging out the issue, but I'm still a bit confused as to why debugging flag would make things work.
I am currently working on a codebase where I ASYNCIFY_IGNORE_INDIRECT
then ASYNC_ADD
the functions/methods needed. This works as intended when -g3
or higher is set, but fails with:
(index):1 exception thrown: RuntimeError: function signature mismatch,RuntimeError: function signature mismatch
at emscripten::internal::Invoker<void, unsigned int>::invoke(void (*)(unsigned int), unsigned int) (http://localhost:8000/byuu-web.wasm:wasm-function[3898]:0x23f8a5)
at ret.<computed> (http://localhost:8000/byuu-web.js:9126:35)
at Object.finishContextSwitch (http://localhost:8000/byuu-web.js:9309:11)
at Object.trampoline (http://localhost:8000/byuu-web.js:9283:20)
at Object.ret.<computed> [as dynCall_v] (http://localhost:8000/byuu-web.js:9138:30)
at browserIterationFunc (http://localhost:8000/byuu-web.js:5492:30)
at Object.runIter (http://localhost:8000/byuu-web.js:5605:13)
at Browser_mainLoop_runner (http://localhost:8000/byuu-web.js:5544:26)
My questions are:
- Is it possible that Asyncify relies on debugging information?
- What would be the best method to go about to investigate these kind of issues?