-
Notifications
You must be signed in to change notification settings - Fork 32
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
Repeated calls to an instance start failing #80
Comments
Thanks for sharing a replication here, this seems like an overflow case. Will aim to look into it further soon. |
With the upgrade to the new StarlingMonkey engine, this test is no longer failing. I've still merged it in to ensure there are no future regressions though - a9e071d. |
Thanks. Tried a local version of this on our larger tests and it does still fail. Trying the simple
In our use case, with more complex data structures, it's < 1000 calls. We're running stateless components, so our current workaround is to run the instance until failure and then recreate it, to get reasonable performance. |
Are you sure you're building the local version correctly? I'm publishing a release shortly, perhaps test on that? I did try your |
I think the local version is correctly built. Ran |
I'll try our own tests with the published release once available. |
Tested |
Thanks for the report, at least the numbers are getting bigger. Reopening. |
One first step here might be to try and debug if this is a GC issue or a bigger allocation issue in ComponentizeJS. Another useful isolation could be to independently test StarlingMonkey with some GC objects in an exported interface to see if it's definitely happening on the ComponentizeJS side. |
Hi, we're seeing something similar in a plugin system we are developing. The host is in Rust and uses wasmtime v23.0.2. The host repeatedly call a function from the wasm component to apply a transformation to a stream of byte chunks. It works for a few iterations but crashes after a while. The error occurs reliably after the same number of calls for a particular input, but that number changes with different inputs. Our setup has been working fine with other languages for the guest plugin (go, python, rust) so we think we might be facing the issue described here. The backtrace doesn't seem particularly helpful but I'll provide it anyway:
|
We're testing long-lived component instances created with ComponentizeJS. After some number of calls to an instance we start getting failures, wasm traps such as unreachable or uninitialized value. The number of calls before a failure seems to vary based on the functions called and the data returned, but it consistently fails given the same pattern of calls.
I've created a test case using the ComponentizeJS testing here: main...pvlugter:ComponentizeJS:repeated-calls
Which fails after 1805 calls with:
The text was updated successfully, but these errors were encountered: