uncaught_exceptionv erri

23 views
Skip to first unread message

Stéphane Letz

unread,
Jul 4, 2019, 10:23:29 AM7/4/19
to emscripten-discuss
I get this error:

libwasm-worklet-glue.js:8 Uncaught TypeError: Cannot assign to read only property '__ZSt18uncaught_exceptionv' of object '[object Object]'
    at libwasm-worklet-glue.js:8
    at clarinetMIDI-processor1.js:7

when loading and starting a WASM compiled library:  

import FaustModule from './libwasm-worklet-glue.js';

const faust_module = FaustModule(); 

The code is compiled with :

--bind -O3 --memory-init-file 0 -s LINKABLE=1 -s WASM=1 -s EXPORT_NAME=\"'FaustModule'\" -s MODULARIZE=1 -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1 -s DISABLE_EXCEPTION_CATCHING=1  -s BINARYEN_ASYNC_COMPILATION=0 -s SINGLE_FILE=1"

Any idea?

Alon Zakai

unread,
Jul 9, 2019, 5:56:49 PM7/9/19
to emscripte...@googlegroups.com
If you are loading the code as an ES6 module, that error looks like it might be the same as


which was pulled off into


As a workaround until that is fixed, removing -s ASSERTIONS=1 should avoid the problem.

- Alon


--
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 emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/07d23290-a612-4099-86e2-4e235e540043%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stéphane Letz

unread,
Jul 9, 2019, 11:01:02 PM7/9/19
to emscripten-discuss

Yes the -s ASSERTIONS=1 stuff fixes it. Thanks.

Le mardi 9 juillet 2019 23:56:49 UTC+2, Alon Zakai a écrit :
If you are loading the code as an ES6 module, that error looks like it might be the same as


which was pulled off into


As a workaround until that is fixed, removing -s ASSERTIONS=1 should avoid the problem.

- Alon


On Thu, Jul 4, 2019 at 7:23 AM Stéphane Letz <le...@grame.fr> wrote:
I get this error:

libwasm-worklet-glue.js:8 Uncaught TypeError: Cannot assign to read only property '__ZSt18uncaught_exceptionv' of object '[object Object]'
    at libwasm-worklet-glue.js:8
    at clarinetMIDI-processor1.js:7

when loading and starting a WASM compiled library:  

import FaustModule from './libwasm-worklet-glue.js';

const faust_module = FaustModule(); 

The code is compiled with :

--bind -O3 --memory-init-file 0 -s LINKABLE=1 -s WASM=1 -s EXPORT_NAME=\"'FaustModule'\" -s MODULARIZE=1 -s ASSERTIONS=1 -s ALLOW_MEMORY_GROWTH=1 -s DISABLE_EXCEPTION_CATCHING=1  -s BINARYEN_ASYNC_COMPILATION=0 -s SINGLE_FILE=1"

Any idea?

--
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 emscripten-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages