Orca pipeline
12 results today 24 agents on 1 worker Admin

Local AI agents triage open OrcaSlicer bug reports, try to reproduce them and draft fixes; a person reviews every result before anything goes upstream. An independent experiment, read only.

Queue / #18101

#18101Reproducing · with vast-tw

Incorrectly formatted printer nozzle profile names cause nozzle list duplicates

Agent answer

Triage: #18101 — duplicate/non-functional nozzle entries in the nozzle dropdown

Reproducible here? Yes (Linux, Xvfb or a unit test). This is pure profile/string logic — no printer, network, cloud, or OS-specific behavior involved. The reporter is on Windows, but the code path is platform independent.

Where it comes from

  • PresetCollection::diameters_of_selected_printer() (src/libslic3r/Preset.cpp:4101-4110) builds the nozzle list by inserting the raw printer_variant string of every printer preset whose printer_model matches, into a std::set<std::string>. No numeric normalization happens, so "0.10" and "0.1" are two different keys.
  • Plater then fills the combo (src/slic3r/GUI/Plater.cpp:4101-4118): it computes nozzle_dia = get_diameter_string(nozzle_diameter->values[i]) (get_diameter_string at src/slic3r/GUI/Plater.cpp:388, i.e. the trailing-zeros-trimmed "0.1"), and at line 4112 appends it as a "custom option" whenever the string is not literally present in the variant list. Selection/matching is also plain string comparison (FindString, diameters[i] == selected_variant, keep_variant at line 4104).
  • Consequence matches the report exactly: a profile whose variant string reads 0.10 yields both a 0.10mm entry (backed by a real preset → works) and an extra 0.1mm entry created from the formatted nozzle_diameter (backed by no preset → selecting it appears to do nothing). The second reproduction path ("name a copy of a profile with a changed nozzle size") hits the same mismatch, since the name-derived variant and the numeric value are formatted differently.

How to verify on this machine

  1. Drop two user printer presets for the same printer_model into a test config dir: one with printer_variant = 0.10 / nozzle_diameter = 0.1, one with the stock 0.4 variant.
  2. Launch under Xvfb, select the 0.10 printer, open the nozzle dropdown and check for two entries ("0.10mm" + "0.1mm") and that the second is a no-op; or unit-test the list-building/matching logic with those two inputs.

Suggested fix direction (for the owner)

Normalize nozzle identity to a numeric value (or a canonical trimmed string) both when collecting variants in diameters_of_selected_printer() and when matching/selecting in Plater.cpp, so "0.10", "0.1" and nozzle_diameter = 0.1 collapse to a single list item that maps to the owning preset. Named variants ("0.4HS", "0.4 High Flow") must keep working — the existing keep_variant logic at Plater.cpp:4104 already compares the numeric prefix, so the same "numeric prefix, preserve suffix" normalization should be used for dedup.

Cause

src/libslic3r/Preset.cpp:4101-4110 (PresetCollection::diameters_of_selected_printer() collects unnormalized printer_variant strings into a std::set<std::string>) combined with src/slic3r/GUI/Plater.cpp:4101-4118, which appends get_diameter_string(nozzle_diameter) (Plater.cpp:388) as an extra "custom" item when the stringified value is not found in that list — so "0.10" (variant/name-derived) and "0.1" (formatted value) coexist, and the entry that matches no preset cannot be selected.

Triage summary

The sidebar nozzle-size dropdown lists one entry per printer_variant string of presets sharing the same printer_model, plus a fallback entry formatted from the preset's actual nozzle_diameter; because both are compared as raw strings, a variant written as "0.10" and the formatted diameter "0.1" produce two list items, and the one with no matching preset does nothing when picked.

Issue text on GitHub

Is this issue reproducible in the latest nightly build?

  • [x] I have checked the latest nightly build and the issue is still reproducible

Is there an existing issue for this problem?

  • [x] I have searched the existing issues

OrcaSlicer Version

2.5.3

Regression compared to a previous version

Almost certainly since 2.3 atleast

Operating System (OS)

Windows

OS Version

10

Additional system information

No response

Printer

Flashforge Adventurer 5M

How to reproduce

Add default FF AD5M profile.
Add a nonstandard nozzle size such as 0.10mm nozzle.
Name it "Flashforge Adventurer 5M 0.10mm nozzle" based on the 0.40mm profile with 0.1mm nozzle size specified.
Dropdown now has a 0.10mm and non-functioning 0.1mm that only appears when "Flashforge Adventurer 5M 0.10mm nozzle" in addition to the 0.10mm that correctly selects it.

Also can occur by naming a copy of a profile with a changed nozzle size.

Actual results

image

Expected results

A single entry that selects the nozzle size. And none that select nothing.

Project file & Debug log uploads

debug_Wed_Dec_02_00_38_29_33136.log

Checklist of files to include

  • [x] Log file
  • [ ] Project file

Anything else?

Very odd little buggo.

Area
gui
Platform
all
Author
roguethunderbird
Comments
1
Created
2026-12-02
bug

Log

  1. vast-tw took it: reproduce
    vast-tw · 17 min ago
  2. Worker restarting; back in the queue
    vast-tw · 18 min ago
  3. vast-tw took it: reproduce
    vast-tw · 1 h ago
  4. Worker restarting; back in the queue
    vast-tw · 1 h ago
  5. vast-tw took it: reproduce
    vast-tw · 1 h ago
  6. vast-tw restarted; returned to the queue
    vast-tw · 1 h ago
  7. vast-tw took it: reproduce
    vast-tw · 1 h ago
  8. triage: triaged
    vast-tw · 1 h ago
  9. vast-tw took it: triage
    vast-tw · 1 h ago
  10. Collected from GitHub
    panel · 3 h ago
vast-tw is reproducing this issue, since 17 min ago.