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
I wrote an example that increases or decreases the brightness of an LED when pressing two different buttons. Pressing any button for a random amount of times raises an exception call type mismatch.
The issue may come from the Wast but I could not test whether the code is correct because the raised exception prevents me to test in depth. Nevertheless, faulty source code that compiles to wasm should not break the VM.
When I register the same callback (e.g. $decrDelta) on the two different buttons then the call type mismatch does not manifest but instead I get a guru mediation error probably because the VM accesses a null pointer somewhere.
I believe there is another cause for this bug. I cannot reproduce this with another program by just "using two callbacks". I even rewrote the above program by hand in .wat from scratch. This also didn't produce the error.
I think the real cause is that we do not typecheck callbacks (#86). This is a known issue.
Since I cannot reproduce this bug and the issue assigns an implausible cause to the bug, I'm marking this as invalid.
I think we should follow up on this in #86.
I wrote an example that increases or decreases the brightness of an LED when pressing two different buttons. Pressing any button for a random amount of times raises an exception
call type mismatch
.The issue may come from the Wast but I could not test whether the code is correct because the raised exception prevents me to test in depth. Nevertheless, faulty source code that compiles to wasm should not break the VM.
When I register the same callback (e.g.
$decrDelta
) on the two different buttons then thecall type mismatch
does not manifest but instead I get aguru mediation error
probably because the VM accesses a null pointer somewhere.The text was updated successfully, but these errors were encountered: