You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WASM: embedded asset fetch has no timeout, so a stalled URL hangs setup() forever #4023
That was wrong for parity -- it let setup() run against an empty file -- but it did guarantee the sketch always started. Replacing it with an unbounded wait traded a correctness bug for a liveness bug, and I did not notice because the happy path was all I tested.
Both properties are wanted: complete before setup(), and always reach setup().
Fix
Give the asset fetch an AbortSignal.timeout(...).
On timeout or failure, log clearly and start setup() anyway -- a sketch that runs with a missing asset can say so; one that never runs cannot.
Decide the budget, and whether it should scale with declared size rather than being a flat constant.
Research: what the WASM preview should do when a declared asset cannot be fetched. Failing the page loudly may be better than starting with a file that will never fill, given is_eof() stays false while read() returns 0 (see #4024).
Activity
fix(wasm): bound asset loading before setup
fix(wasm): bound asset loading before setup (#4095)