You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to run the AssemblyScript example without the mqtt fails. (= programming demo example)
When the busy loop is empty, binaryen optimizes away callback functions. It eliminates the funcref table and passes the function's own index to the subscribe_interrupt primitive.
while(true){wd.sleep(5);// Sleep for 5 seconds }
The resulting index is obviously out of range since there is no table. This causes an unhandled exception whenever the VM wants to resolve an event.
The table is never compiled away anymore. I fixed that issue a while back by setting the correct compiler options.
But callbacks still don't work, because the table index is passed through wasm memory now instead of directly (like before). See PR #197 for a temporary fix.
Trying to run the AssemblyScript example without the mqtt fails. (= programming demo example)
When the busy loop is empty, binaryen optimizes away callback functions. It eliminates the
funcref
table and passes the function's own index to thesubscribe_interrupt
primitive.The resulting index is obviously out of range since there is no table. This causes an unhandled exception whenever the VM wants to resolve an event.
It seems users of Asyncify have run into similar problems: WebAssembly/binaryen#4484
The text was updated successfully, but these errors were encountered: