-
Notifications
You must be signed in to change notification settings - Fork 11
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
Initial Memory Size #54
Comments
I can add a ctor parameter for that; could you tell me actually which line raised the wasm trap (curiosity)? |
Does the change in the linked commit work for you? |
@christophwille, yes that will work great. Thanks for the quick response. |
FYI: This is my stack trace from the error: Wasmtime.TrapException: wasm trap: out of bounds memory access |
We have found an issue when loading large policies causing the Wasmtime to throw a "wasm trap: out of bounds memory access" error. We were able to pull in the source code into our project and change the minimum memory page size from 2 to 3 and that resolved our issue. We also tried updating the maximum memory size, but that did not seem to resolve the issue.
Unless we are doing something wrong, we would like to have an optional parameter on the CreatePolicyInstance to be able to specify the initial page size.
The text was updated successfully, but these errors were encountered: