Skip to content

Union of flush stacked layers hangs or gives "Union: no result", depending on Join/Combine order #3396

Done

Description

@luiscamaral

Expected behavior

Extrude the sketch profile selections on the body using join operation (union)

Actual behavior

"boolean Union: the operation failed: no result"

A failed preview may display the last valid geometry; that geometry is not evidence that the failed operation succeeded.

Reproduction

Describe the steps or a small public-safe example.

Settings and selection

    [
      [
        "solid.extrude",
        {
          "direction": "positive",
          "distance": "-2.4",
          "from": [
            34.836145403497085,
            11.788154676868913,
            -9.999999999972843
          ],
          "operation": "join",
          "profiles": [
            0,
            52,
            8,
            6,
            49,
            23,
            11,
            47,
            27,
            16,
            45,
            32,
            19,
            35,
            33,
            18,
            37,
            29,
            14,
            39,
            25,
            9,
            41,
            22,
            2,
            43,
            1,
            4,
            3,
            21,
            10,
            26,
            13,
            30,
            17,
            34,
            20,
            31,
            15,
            28,
            12,
            24,
            5,
            7
          ],
          "sketch": 2
        }
      ]
    ]

Selected items (including occurrence paths):

    []

Environment

"SolidCraft 0.16.2 (5de48e9, built 2026-10-19)\nOS: macos aarch64\nRenderer: GPU, Apple M2 Max (Metal, IntegratedGpu)\nWindow: system title bar\nDesign: MasonJar_BreathingCap (7 features, 1 bodies)"

Revision: 7

Camera:     Camera {
        target: Vec3 {
            x: -0.20134228187937397,
            y: 0.20134228187900943,
            z: -4.597315436225504,
        },
        yaw: -1.1867731633974465,
        pitch: 0.37054220867038795,
        roll: 0.0,
        distance: 90.08861604328382,
        fov: 0.0,
        up: Z,
    }

Visual context

Attach the reviewed screenshot or a short example showing the problem.

Window: 2056×1290 logical points; 2.00 physical pixels/point

Image

