Hi

When including optimized (-O3) ChucK (https://github.com/aknuds1/chuck)
code in my app, it invariably breaks when loaded, with the following error
message:

     Invalid function pointer '0' called with signature 'ii'. Perhaps this
is an invalid value (e.g. caused by calling a virtual method on a NULL
pointer)? Or calling a function with an incorrect type, which will fail?
(it is worth building your source files with -Werror (warnings are errors),
as warnings can indicate undefined behavior which can cause this)

The code doesn't break if I compile without optimization. I'm using
Emscripten 1.27.0. I've tested with both Chrome and Firefox on OS X. You
can try for yourselves at http://104.131.177.17/ (just check the console
after loading the page).

Is this due to a bug in Emscripten?

Arve

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to