Issue #8299 <https://github.com/emscripten-core/emscripten/issues/8299> on 
GitHub looks similar, is it related?

On Saturday, January 30, 2021 at 5:07:36 PM UTC+2 Andrii Vovk wrote:

> Hello,
>
> let me share a sample 
> <https://github.com/AndriiVovkWorkspot/EmscriptenBindingsPthread> for 
> reproducing the issue which occurs when using Emscripten bindings in 
> pthread.
>
> Compilation arguments:
> *$ emcc --bind -o build/emscripten_bindings_pthread.js -s USE_PTHREADS=1 
> -s PROXY_TO_PTHREAD=1 emscripten_bindings_pthread.cpp*
>
> Expected behavior:
> *invoke() called with "test" argument* log message displaying in browser 
> console.
>
> Actual behavior:
> Error is thrown.
> *Uncaught TypeError: Cannot read property 'value' of undefined at 
> requireHandle 
> (http://localhost:8000/build/emscripten_bindings_pthread.js:2378:41 
> <http://localhost:8000/build/emscripten_bindings_pthread.js:2378:41>) at 
> __emval_call_void_method 
> (http://localhost:8000/build/emscripten_bindings_pthread.js:3945:16 
> <http://localhost:8000/build/emscripten_bindings_pthread.js:3945:16>) at 
> <anonymous>:wasm-function[138]:0x2681 at 
> <anonymous>:wasm-function[137]:0x2603 at 
> <anonymous>:wasm-function[133]:0x2554 at 
> <anonymous>:wasm-function[132]:0x24fe at 
> <anonymous>:wasm-function[47]:0xec1 at Object.dynCall 
> (http://localhost:8000/build/emscripten_bindings_pthread.js:1790:33 
> <http://localhost:8000/build/emscripten_bindings_pthread.js:1790:33>) at 
> onmessage 
> (http://localhost:8000/build/emscripten_bindings_pthread.worker.js:130:39 
> <http://localhost:8000/build/emscripten_bindings_pthread.worker.js:130:39>)*
>

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/2be02a2c-e38a-4b0f-9e50-e18904fff551n%40googlegroups.com.

Reply via email to