Skip to content

Joint: a joint between 2 grounded parts is kept, moves nothing, and nothing says why #12867

Done

Description

@kaievns

What users see

You join 2 parts that are both grounded. The Joint dialog shows no note, and the
preview moves nothing. After OK, the joint appears in the browser and the
History bar. Neither part moves. Messages stays empty.

Nothing tells you to unground one part so the joint places it. The 2 pin glyphs
in the browser are the sole sign.

The engine knows. joint.create lists the new joint under conflicts. Its
reason is wrong, though: "off by 187.6832 mm and 180.000° from the placement the
other joints give". The design has no other joints.

Steps

  1. Save the script below as make_bin.py. Run python3 make_bin.py bin.json.
  2. Run solidcraft-cli run bin.json --save bin-grid.sc.
  3. Open bin-grid.sc. Bin is grounded when it is made.
  4. Ground Cover too: right-click Cover:1 in the browser and choose
    Ground.
  5. Choose Assemble > Joint.
  6. For Component 1, pick the top of Bin's rim. For Component 2, pick the top of
    Cover's flange. That is the 3.7 mm ledge that rings its lip.
  7. Click OK.

Or, without the app: append these steps to bin.json and run
solidcraft-cli run bin.json --results --timings --quiet.

{"command": "occurrence.ground", "params": {"occurrence": "Cover:1", "grounded": true}},
{"command": "joint.create", "params": {"type": "rigid", "name": "Cover seat",
  "a": {"occurrence": "Bin", "face": [92, 1.75, 40]},
  "b": {"occurrence": "Cover", "face": [92, 185.8, 3]}}}
make_bin.py: the test design
"""make_bin.py OUT.json: a 6 x 5 grid of 27 mm pockets at a 30 mm pitch, with rounded
corners and floor edges and a 4 x 4 grid of counterbored holes in each floor. Tab and
Cover are separate parts."""
import json, sys
NX, NY, P, C, M = 6, 5, 30.0, 27.0, 3.5
L, W, H, FLOOR = M * 2 + P * (NX - 1) + C, M * 2 + P * (NY - 1) + C, 40.0, 5.0
HOLES = [(6 + 5 * i, 6 + 5 * j) for i in range(4) for j in range(4)]
cmds = []
def add(c, **p): cmds.append({"command": c, "params": p})
add("component.create", name="Bin", parent="root")
add("solid.box", length=L, width=W, height=H, corner=[0, 0, 0], operation="new", body_name="Bin")
add("solid.box", length=C, width=C, height=H, corner=[M, M, FLOOR], operation="new", body_name="Cell")
add("solid.fillet", edges=[[M + dx, M + dy, 20] for dx in (0, C) for dy in (0, C)], radius=4)
add("solid.fillet", edges=[[M + C / 2, M, FLOOR]], radius=2)
pins = []
for n, (hx, hy) in enumerate(HOLES):
    add("solid.cylinder", diameter=2, height=FLOOR + 1, base=[M + hx, M + hy, -0.5], operation="new", body_name=f"Pin{n}")
    add("solid.cylinder", diameter=4, height=2.5, base=[M + hx, M + hy, -0.5], operation="new", body_name=f"Bore{n}")
    pins += [f"Pin{n}", f"Bore{n}"]
add("solid.combine", target="Cell", tools=pins, operation="join")
add("solid.pattern.rectangular", bodies=["Cell"], dir1=[1, 0, 0], count1=NX, spacing1=P, dir2=[0, 1, 0], count2=NY, spacing2=P)
add("solid.combine", target="Bin", tools=["Cell"] + [f"Cell ({k})" for k in range(2, NX * NY + 1)], operation="cut")
add("component.create", name="Tab", parent="root")
add("solid.box", length=C - 1, width=2, height=30, corner=[L + 30, 0, 0], operation="new", body_name="Tab")
add("component.create", name="Cover", parent="root")
add("solid.box", length=L, width=W, height=3, corner=[0, W + 30, 0], operation="new", body_name="Cover")
add("solid.box", length=L - 7.4, width=W - 7.4, height=2, corner=[3.7, W + 33.7, 3], operation="join")
add("component.activate", component="root")
json.dump({"commands": cmds}, open(sys.argv[1], "w"), indent=1)

Expected

  • Before OK, the dialog says both parts are grounded, so the joint moves
    neither. It offers to unground one of them.
  • After OK, Messages says the same as an error.
  • joint.create gives the real reason in conflicts, and under warnings too.

Actual

On upstream/main 871014f:

  • The dialog shows no note. The preview moves nothing.
  • After OK, the joint is kept, nothing moves, and Messages is empty.
  • joint.create replies with fixed: [0, 2, 46] (the design's base, Bin:1,
    Cover:1), no warnings, and:
"conflicts": [{"joint": 49, "name": "Cover seat",
  "why": "off by 187.6832 mm and 180.000° from the placement the other joints give"}]

Mechanism

  1. build() puts the design's base and every grounded part into the fixed set
    (crates/doc/src/joints.rs:2041, :2043).
  2. Both sides of the new joint are already placed. The joint closes a loop with
    nothing on its path to move.
  3. The loop-closure check writes its generic text
    (crates/doc/src/joints.rs:1960). It doesn't check whether both sides are
    fixed.
  4. add_joint (crates/engine/src/cmd/joints.rs:732) has no check for 2 fixed
    sides. check_sides (:694) refuses the same part twice, nothing else.
    warnings (:752) covers values clamped to limits, nothing else.
  5. The UI never reads conflicts from a create reply. These places read pick
    errors and stopped joint.drive replies, nothing else:
    • joint_problem (crates/ui-egui/src/dialogs_assembly.rs:1422)
    • world_preview (:1664)
    • both OK paths (crates/ui-egui/src/dialogs.rs:625, :4898)

Joining a body outside every component to a grounded part shows the same gap.
The design's base is fixed in every solve. That joint moves neither side either.

Activity

  1. added
    area:doc
    needs-triage
    in progress
    on Nov 7, 2026
  2. github-actions commented on Nov 7, 2026

    @github-actions
    Contributor

    Claimed by @kaievns through #12868. The claim lapses after 14 days without pushes.

  3. removed
    in progress
    on Nov 16, 2026
  4. github-actions commented on Nov 16, 2026

    @github-actions
    Contributor

    No draft PR showed up within 72 h, so this one is free again. Anyone can /claim it.

  5. added
    in progress
    on Nov 16, 2026
  6. github-actions commented on Nov 16, 2026

    @github-actions
    Contributor

    Claimed by @shadaytree through #18187. The claim lapses after 14 days without pushes.

  7. added a commit that references this issue on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:docin progressneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions