snapmaker-studio icon indicating copy to clipboard operation
snapmaker-studio copied to clipboard

repair --mode u1 breaks Orca 2.5 multi-variant (Standard/High Flow) U1 projects; doctor flags them as inconsistent

Open MGEB-droid opened this issue 1 week ago • 0 comments

Version: snapmaker-studio v1.7.0 (Linux), slicer: OrcaSlicer 2.5.2 (official AppImage, CLI --slice 0)

Input: a 3MF saved by Orca 2.5 for the Snapmaker U1 with 4 filaments, using both nozzle variants (extruder_variant_list = "Direct Drive Standard,Direct Drive High Flow" per toolhead; some heads set to High Flow). In this format Orca stores per-filament arrays with 8 entries (4 filaments × 2 variants, see filament_extruder_variant) and a flush_volumes_matrix with 64 entries.

1. repair --mode u1 produces a project Orca 2.5.2 refuses to slice

conform_filament_arrays() (snapstudio_core/filaments.py) treats the 64-entry matrix as an 8×8 square and cuts it to 4×4 = 16. Orca 2.5.2 then aborts:

Flush volumes matrix do not match to the correct size!
run found error, return -100, exit...

The CLI exits with rc 0 but writes no G-code (result.json: return_code -100), so this is easy to miss. The original 3MF slices fine. Copying the original 64-entry matrix back into the repaired copy makes it slice again, which isolates the matrix as the cause. validate and doctor both report the broken copy as OK/READY.

2. The repaired copy loses the High-Flow variant values

Truncating the 8-entry arrays to 4 keeps the first 4 entries (filament 1 std, filament 1 HF, filament 2 std, …), not the variant each toolhead actually uses. G-code from the original vs. the repaired copy (with the matrix restored):

key original repaired
filament_max_volumetric_speed 15,40,18,40 15,22,16,20
nozzle_temperature 220,220,220,225 220,215,220,220
pressure_advance 0.02,0.024,0.023,0.024 0.02,0.02,0.02,0.02

The repaired copy also turns on SET_PRINT_AUTO_BED_LEVELING ENABLE=1 and SET_TIME_LAPSE_CAMERA ENABLE=1, which the original did not have. fidelity reports neither change.

3. doctor false positive on the same files

_filament_inconsistencies() (doctor.py) flags every per-filament key ("length 8 != filament count 4", "flush_volumes_matrix length 64 != 16"). The verdict is REPAIRABLE and it recommends a U1 profile copy, which is exactly what triggers 1 and 2.

Expected

  • Recognise the multi-variant layout (per-filament arrays = filaments × variants, as in filament_extruder_variant; flush matrix = filaments² per toolhead) and leave it alone. Or, if arrays must be resized, select entries per variant instead of truncating.
  • doctor should not report this layout as inconsistent.
  • Ideally validate should check the flush-matrix size the way Orca 2.5 does, so a copy that won't slice isn't reported as OK.

I can provide the 3MF privately if that helps.

MGEB-droid avatar Nov 23 '26 12:11 MGEB-droid