Replies: 1 comment 2 replies
-
Hmm.. interesting. It seems like this component is stateful in way that I haven't tried to do yet, TBH. OTTOMH it seems like this might be a job for a resource, which is a opaque handle to a stateful thing designed to be shared across the component boundary. This is not yet something we support, thought I would like to add support for it eventually. In any event, it would be interesting to better understand more specifically what resources (in the generic sense) this component is running out of. I'll see if I can add some better debugging in the rust code and run your example when I get a chance. In the meantime, it would be really interesting to understand what you are trying to do and see if it can be refactored to not depend on the component instance being stateful in this way. The way it is designed a process managing a component will crash and be restarted by its supervisor in the event of function invocation error from wasmtime. This is deliberate, as it seems to get left it in an invalid state by wasmtime in certain cases. |
Beta Was this translation helpful? Give feedback.
-
Having a consistent problem with a simple component that is written in JS and called a few thousand times. The stack trace output doesn't mean much to me as a guide to where the problem exists. The behavior is that it will run exactly 2473 times and break. I just removed the console output and it runs consistently at 2489 iterations. This seems like a resource exhaustion problem, but what kind and how to change is not clear. Is see the default for EngineConfig consume_fuel is false.
Here is the error message:
And the source:
The wit used with componentize:
The try/catch and log messages are all in an attempt to isolate the problem, but have not helped. The console output prints, but I'm not 100% on how the logging propagates through the WASI.
Beta Was this translation helpful? Give feedback.
All reactions