"No sparse layers": tool change runs at prime tower height, below the print → U1 head crashes into printed parts
Is there an existing issue for this problem?
- [x] I have searched the existing issues
Snapmaker_Orca Version
2.4.0 (also checked against main @ c0e6987, 30 Sep 2026)
Operating System (OS)
macOS
OS Version
macOS (G-code generation issue, OS-independent)
Additional system information
N/A: this is a G-code generation issue, not hardware or performance related.
Printer
Snapmaker U1 (0.4 nozzle), stock printer profile
How to reproduce
- Multi-material plate where tool changes don't happen on every layer (e.g. a PETG body with a PLA support interface on only some layers).
- Prime tower on, No sparse layers = on.
- Slice and print. Once the object is taller than the compacted tower, the next tool change crashes the head into the print.
Actual results
The slicer drops the nozzle to the compacted tower height before change_filament_gcode runs, and only raises it back to the object layer height after the tool change. The stock U1 change-filament gcode lifts only relative 1.5 mm (G91 / G1 Z1.5 / G90), so docking, parking and pre-extrude moves run several mm below the top of the print, and the head hits printed parts.
Excerpt from a real slice (layer 80, PLA → PETG; object top at 16.45 mm):
G1 X13.25 Y167.75 Z16.45 ; travel to tower at object height
G1 Z16.05
G1 Z9.05 F30000 ; drop to compacted tower top (7.4 mm below the print)
... CP TOOLCHANGE UNLOAD on tower ...
G91
G1 Z1.5 ; change_filament_gcode: relative lift -> Z 10.55
G90
M109 S245 T13
M400
T13 ; tool swap at Z 10.55, print is 16.45 mm tall
SM_PRINT_PREEXTRUDE_FILAMENT INDEX=13
G1 X14.871 Y171.500
G1 Z9.05
... wipe on tower ...
G1 Z16.05 ; only now back up to the object layer
On this test plate the tower ended up as much as 7 mm below the object from layer ~73, and the head hit the print during a tool change.
Root cause (source, src/libslic3r/GCode.cpp):
WipeTowerIntegration::append_tcr()callstravel_to_z(z, "Travel down to the last wipe tower layer.")before processingchange_filament_gcode, andtravel_to_z(current_z, "Travel back up to the topmost object layer.")only at the end.append_tcr2()does the same throughwill_go_downbefore the tool change.
Expected results
Before any tool-change movement, Z should be restored to at least the top of the object (or max_layer_z + clearance). The nozzle should only drop to the tower height once it is over the tower, and come back up before leaving it.
Project file & Debug log uploads
G-code excerpt included above; project file and full G-code available on request.
Checklist of files to include
- [ ] Log file
- [ ] Project file
Anything else?
Upstream status
- The same bug was reported upstream on a U1: OrcaSlicer/OrcaSlicer#11703 (open).
- Upstream partly guarded it in OrcaSlicer/OrcaSlicer#15485 (deferred descent in
append_tcrtype 1). OrcaSlicer/OrcaSlicer#15441 (open) restores layer Z beforechange_filament_gcodein the remaining paths (is_finish_first,append_tcr2). Neither change is in Snapmaker main as of c0e6987 (defer_compacted_descend/restore_layer_z_before_toolchangeare not present). - Related but different: #859 / #958 cover the by-object tool-change lift; by-layer keeps the relative 1.5 mm lift, so this case is still open.
Suggested fix
- Port OrcaSlicer#15485 and #15441, or
- In the U1 change-filament gcode, lift absolutely for the by-layer case too, when the current Z is below
max_layer_z: e.g.G1 Z{max(position[2] + 1.5, max_layer_z + 2)}, capped at the max print height as in #958.
Workaround for users
Turn off No sparse layers, or change the U1 change-filament gcode to an absolute lift: G90 / G1 Z{max_layer_z + 2} F1800.
Thanks! We will merge it in our November version
I re-sliced a small reproduction of this with the official 2.4.2-alpha (Snapmaker_Orca_Mac_universal_V2.4.2-alpha.dmg, command line, macOS). The result is the same as on 2.4.1, so the fix mentioned above is not in the alpha yet.
Project: one 40 x 40 x 38 mm block that changes filament at Z38, prime tower on, "No sparse layers" on.
| tower Z at the tool change of layer 189 | part height at that moment | |
|---|---|---|
| 2.4.1 | G1 Z.2 |
Z37.85 |
| 2.4.2-alpha | G1 Z.2 |
Z37.85 |
The new head is sent 37.65 mm below the top of the part, and the slice log has no warning about it. With the regular tower the same project keeps the tower level with the part.
Files, if they help whoever tests the fix: project, 2.4.1 output, 2.4.2-alpha output. python3 tools/tower_below_print.py file.gcode from the same repo exits 1 on both and 0 on the same project sliced with the setting off (checked on the alpha too), so it can confirm the fix on a sliced file without a printer.
Limits: my own test block, not the reporter's plate; macOS command line only; nothing was printed. A user hit this on a real U1 in forum topic 44225 (head parked beside the part at bed height, then a collision on resume).