Stream: wasmtime

Topic: Timeout Error lost during components


view this post on Zulip Cwasi4wasm (Jan 12 2024 at 19:39):

Using the epoch method it seems like it successfully traps when it goes past the ticks but the timeout error type is never returned. I wanted to publish a bug but was wondering if anyone has encountered this.

Tangentially I was wondering if anyone knows how to get data size of memory from the component Linker

view this post on Zulip Lann Martin (Jan 12 2024 at 19:55):

I haven't verified recently but this is (roughly) what we use so hopefully it worked at some point: :sweat_smile:

matches!(err.downcast_ref::<wasmtime::Trap>(), Some(wasmtime::Trap::Interrupt))

view this post on Zulip Cwasi4wasm (Jan 12 2024 at 19:57):

My non component test seems to pass so I think it did. Maybe will investigate further and create a bug in git


Last updated: Dec 23 2024 at 14:03 UTC