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 / #15675

#15675New

[Bug] Physical printer "Browse" button fills web port into print_host, breaking Creality K2/CFS multi-color sync

Agent answer

No agent has taken this issue yet.

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.4.2 (Flatpak, verified against git main c21e484)

Regression compared to a previous version

Not sure

Operating System (OS)

Linux

OS Version

CachyOS Linux (Kernel 7.2, Arch-based) / Flatpak

Additional system information

Framework Laptop, AMD Ryzen AI 7 350 w/ Radeon 860M, 32GB RAM

Printer

Creality K2 Plus (with CFS multi-color unit)

How to reproduce

  1. Open the Physical Printer settings (or Edit Preset -> Network) for a Creality K2 Plus (or K-series printer with CFS) that has Moonraker/Mainsail running on port 4408.
  2. Click the "Browse..." button to discover the printer on the local network via mDNS/Bonjour.
  3. Select the discovered printer. Notice that OrcaSlicer automatically fills http://<IP>:4408 into the "Hostname, IP or URL" (print_host) field, leaving "Device UI" (print_host_webui) blank.
  4. Click OK / Save, and return to the main Plater window.
  5. Attempt to sync CFS spool information, or check multi-color telemetry.

Actual results

  • The Device tab works (Mainsail loads in the embedded browser because it points to port 4408).
  • CFS Spool Sync completely fails.

If the user manually removes the :4408 port from "Hostname, IP or URL":

  • CFS Spool Sync works immediately (all 4 CFS spools populate).
  • But the Device tab now breaks (it tries to load port 80, which returns 404 on Creality OS).

Expected results

Clicking "Browse..." to discover the printer should not break CFS multi-color synchronization:

  1. When selecting a printer with a web port, OrcaSlicer should either separate the web UI port into "Device UI" (print_host_webui) while keeping print_host clean, OR
  2. The CrealityPrint background agent should ignore custom web ports in print_host and query Creality's native REST API on port 80 for model detection.

Project file & Debug log uploads

OrcaSlicer_logs.zip

Checklist of files to include

  • [ ] Log file
  • [ ] Project file

Anything else?

### Technical Root Cause & Source Code Analysis:                                                                      
                                                                                                                      
1. **Auto-Fill Behavior in `PhysicalPrinterDialog.cpp` (lines 201–205):**                                             
   When discovered via Bonjour, `dialog.get_selected()` returns `reply.full_address` (which includes `:4408`). The    

dialog sets:
```cpp
m_optgroup->set_value("print_host", dialog.get_selected(), true);

This dumps the full address with the port into print_host and leaves print_host_webui ("Device UI") empty.

  1. API Query Failure in CrealityPrint.cpp (lines 86–109):
    When CrealityPrint::test() runs, it calls make_url("info"), which appends /info to m_host:
    GET http://:4408/info
    Port 4408 is Nginx/Mainsail, which returns Mainsail's SPA index.html.
    json::parse(body) throws a parse exception:
    Failed to parse /info response: syntax error while parsing value - invalid literal; last read: '<'
    m_model remains empty, causing supports_multi_color_print() to return false.
  2. CFS Sync Abort in CrealityPrintAgent.cpp (line 306):
    Because supports_multi_color_print() is false, OrcaSlicer aborts CFS querying and falls back to base Moonraker endpoints
    (Happy Hare MMU), which return 404.

Workaround:

Manually set:

• Hostname, IP or URL (print_host): http:// (without port)
• Device UI (print_host_webui): http://:4408

Suggested Upstream Fix:

• In PhysicalPrinterDialog.cpp, when a Bonjour selection contains a port and the printer is a Creality K-series machine,
populate print_host with the base IP and print_host_webui with the full IP:port.
• In CrealityPrint::make_url(), strip any user-specified port when querying Creality's native endpoints (/info), similar
to how ws_connect already strips ports with Http::get_host_from_url().

Author
bubbastumble
Comments
0
Created
2026-09-13
bug

Log

  1. Collected from GitHub
    panel · 3 h ago