-
Notifications
You must be signed in to change notification settings - Fork 80
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
SetMaxWasmStack fails with async_stack_size error #182
Comments
Oddly enough, I can't reproduce it when writing a test case against this repo func TestEngineMaxStackSize(t *testing.T) {
config := NewConfig()
config.SetMaxWasmStack(8388608) // 8MiB
engine := NewEngineWithConfig(config)
require.NotNil(t, engine)
} This passes with no issue. But the same usage fails in trealla-prolog/go. I'll see if I can isolate it better. |
Are you using a custom build of Wasmtime's C API? The check that you're failing is behind I also posted over on the Wasmtime PR, but I think this is still a bug to fix in Wasmtime. |
I am seeing the same issue on GitHub actions, so it's probably not an environment issue, but still not sure of the root cause. |
Oh, I think you were right after all about the custom build thing, I was just thinking in the wrong direction. |
Sent a quick PR with a little test in #183, it fails in CI so I think we've figured it out. |
Confirmed that this is fixed with the latest version. Feel free to close or merge #183, which should be passing now. |
As mentioned in bytecodealliance/wasmtime#6762. I figure it's better to discuss wasmtime-go stuff here.
Currently doing this:
Fails with this message:
This led to me trying to set the async_stack_size, noticing it was missing from C API, and the wasmtime PR.
The text was updated successfully, but these errors were encountered: