Skip to content

3d: offer "Load it anyway" for a model refused for its size - #1643

Merged
jlcjak merged 1 commit into
mainfrom
backplane/load-big-model
Nov 23, 2026
Merged

jlcjak merged 1 commit into
mainfrom
backplane/load-big-model

Conversation

@jlcjak

@jlcjak jlcjak commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

A 3D model over the hub's size limit showed "This 3D model is too big to show here (73 MB; the hub reads models up to 12 MB)" with a Retry button that could only fail the same way. This replaces it with an explicit Load it anyway button.

Hub

  • A size refusal now goes out with big: true and retryable: false ("too big" joins the permanent errors).
  • New kicad.big {key} request, for a 3D source the client watches. That source is then read up to 512 MB (solid::MOST_ASKED) for as long as it is watched. The GLB reader's own triangle bound still holds.
  • A board's thinned model is also held to STEP_TRIS, so a huge model still fits one frame under the 8 MB outbox.
  • A STEP's refusal names its real 64 MB limit (it said 12 MB before).
  • Child mode passes the request as BACKPLANE_PLOT_ASKED=1 to bp-plot.

Desktop (gpui) and web

  • The 3D page shows "Load it anyway" plus a dim line: "Loading it may take a while and a lot of memory."
  • On click it shows "Loading it anyway…" until the hub's own stage frames arrive (bounded at 15 s, like Retry).
  • Catalog entries are added in en, ja and es. web/dist is rebuilt.

Phones show the refusal without a Retry (the frame is no longer retryable); they get no button yet.

Tested

  • Hub kicad::solid, solidread and watch tests: 36 pass. New asserts cover the asked-for limit, the refusal words, and reading a GLB over 12 MB when asked.
  • gpui viewers::solid, panestate and i18n tests: 63 pass, including parsing the big frame.
  • scripts/i18n-check.py passes.
  • Web tsc reports no errors in viewer-pane.ts.

🤖 Generated with Claude Code

A 3D model over the hub's limit (12 MB for a board's or a GLB's model,
64 MB for a STEP's mesh) showed "This 3D model is too big to show here"
with a Retry button that could only fail the same way. Now the hub marks
such a refusal `big` (and not retryable), and the desktop and web 3D
pages offer "Load it anyway" instead.

The button sends a new `kicad.big` request for that source. The hub then
reads it up to 512 MB for as long as it is watched. The GLB reader's own
triangle bound still holds, and a board's thinned model is held to
STEP_TRIS like a STEP's, so a huge model still goes out in one frame
under the outbox limit. A STEP's refusal now names its own 64 MB limit
instead of 12 MB.

Tested: hub tests for kicad::solid, solidread and watch (36 pass; new
asserts for the asked-for limit, the refusal words and reading a GLB
past 12 MB when asked); gpui viewers::solid, panestate and i18n tests
(63 pass, including the `big` frame parse); i18n-check; web tsc shows
no errors in viewer-pane.ts; web/dist rebuilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jlcjak
jlcjak merged commit 9426ef8 into main Nov 23, 2026
14 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant