-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET: Wasmtime.TrapException: trap during instantiation #753
Comments
Hi @hrumhurum. Thanks for reporting this. It looks like there's been a regression with module instantiation and I'm looking into it. |
It appears that the latest wasm target is putting in multiple tables: (table (;1;) 32 anyref) The instantiation succeeds if this table is omitted, but as the wasm-bindgen memory management functions are no longer being exported, the demo fails to allocate memory for the string. |
@hrumhurum what Rust version are you using and on what platform? I'm having problems reproducing it on macOS, but I'm able to on Windows. Attached should be a working |
rustc 1.40.0 (73528e339 2019-12-16) |
The underlying toolset changes appear to be breaking the other demos as well: bytecodealliance/wasmtime-demos#13 |
This is likely due to the release of 0.2.56 of wasm-bindgen which includes a rewrite of how interface types are implemented. In addition to tables here wasmtime also doesn't support the new binary format for interface types, which will likely cause errors later as well. I hope to update wasmtime to the new binary representation but it's a relatively significant undertaking. |
That is indeed the problem. Should we snap to |
@hrumhurum thanks again for reporting this issue to us! As this was caused by downstream dependencies of the demo repository, we've now merged a change that will get the markdown demo project working again. The Please let me know if that does not resolve the issue for you. Thanks! |
Trying to follow a step by step example at https://github.com/bytecodealliance/wasmtime-demos/tree/master/dotnet
It produces the following result:
Please find enclosed
markdown.wasm
file for your further reference (not sure where the problem is located).markdown.zip
The text was updated successfully, but these errors were encountered: