Repository navigation
arigl-web: a download that breaks off is fetched again past the cache, and a failure names the file - #1505
Merged
Conversation
…, and a failure names the file On https://transfix.github.io/grl-snam-demos/scrub/ Firefox showed "Could not start: Error in input stream (ariglx printed nothing)" on every load. Reproduced in Firefox 158 against the live site: a load cut off mid-download leaves a partial copy of ariglx.wasm in Firefox's cache, and the next load's resume of it breaks ("broke off at 23604869: Error in input stream"); a fetch with cache: 'reload' gets the whole file. - arigl-web.js: the module's .wasm and the Python zip are fetched with cache: 'no-cache' as before; a fetch that fails or whose body breaks off (or ends short of its Content-Length) is asked twice more, 0.5 s and 1 s later, with cache: 'reload'. A server's refusal (404) is not retried. A file that still breaks fails the page with its name, how much arrived and the browser's words: "downloading ariglx.wasm broke off after 23.6 MB, 3 tries (Error in input stream). Reload the page to try again; ...". The other downloads stop, and their progress no longer overwrites the error line (it did before: a 404 left "Downloading ... MB" showing). - web_document.cpp: arigl's own fetches (the document, the files it names, the preload) retry the same way. - arigl_web_download.mjs (new): the loader in headless Chrome with a stand-in module, no wasm build: a clean load, a .wasm and a zip cut off once (fetched again with reload, the page runs), a .wasm cut off every time (the error names it and its size), a 404 (no retry). Against master's loader four of the five fail. CI runs it in the arigl-web job before the wasm build. - arigl_web_smoke.mjs: /apps/flaky/, a preload cut off half-way the first time; the page must fetch it again with reload and run. - ARIADNE.md section 9.4 and CVCGL_WASM.md: what the page and arigl do with a broken download.
transfix
enabled auto-merge (squash)
November 23, 2026 23:49
transfix
added a commit
that referenced
this pull request
Nov 24, 2026
… ...) into p9/volume-grid-segment #1464 checks every load against the closed schema, which already takes a color picker's fmt: rgb | hex. ColorWidgetFmtHexDrawsTheHexPicker counted every warning of its fmt: hsv load; it now counts the loader's own, as #1464's loader tests do, and checks that the schema flags that fmt where it is when the validator is built in.
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On https://transfix.github.io/grl-snam-demos/scrub/, Firefox shows this on every load:
Why
ariglx.wasm(105.6 MB, served gzip at 30.3 MB) andpython312.zipitself, withcache: 'no-cache'and no retry. "Error in input stream" is Firefox's message for a response body that broke off.ariglx.wasmin Firefox's HTTP cache;ariglx.wasm broke off at 23604869: Error in input stream;cache: 'reload'gets the whole file.python312.zipdifferent ETags ("6b045ef8-da5bad"/"6b045ecd-da5bad"). That may be what spoils the resume. I couldn't confirm it: a proxy with two alternating ETags didn't reproduce it.What changes
src/arigl/web/arigl-web.js:cache: 'no-cache', as before. A fetch that fails, or whose body breaks off or ends short of its Content-Length, is retried twice more, 0.5 s and 1 s later, withcache: 'reload'. That fetch bypasses the cache and replaces the copy there.Could not start: downloading ariglx.wasm broke off after 23.6 MB, 3 tries (Error in input stream). Reload the page to try again; if it keeps failing, clear this site's data.(again: ariglx.wasm)while a file is retried.src/cvc/ariadne/web_document.cpp: arigl's own fetches (the document, the files it names, thepreload) retry the same way. Any reply the server gives is still returned as it came.Tests
src/arigl/web/test/arigl_web_download.mjs(new): the loader in headless Chrome, with a stand-in module and no wasm build, so it takes seconds. Cases:.wasmand a zip each cut off once: fetched again withreload, and the page runs;.wasmcut off every time: the error names it and its size;All 5 pass locally (Chrome for Testing 145). Against master's loader, 4 of 5 fail. Chrome's version of the error is "network error". CI runs this test in the
arigl-webjob right after the toolchain install, before the wasm build.arigl_web_smoke.mjs: a new/apps/flaky/case, whose preload is cut off half-way the first time. The page must fetch it again withreloadand run. This needs the wasm build, so it runs only in CI, for both arigl-web and ariglx-web.Getting it onto the demo site
transfix/grl-snam-demos builds from a pinned libcvc tag (
pages.yml'sLIBCVC_REF, v4.0.0 now). The fix reaches the site after a libcvc release carries it and that ref moves.Until then, the workaround in Firefox is to clear the site's data for transfix.github.io (padlock → Clear cookies and site data). That drops the partial copy.