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
After a recent fix, wasm interpreter no longer require a unmanaged delegate as workaround to initialize exports. But it looks like the AOT version still get the uninitialized element error.
main: 0
UnmanagedFunc calling ManagedFunc
EXEC : error : failed to run main module Wasi.Native.Sample.wasm [E:\runtime\src\mono\sample\wasi\native\Wasi.Native.
Sample.csproj]
Caused by:
0: failed to invoke command default
1: error while executing at wasm backtrace:
2: wasm trap: uninitialized element
Regression?
No response
Known Workarounds
No response
Configuration
NET9 + Windows + Wasmtime + WASI SDK 21
Tested with .NET 9 alpha local build with latest commit a344abd
Tested with .NET 9 Preview 3 installed from the official website
Other information
Directly export function to Wasmtime lead to the same issue.
It worked fine with no RunAOTCompilation
Reacted by Ingvar Stepanyan
Activity
ghost added
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
Activity
lewing commentedon Apr 26, 2024
I can reproduce this. Works with trimming but no aot, does not work with
/p:RunAotCompilation=truepavelsavara commentedon Aug 19, 2024
I also have a repro