Repository navigation
3d: offer "Load it anyway" for a model refused for its size - #1643
Merged
Merged
Conversation
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>
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.
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
big: trueandretryable: false("too big" joins the permanent errors).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.STEP_TRIS, so a huge model still fits one frame under the 8 MB outbox.BACKPLANE_PLOT_ASKED=1to bp-plot.Desktop (gpui) and web
web/distis rebuilt.Phones show the refusal without a Retry (the frame is no longer retryable); they get no button yet.
Tested
kicad::solid,solidreadandwatchtests: 36 pass. New asserts cover the asked-for limit, the refusal words, and reading a GLB over 12 MB when asked.viewers::solid,panestateandi18ntests: 63 pass, including parsing thebigframe.scripts/i18n-check.pypasses.tscreports no errors inviewer-pane.ts.🤖 Generated with Claude Code