Activity

  1. added
    area:kernel
    bug
    needs-triage
    on Oct 20, 2026
  2. luiscamaral commented on Oct 20, 2026

    @luiscamaral
    ContributorAuthor

    Reproduction, measurements and a workaround

    The "Extrude › Join" in this issue never finishes in the desktop app (the dialog showed Computing… 617 s
    before I cancelled, and the same command restarted after a relaunch did the same). When it does end,
    the result is boolean Union: the operation failed: no result. #3403 and #3411 are the same failure
    on the same design. They are the two other ways I tried to get this layer in.

    Extrude dialog: Computing… 617 s

    The part

    A ventilated jar cap built as a stack of flush Z-extrusions, each one joined onto the face of
    the one before. Two sketches on XY: concentric circles r = 28.3 / 29.5 / 35 / 37, and a grid of
    parallel bars inside r = 37 (44 regions, the outer ring cut into segments by the bars).

    Feature Profiles z (mm) Join path taken Boolean (ms)
    Extrude1 full disc r 37 (all 4 regions of Sketch1) 0 → −1.2 new body 0
    Extrude2 grid (Sketch2) −1.2 → −3.6 exact / no fallback events 72
    Extrude3 outer wall r 35–37 −3.6 → −5.6 coplanar_separation 659
    Extrude4 grid −5.6 → −8.0 exact / no fallback events 1 114
    Extrude5 outer wall r 35–37 −8.0 → −10.0 coplanar_separation 1 206
    #3396 grid, 44 profiles, −2.4 from z −10 −10 → −12.4 never finishes —

    After Extrude5, Body1 is one closed shell with 346 kernel faces (176 cylindrical), 794 edges and
    volume 19 428.63 mm³ (the wall layer measures 904.97 mm³ against π(37² − 35²)·2 = 904.78 mm³). Each grid layer touches the layers above and below it only through flush,
    coplanar faces, and the bars cut the r 33–37 band into many small cylindrical faces.

    Steps (headless, files in the gist)

    Everything is in the gist https://gist.github.com/luiscamaral/38b564cc7d67c9f0d3316bd08e0ddfbe
    (one download: masonjar-flush-join-no-result.zip):

    File What it is
    MasonJar_BreathingCap-7-features.solidcraft the design right before the failing extrude
    repro-3396-join.json steps 1–7 rebuild that design; step 8 is the exact solid.extrude from this issue
    workaround-subbody-then-combine.json the same extrude made to land on a small body, then one Combine
    variant-new-body-then-combine.json, variant-two-half-joins.json two other tries that also don't finish
    timings-*.json --timings --profile output
    stack-excerpt.txt where the app's apply thread spends its time (macOS sample)
    solidcraft-cli run repro-3396-join.json --timings --profile          # step 8 never returns
    solidcraft-cli run workaround-subbody-then-combine.json --timings    # ~4 s, one valid body

    Results (release solidcraft-cli 0.16.2, macOS arm64, M2 Max)

    Script Result
    steps 1–7 only 3.2 s total, OK
    repro-3396-join.json (Join onto Body1) CLI: still running when stopped at 180 s; an earlier run of the same step with the extent starting from a nearby point at z −10 hit 600 s. App: two runs (before and after a relaunch), 617 s and 6+ min, both stopped by hand
    variant-new-body-then-combine.json (tool as New Body, then solid.combine into Body1) timed out at 240 s
    variant-two-half-joins.json (the 44 profiles as two Joins of 22) timed out at 240 s
    the tool alone as New Body 46 ms (no boolean)
    workaround-subbody-then-combine.json: Extrude5 as New Body (Body2), the same Join onto Body2, then Combine Body1 + Body2 join 133 ms, combine 1.76 s, total 4.3 s

    The workaround result is checked: one body, one shell, z −12.4 → 0, no errors or warnings,
    volume 26 673.514 mm³ against 26 673.481 mm³ expected (Body1 + the tool measured on its own as a
    New Body), a difference of 0.033 mm³ (0.00013 %).

    So the same geometry joins fine when the target is small. It only fails when the target is the full
    346-face stack.

    Where the time goes

    stack-excerpt.txt has two samples of the background apply thread (ui_egui::dialogs::begin_applying
    → Session::preview → Model::evaluate → kernel::ops::boolean_*). It is not deadlocked. It goes from
    one fallback in boolean_whole_with_refinement to the next (sample 1 was in a nested
    boolean_untimed call, sample 2 at a different retry site). Each fallback is a full
    truck_boolean, and nearly all of its time goes to create_loops_stores → intersection_curves → truck_meshalgo::analyzers::collision (sorting triangle-box end points), with 12 rayon workers
    busy in shell_tessellation. The process held about 260 % CPU and 1.1 GB (1.6 GB peak).

    Two related app behaviours

    1. Cancel doesn't stop the work. dialogs.rs drops the result on Cancel, but "its worker runs on to
      its end". With a boolean like this, that is never, so the CPU stays busy until the app is quit.
      A cancellation flag or a time budget on the retry chain would let Cancel actually free the machine.
    2. The draft fix in Join extrude: a column standing on the target's faces joins as drawn (#3665) #3666 wouldn't reach this case. It retries a failed Join with the tool as drawn,
      but here the first attempt doesn't fail in any practical time, so the retry never starts.

    Possibly the same root cause

    Environment: SolidCraft 0.16.2 (5de48e9), macOS 26.7.1 (25G241) arm64, Apple M2 Max, Metal.

  3. luiscamaral commented on Oct 22, 2026

    @luiscamaral
    ContributorAuthor

    Follow-up: still happens on 0.19.0, and it depends on the Combine order

    I re-tested on SolidCraft 0.19.0 (latest; official solidcraft-cli macOS universal build, macOS 26.7.1 arm64, M2 Max). It is not fixed.
    Since my first comment I rebuilt the cap with each layer as a separate New Body, and then join the layers with Combine.
    Current design: MasonJar_BreathingCap_v2.solidcraft, 6 bodies stacked along −Z:
    Body1 z 0 → −3.6, Body2 (wall r 35–37) −3.6 → −5.6, Body3 (grid) −5.6 → −8, Body4 −8 → −10.2,
    Body5 (ring r 28.3–29.5) and Body6 (ring r 35–37) both −8 → −20. Neighbouring layers meet through flush faces; the one exception is Body6, which overlaps Body4 by 995.254 mm³.

    All rows use solidcraft-cli run <script> --in MasonJar_BreathingCap_v2.solidcraft --timings. "A ← B" means Combine › Join with target A and tool B.

    Script Combines Result
    combine_v2.json 1 ← 2, 3, 4, 5, 6 in one Combine (the same kind of Combine as #3411) still running when stopped at 600 s (the 7-body version, MasonJar_BreathingCap-7-bodies.solidcraft with combine_v1.json: boolean Union: the operation failed: no result after 480 s)
    chain_1.json, pair_Body2_Body3.json, pair_Body3_Body4.json, pair_Body4_Body5.json, pair_Body4_Body6.json, pair_Body5_Body6.json each adjacent pair on its own all OK, each < 1 s (combine step: 552 ms for 1 ← 2, 61–182 ms for the others)
    chain_2.json 1 ← 2, then 1 ← 3 still running at 240 s (the first step alone takes 0.55 s); in the desktop app, the same Combine 1 ← 3 after 1 ← 2 shows Computing… at 611 s and ends with boolean Union: the operation failed: no result 766 s after OK
    order_bottomup.json 5 ← 6, 4 ← 5, 3 ← 4, 2 ← 3, 1 ← 2 still running at 300 s
    order_tree.json 2 ← 3, 4 ← 5, 4 ← 6, 2 ← 4, 1 ← 2 OK in 5.4 s: 1 body, 1 shell, 30 601.568 mm³ vs 30 601.614 mm³ expected

    Expected volume = the six bodies (31 596.869 mm³) minus the Body4/Body6 overlap (995.254 mm³, measured with cut_6_4.json), a difference of 0.046 mm³.
    The 7-body version also works in tree order: v1_tree.json, 5.2 s, 1 body, 1 shell.
    Full table: followup-0.19.0-results.md.

    0.19.0: Combine Body1 ← Body3 after Body1 ← Body2, still computing at 611 s

    Desktop app 0.19.0: Combine Body1 ← Body3 (Body1 ← Body2 already done, 5 bodies left), still computing at 611 s. It ends with "no result" at 766 s (screenshot).

    Workaround on v2 (Combine › Join, Target ← Tool, in this order)

    1. Body2 ← Body3 (105 ms)
    2. Body4 ← Body5 (55 ms)
    3. Body4 ← Body6 (141 ms)
    4. Body2 ← Body4 (1.62 s)
    5. Body1 ← Body2 (2.13 s)

    0.19.0: after the five tree-order Combines, one body

    Desktop app 0.19.0: after the five tree-order Combines, the Browser shows one body (30 601.568 mm³).

    Side finding: Intersect of Body4 with Body6 (int_Body4_Body6.json) fails with boolean Intersect: the operation failed: no result, while the Cut of the same pair works.

    Per CONTRIBUTING ("report slow cases with a file under the kernel-perf label"), could a maintainer add kernel-perf here? The case is also proposed for solidcore's regression suite: tangency-labs/solidcore#501 (closed-form volumes; it defers until cylinder creation is ported).

  4. changed the title [-]EXTRUDE: operation failed[/-] [+]Union of flush stacked layers hangs or gives "Union: no result", depending on Join/Combine order[/+] on Oct 22, 2026
  5. added a commit that references this issue on Oct 22, 2026
  6. CFreeman918 commented on Oct 22, 2026

    @CFreeman918

    I'm having the same issue.

    Actual behavior

    Failed to join 4 cylinders.

    Reproduction

    Not provided

    Expected behavior

    Not provided

    Operation context

    "boolean Union: the operation failed: no result; the operation failed: coincident faces were left in place: pushing them apart would change the result; the operation failed: not supported yet: the exact fallback for where the bodies meet (faces that touch, or cross at a shallow angle) takes planar faces only, and the target has 16 curved faces (cylinder) and the tool has 4 curved faces (cylinder); nudged: the operation failed: boolean Union: the operation failed: no result; the operation failed: not supported yet: the exact fallback for where the bodies meet (faces that touch, or cross at a shallow angle) takes planar faces only, and the target has 16 curved faces (cylinder) and the tool has 4 curved faces (cylinder); the operation failed: coincident faces were left in place: pushing them apart would change the result"

    A failed preview may display the last valid geometry; that geometry is not evidence that the failed operation succeeded.

    Settings and selection

    [
      [
        "solid.combine",
        {
          "keep_tools": false,
          "operation": "join",
          "target": "Body6",
          "tools": [
            "Body7",
            "Body5",
            "Body4",
            "Body3"
          ]
        }
      ]
    ]
    

    Selected items (including occurrence paths):
    []

    Environment

    "SolidCraft 0.19.0 (33fdcdb, built 2026-10-22)\nOS: windows x86_64\nRenderer: GPU, NVIDIA GeForce RTX 3060 Laptop GPU (Dx12, DiscreteGpu)\nWindow: custom title bar\nDesign: Untitled (17 features, 7 bodies)"
    

    Revision: 216
    Camera: Camera {
    target: Vec3 {
    x: -0.1749631868647441,
    y: -2.1957368473977574,
    z: 21.65177499879391,
    },
    yaw: 0.2773310546874999,
    pitch: 0.13602957874802152,
    roll: 0.0,
    distance: 202.47881881921435,
    fov: 0.0,
    up: Z,
    }

    Visual context

    Attach the reviewed screenshot or a short example showing the problem.

    Window: 2560×1392 logical points; 1.50 physical pixels/point

    Image
  7. EduardoOliveira commented on Oct 22, 2026

    @EduardoOliveira

    Still reproduces on 0.19.0 (Linux x86_64, release tarball, Bazzite/Fedora 44). I drove the desktop app through solidcraft-cli mcp --connect (solidcraft --control 7878).

    The part is a hub-like printed part rebuilt from STEP cross-sections. It has 5 features stacked along X: lofts through 4 to 9 sketch sections (lines, three-point arcs, fit-point splines, some with a hex hole) and one plain extrude. Each one builds fine as its own body. Then I tried solid.combine (join), with a 20 s timeout per call and an app restart after each hang:

    Pair (each one a separate body) Contact Result
    loft f0 + extrude f4 none (apart) ok, 0.16 s
    loft f1 + extrude f4 none (apart) ok, 0.17 s
    loft f1 + loft f2 flush ok, 2.1 s
    loft f0 + loft f1 flush, both with the same hex hole hang
    loft f2 + loft f3 flush hang
    loft f3 + extrude f4 flush hang

    The + in the table means merging the two features with solid.combine.

    Two more data points:

    • Leaving out the holes doesn't help. Rebuilt from outer loops only, the one solid.combine of all 5 features still hangs.
    • Overlapping instead of flush doesn't help either. I started each feature 0.05 mm inside the one below, so no faces are coplanar, and the combine of all 5 still hung. So for lofted or spline bodies it doesn't look limited to flush or coplanar contact.

    The earlier version, plain extrude slabs joined one by one with operation: join, behaves the same. Seven thin slabs (0.43 mm each) join fine; the 8th, whose outline has splines and arcs, hangs when joined onto the stack. That 8th slab joins fine onto any single slab.

    Every hang needs the app killed, since nothing can be cancelled (#1989). running shows the solid.combine or solid.extrude still running after several minutes.

  8. luiscamaral commented on Oct 23, 2026

    @luiscamaral
    ContributorAuthor

    /claim

  9. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    #3666 already covers this one.

  10. luiscamaral commented on Oct 23, 2026

    @luiscamaral
    ContributorAuthor

    Update: two kinds of "Union: no result", what helps, and the path to a fix

    Thanks @EduardoOliveira and @CFreeman918 for the extra reports. After testing my designs, #4313's public design and the kernel-smlib branch (SMLib kernel), I think these are two different failures:

    Kind A: it depends on the order Kind B: a single union fails
    Seen in this issue (#3396 / #3403 / #3411); #4313 on SMLib @EduardoOliveira's lofts and splines; #4313 on 0.19.0; probably @CFreeman918's cylinders ("coincident faces … curved faces (cylinder)")
    Each pair alone joins in < 1 s fails or hangs
    Joining into one growing body, one at a time or all at once hangs, or "no result" fails
    Neighbours-first tree order ✅ works can't help

    Theory (empirical). Joining everything into one growing body makes one operand large, with hundreds of split faces, and puts it against the next layer through flush or overlapping faces. On truck, each fallback (push apart, exact planar route, finer tolerances, shifted retries) then gets more expensive, until it hangs or returns "no result". SMLib fails fast on the same growing body instead (status 1006 on #4313). Joining neighbours first, as a balanced tree, keeps both operands small, and then both kernels succeed.

    Measured (macOS arm64) 0.19.0 join-order patch (truck) SMLib, given order SMLib, tree order
    my v2: one Combine of Body1 + Body2..6 hangs (> 300 s) ✅ 7.6 s, identical to the manual tree result (see #5197, #5198) ✅ synthetic version: 30 603.047 mm³ (closed form 30 603.048)
    my 7-body version: one Combine "no result" after 480 s ✅ 7.0 s — —
    #4313: 9 overlapping rings "no result" (even a single pair) ❌ (the pair itself fails) ❌ status 1006 ✅ 4.8 s, 33 386.78 mm³ (expected 33 386.9)

    What helps today (0.19.0)

    • Kind A:
      • Combine in tree order: build small groups first and join the top body last. For my v2: Body2 ← Body3, Body4 ← Body5, Body4 ← Body6, Body2 ← Body4, Body1 ← Body2.
      • Or model the part subtractively: one blank, then a prism cut per layer. MasonJar_BreathingCap_v3.solidcraft (script) rebuilds in ~0.6 s and is identical to the joined part (largest deviation 0.0002 mm).
    • Kind B: no workaround on truck that I've found. Overlapping instead of flush didn't help @EduardoOliveira either. SMLib already joins COMBINE: operation failed #4313's pair in 1.1 s.

    Towards a fix

    @EduardoOliveira, @CFreeman918: if you can share a design (zip the .solidcraft and drag the zip into a comment), I'll check whether single pairs fail (kind B). If they do, I'll turn it into a synthetic rig case, so it's tested on SMLib.

  11. CFreeman918 commented on Oct 27, 2026

    @CFreeman918

    Update: two kinds of "Union: no result", what helps, and the path to a fix

    Thanks @EduardoOliveira and @CFreeman918 for the extra reports. After testing my designs, #4313's public design and the kernel-smlib branch (SMLib kernel), I think these are two different failures:
    Kind A: it depends on the order Kind B: a single union fails
    Seen in this issue (#3396 / #3403 / #3411); #4313 on SMLib @EduardoOliveira's lofts and splines; #4313 on 0.19.0; probably @CFreeman918's cylinders ("coincident faces … curved faces (cylinder)")
    Each pair alone joins in < 1 s fails or hangs
    Joining into one growing body, one at a time or all at once hangs, or "no result" fails
    Neighbours-first tree order ✅ works can't help

    Theory (empirical). Joining everything into one growing body makes one operand large, with hundreds of split faces, and puts it against the next layer through flush or overlapping faces. On truck, each fallback (push apart, exact planar route, finer tolerances, shifted retries) then gets more expensive, until it hangs or returns "no result". SMLib fails fast on the same growing body instead (status 1006 on #4313). Joining neighbours first, as a balanced tree, keeps both operands small, and then both kernels succeed.
    Measured (macOS arm64) 0.19.0 join-order patch (truck) SMLib, given order SMLib, tree order
    my v2: one Combine of Body1 + Body2..6 hangs (> 300 s) ✅ 7.6 s, identical to the manual tree result (see #5197, #5198) ✅ synthetic version: 30 603.047 mm³ (closed form 30 603.048)
    my 7-body version: one Combine "no result" after 480 s ✅ 7.0 s — —
    #4313: 9 overlapping rings "no result" (even a single pair) ❌ (the pair itself fails) ❌ status 1006 ✅ 4.8 s, 33 386.78 mm³ (expected 33 386.9)

    What helps today (0.19.0)

    * **Kind A:**
      
      * Combine in tree order: build small groups first and join the top body last. For my v2: Body2 ← Body3, Body4 ← Body5, Body4 ← Body6, Body2 ← Body4, Body1 ← Body2.
      * Or model the part **subtractively**: one blank, then a prism cut per layer. [`MasonJar_BreathingCap_v3.solidcraft`](https://gist.githubusercontent.com/luiscamaral/38b564cc7d67c9f0d3316bd08e0ddfbe/raw/MasonJar_BreathingCap_v3.solidcraft) ([script](https://gist.githubusercontent.com/luiscamaral/38b564cc7d67c9f0d3316bd08e0ddfbe/raw/v3_script.json)) rebuilds in ~0.6 s and is identical to the joined part (largest deviation 0.0002 mm).
    
    * **Kind B:** no workaround on truck that I've found. Overlapping instead of flush didn't help [@EduardoOliveira](https://github.com/EduardoOliveira) either. SMLib already joins [COMBINE: operation failed #4313](https://github.com/tangency-labs/solidcraft/issues/4313)'s pair in 1.1 s.
    

    Towards a fix

    * **Join order.** A change in `crates/doc` (not `crates/kernel`): when several tools join one body, the tools that touch are unioned as a neighbours-first tree, the target last, falling back to the given order.
      
      * [Patch](https://gist.githubusercontent.com/luiscamaral/38b564cc7d67c9f0d3316bd08e0ddfbe/raw/join-order-fix-2bbbee4.patch). Oracle 83/83 unchanged; doc and engine tests pass (the three engine failures I see also fail on `main` on macOS).
      * [Screenshot](https://gist.githubusercontent.com/luiscamaral/38b564cc7d67c9f0d3316bd08e0ddfbe/raw/app-joinfix-one-combine.png): one Combine of all my v2 bodies in a build with it, 4.2 s.
      * It works with either kernel.
      * **Maintainers: should it go to `main`, to `kernel-smlib`, or both?** I'll open the PR where you prefer. Under the [Kernel work is paused while we evaluate a new geometry kernel #3992](https://github.com/tangency-labs/solidcraft/issues/3992) pause I'd default to `kernel-smlib`, together with a [COMBINE: operation failed #4313](https://github.com/tangency-labs/solidcraft/issues/4313)-style rig case.
    
    * **SMLib rig and issues.**
      
      * Rig cases for this report: [kernel-cases: flush-stacked layers joined one at a time, at once, and as extrudes (#3396, #3403, #3411) #5196](https://github.com/tangency-labs/solidcraft/pull/5196) (truck hangs on all three; SMLib passes the primitive-built two).
      * Defects found on SMLib with my extruded layers: [SMLib boolean: joining an annulus under a disc whose bottom rim is split by sketch chords fails SMLib's own check (Loop Orientation: bad orientation, zero area) solidcore#575](https://github.com/tangency-labs/solidcore/issues/575) (check refusal), [kernel-smlib: Join of flush layers refused with "portable B-rep: face 2 loop 1: loop encloses no (u, v) area" though both operands are valid #5197](https://github.com/tangency-labs/solidcraft/issues/5197) ("loop encloses no (u, v) area"), a second repro on [SMLib boolean: an island inside a void fails SMLib's own check (inner shell not inside its outer shell) solidcore#388](https://github.com/tangency-labs/solidcore/issues/388) (sealed-void union).
      * Also [kernel-smlib: a design saved on one kernel rebuilds differently on the other: an extrude "From" face stored as `F3:bottom#1` resolves to the annulus's other cap #5198](https://github.com/tangency-labs/solidcraft/issues/5198): a From-face name resolves to a different face on the other kernel, so a design saved on truck rebuilds with layers moved on SMLib.
    

    @EduardoOliveira, @CFreeman918: if you can share a design (zip the .solidcraft and drag the zip into a comment), I'll check whether single pairs fail (kind B). If they do, I'll turn it into a synthetic rig case, so it's tested on SMLib.

    Weight_Stand.zip

  12. dudedagger42 commented on Nov 29, 2026

    @dudedagger42
    Collaborator

    Checked on 0.52.0 (#24144): rebuilt the 7-feature stack from the report's steps and ran the reported Extrude > Join (44 profiles, -2.4 mm) onto it. It completes with no error in about 0.2 s (whole script 0.66 s), where it used to hang or return 'Union: no result'. Closing as fixed; if a different join order still fails for you, please file a new report with the design attached.

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:kernelbugneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions