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 rawprinter_variantstring of every printer preset whoseprinter_modelmatches, into astd::set<std::string>. No numeric normalization happens, so"0.10"and"0.1"are two different keys.Platerthen fills the combo (src/slic3r/GUI/Plater.cpp:4101-4118): it computesnozzle_dia = get_diameter_string(nozzle_diameter->values[i])(get_diameter_stringatsrc/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_variantat line 4104).- Consequence matches the report exactly: a profile whose variant string reads
0.10yields both a0.10mmentry (backed by a real preset → works) and an extra0.1mmentry created from the formattednozzle_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
- Drop two user printer presets for the same
printer_modelinto a test config dir: one withprinter_variant = 0.10/nozzle_diameter = 0.1, one with the stock0.4variant. - Launch under Xvfb, select the
0.10printer, 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
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
Log
- vast-tw took it: reproducevast-tw · 17 min ago
- Worker restarting; back in the queuevast-tw · 18 min ago
- vast-tw took it: reproducevast-tw · 1 h ago
- Worker restarting; back in the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- vast-tw restarted; returned to the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- triage: triagedvast-tw · 1 h ago
- vast-tw took it: triagevast-tw · 1 h ago
- Collected from GitHubpanel · 3 h ago