* Trim Heavy Includes from GUI_App.hpp
* Include winternl.h in the Windows Troubleshoot Dialog Code
The Windows builds failed in TroubleshootDialog.cpp with unknown type name NTSTATUS.
When an Orca Cloud account is logged in, on_init_inner() ran fetch_plugins_from_cloud() synchronously, about 2 s of UI-thread time before presets loaded. The fetch now runs on a worker thread while presets load and the main window is created.
The "no longer available" and "unauthorized" plugin notifications are posted with CallAfter. If they arrive before post_init(), they are kept and shown from post_init(). Before this change they were never shown at startup, because plater() was still null.
The thread is joined on logout, so the fetch can't re-add the old account's metadata, and in OnExit(), CleanUp() and the macOS wxEVT_END_SESSION handler.
Update OpenCV from 4.6.0 to 4.14.0.
- Drop 0001-vs.patch. 4.14.0 already detects the VS 2022 and VS 2026 runtimes, so OpenCV now builds with no patches.
- Turn off three options that 4.14.0 enables by default: AVIF (it would link a system libavif), the new GIF decoder, and KleidiCV (downloaded at configure time on aarch64).
- Build OpenCV with -fno-delayed-template-parsing under clang-cl, so softfloat.cpp compiles for Windows ARM64.
- Point the Flatpak manifest at the 4.14.0 tarball.
Behavior change: the PNG reader rejects a few malformed files that 4.6 loaded.
The Moonraker printer agent's status stream returned at once for an https print host, so Orca got the printer's first status over HTTP and no live updates after it. The stream now connects over TLS for an https print host. Like the agent's HTTP requests, it does not verify the certificate, so a printer's self-signed one is accepted. It sends the host name for SNI, and the `Host` header leaves out the default port 443.
`run_on_ui_blocking()`, added in #16763, declared its call states in an enum inside the function template. MSVC does not find those enumerators from the default member initializer of the local `struct Call`, so `libslic3r_gui` failed to compile with cl (C2065, C2280). The states are now at namespace scope as `UiCallPending`, `UiCallClaimed` and `UiCallAbandoned`. Behavior is unchanged.
Undo/redo restores a plate's name but reattaches its Print without copying the name, so `{plate_name}` in the output filename and G-code could be empty or out of date. For example, delete a named plate and then undo. `PartPlate::set_print()` now copies the plate name to the Print.
`MachineObject::connect` read `use_ssl` from `dev_ip`, which holds host:port with the scheme removed. So the Moonraker printer agent always used plain HTTP and could not reach a printer whose print host is https. It now reads the scheme from the matching `print_host`.
* Bound Plugin Disconnect and Python Shutdown When OrcaSlicer Exits
A Python printer agent whose disconnect_printer() never returned froze
the closing app, and a plugin thread that never ended kept the process
alive after its window closed, because Py_Finalize joins every
non-daemon thread.
At shutdown a Python agent's disconnect_printer() now runs once per
agent on a helper thread with a 3 second deadline, holding a reference
that keeps the plugin object alive if the call outlives a forced
unload. PythonInterpreter::shutdown() waits up to 3 seconds for running
plugin calls and for non-daemon threads; if either is still going, the
interpreter is left unfinalized for the process exit to end.
* Run the Threading Atexit Hooks Before Waiting for Plugin Threads
An idle concurrent.futures worker only ends when the hooks registered with
threading._register_atexit() tell it to, and Py_Finalize runs those after
the shutdown wait, so a plugin that left an executor open made every exit
wait the full deadline and skip finalization. The hooks now run first, on a
daemon thread joined within the same deadline, since they join their
workers without a timeout.
Boost 1.87 removed io_service and io_context::reset(), and 1.88 moved the classic Boost.Process API under boost/process/v1/ and dropped deadline_timer from boost/asio.hpp. Use io_context, restart() and steady_timer, and include Boost.Process only through the new slic3r/Utils/BoostProcessCompat.hpp, which picks the v1 headers on 1.88+. The bundled Boost 1.84 build is unchanged.
get_first_layer_bbox() already returns plate-local coordinates, and generate_first_layer_bbox() subtracted the plate origin from them a second time. On every plate after the first, bbox_all and bbox_objects in plate_N.json ended up outside the bed. The CLI export path already wrote plate-local values, and the wipe tower handling is unchanged.
FreeType was only bundled for OCCT's font code in TKService. The only Orca code that used that font code was Shape/TextShape.cpp, and nothing calls it. Its one call in ImGuiWrapper.cpp is commented out. The Emboss tool and the Design tab's text use stb_truetype.
Build OCCT with USE_FREETYPE=OFF, and remove the FREETYPE dep, its Flatpak source entry, the freetype.dll copy on Windows, TextShape, and the freetype and fontconfig links in libslic3r. OCCT only links fontconfig when FreeType is on, and libslic3r_gui links fontconfig on its own.
* Run Check profiles, Check locale and clang-tidy on first-time contributors' PRs automatically
* Sweep for pending first-time contributor runs every 10 minutes
• Makes gizmo more compact
• Moved budget and resolution on collapsible "Quality" section. it shows
"Auto" status on title
• Moved "Add layer" moved layers header. Fixes position of button and
thats important while adding layers repeatedly
**Before - After**
<img width="757" height="566" alt="Screenshot-20261015200616"
src="https://github.com/user-attachments/assets/d7e356fd-6685-4608-92a6-56e1d2518f69"
/>
ws_connect(), query_boxes_info() and start_print() set expires_after()
deadlines, then made synchronous Beast calls. Beast only applies those
deadlines to async operations, so none of them fired. A printer that
accepted the websocket and then stopped answering blocked the caller
forever. That froze the GUI thread when the Creality send dialog opened
or the sidebar synced filaments, and left uploads stuck after the file
arrived.
Run every websocket call as an async operation on the local io_context,
so the deadlines apply. run_until_done() and the per-address connect
loop move from MoonrakerPrinterAgent.cpp into AsioUtils.hpp, and both
files share them. Each resolved address gets its own connect deadline,
and start_print() gets a reply deadline for its commands. A start-print
timeout shows the translated timeout message that HTTP timeouts already
use, now shared through PrintHost::timed_out_message(), and other
websocket errors drop Boost's source location.
The websocket port and deadlines move into a protected ws_settings
member, so the tests can use a local port and short deadlines. The new
tests run CrealityPrint against a fake printer that goes silent before
or after the handshake.
libpng 1.6.35 was from 2018, and 1.6.59 includes the security fixes released since then. The local patches and the NEON workarounds are removed, because 1.6.59 already handles the macOS target architecture, the clang 19 build on macOS, and NEON on Windows ARM64. Apple arm64 builds now use NEON, which is the libpng default.
Holding a +/- step button on a gizmo input changed the value only once. ImGui repeats a held button only on new frames, and the canvas draws only when an event arrives, so a mouse held still produced no repeats.
- Add ImGuiWrapper::request_frames_while_held() and call it after the Emboss Height and Depth, SVG Depth, and Cut groove Count inputs.
- Set io.DeltaTime from a real clock in ImGuiWrapper::new_frame(), capped at 1/60 s, so the repeat rate does not depend on the frame rate.
- Handle wxEVT_MOUSE_CAPTURE_LOST on the canvas, so a lost button-up does not leave an ImGui widget active.
- Cut groove Count no longer rebuilds when the value is already at its limit.
* Avoid SetLabel() on plain wxTextCtrl controls in Field.cpp
wxWidgets 3.3 turned wxTextCtrlBase::SetLabel() into an explicit
failure (wxFAIL_MSG, "Use SetValue() or ChangeValue() instead"). It
sets nothing, and with assertions enabled every call pops up an
assertion dialog.
TextCtrl::BUILD() only sets the side-text label in the single-line
case now (the TextInput composite). For multiline fields the control
is a plain wxTextCtrl, and the option group draws the side text
itself when there is any (combine_side_text() is false).
SpinCtrl::BUILD() replaces SetLabel() on the inner text control with
ChangeValue(). Nothing has been stored there since 3.3, and the one
reader of that label (propagate_value(), null-value case) already
sees an empty string. ChangeValue sets the initial text without
events, and the following SetValue(default_value) determines what is
displayed.
* Avoid label APIs on TextInput's inner wxTextCtrl
SetLabelText() routes to the virtual SetLabel(), which wx 3.3's
wxTextCtrlBase overrides, so both label APIs assert or silently no-op on
a plain wxTextCtrl. All become ChangeValue(), which sets the text
without events.
* Apply review suggestions to SliderCtrl, SpinCtrl, and machine dialog
---------
Co-authored-by: yw4z <ywsyildiz@gmail.com>
Use dynamic_cast in the vector branch of ConfigOptionVector::set_at. GCC at -O3 inlines set_at into the wipe tower position code, where the argument is a scalar ConfigOptionFloat, and the static_cast made it warn about an out-of-bounds read in the branch that never runs.
The scalar branch still uses static_cast. ConfigOptionFloatOrPercent is not a ConfigOptionSingle<FloatOrPercent>, so a dynamic_cast there would throw when a coFloatsOrPercents option is edited in the GUI.
Several per-filament and per-extruder options default to a single value. When a config lists fewer values than there are filaments or nozzles, the Type1 prime tower and the pre-heat injector read past the end of the vector, and the same scene could slice to different G-code from one run to the next.
- Read `filament_change_length`, `filament_change_length_nc` and `hotend_cooling_rate` with the same fallback to the first value that `get_at()` uses.
- `is_nil(idx)` falls back to the first value like `get_at()` instead of reading past the end.
- Skip the pre-cooling and last-layer reads when `get_extruder_id()` returns -1, and when no wall filament matches the selected category.
- Bounds-check the pre-heat injector's per-filament and per-extruder reads, and use the extruder index when `physical_extruder_map` is too short.
Configs that list a value for every filament and nozzle produce the same G-code as before.
Adds a test that nozzle-change ramming extrudes the same length in both directions when `filament_change_length` has one value for two filaments.
OpenCV compiled its bundled libpng 1.6.37 into opencv_world, so glTF
textures decoded with cv::imdecode and images loaded with cv::imread went
through that copy instead of the libpng the rest of Orca uses. Turn
BUILD_PNG off and depend on dep_PNG, the same way libjpeg is shared.
0002-clang19-macos.patch only patched the bundled copy's pngpriv.h,
which is no longer compiled, so drop it.
* Add 3Dconnexion Settings to the View Menu
The 3Dconnexion settings overlay could only be opened with its keyboard
shortcut. On macOS that is Cmd+Shift+M, because plain Cmd+M is the
system Minimize shortcut, so users who pressed Cmd+M minimized the
window and never found the dialog (#5484).
Add a "3Dconnexion settings" check item to the View menu. It toggles the
overlay and shows the shortcut bound to it, and its label follows the
key if the user rebinds it. It is enabled only on Prepare and Preview
when a device is connected (on Windows, also only with the legacy
3Dconnexion option enabled).
Move that availability test into
Mouse3DController::can_show_settings_dialog() so the menu item and the
canvas shortcut share it.
* Rename and move the 3Dconnexion Settings menu item
Label it "Show 3Dconnexion Settings" to match the other View menu items,
and move it below "Reset Window Layout" in its own separated group since
it opens a settings window.
---------
Co-authored-by: yw4z <ywsyildiz@gmail.com>
A host UI call from a plugin thread queued work on the UI thread and
waited with no limit. If the UI thread was itself waiting for that
thread while closing (a printer agent joining its worker in
disconnect_printer), the app hung forever. Once closing has started, a
call the UI thread has not picked up yet now raises RuntimeError
instead; the shared call state keeps an abandoned queued task from
touching the caller's stack.
A used filament with a flow ratio of 0 sliced in the GUI and wrote
E-92233720368547.758 on every extrusion move: GCode::_extrude multiplied
the flow by the ratio and divided by it again, giving 0 * 0 / 0 = NaN.
The CLI already rejected the value through the config check, but
Print::validate never looked at it.
Print::validate now stops the slice with an error naming the filament
when a used filament's flow ratio is 0 or nil, and _extrude converts the
flow to extrusion length with the bare filament cross-section, so the
ratio is applied once without a divide.
# Description
Comment both Kobra 2 layer markers so text such as `0 @ 0.2mm` is
emitted as `;0 @ 0.2mm`. Bump the Anycubic profile version to
`02.04.00.10` and add a regression test.
Fixes#16219.
## Tests
<details>
<summary>Local validation (Release)</summary>
- The regression exports a 1 mm cube with each shipped template: 10
failed assertions before the fix, passes afterward.
- Regression and existing G-code test: 2/2 passed via CTest.
- Clang-tidy, JSON validation and `git diff --check`: passed.
- Generated G-code verified locally; no physical printer test.
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
</details>
Follow-up to #15429. Adds six more School House Spools filament profiles
to the global Orca Filament Library.
# Description
New profiles, each with an @base and @System file under
`OrcaFilamentLibrary/filament/SchoolHouseSpools/`:
* School House Spools Matte PLA
* School House Spools Silk PLA
* School House Spools Marble PLA
* School House Spools TPU 95A
* School House Spools Matte PETG
* School House Spools Transparent PETG
These match the products School House Spools sells. Values start from
the equivalent standard material profiles. Printer-specific items (start
G-code for Bambu printers, plate-specific settings) are left out so the
profiles stay generic across printers. Vendor name, filament cost and
descriptions are School House Spools' own.
Silk PLA and TPU 95A have short usage notes in the description field:
fresh sealed spools can be printed as they are, and Silk PLA looks best
with an outer wall speed of 40 to 60 mm/s.
As with #15429, this only touches the global OrcaFilamentLibrary. There
are no printer-specific override files, because nothing has been
separately tuned per printer.
# Screenshots/Recordings/Graphs
N/A, profile data only.
## Tests
* `scripts\check_profile.bat -Vendor OrcaFilamentLibrary`:
`profile_tool` passes with 0 errors and 0 warnings.
* filament_ids minted with `orca_profile_tool.py generate-id`,
setting_ids assigned by the tool, and `update-index` run so the index is
canonical.
# Description
filament used and weight are shown on the m5 touchscreen. This now
enables display of that.
# Screenshots/Recordings/Graphs
N/A
## Tests
Built w/ latest changes of main locally. Tested on a fresh install
(cleaned appdata). Added M5 printer, new vars are in the file header
gcode of the printer config. sliced file and checked gcode. Matches what
printer expects.
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
# Description
<!--
> Please provide a summary of the changes made in this PR. Include
details such as:
> * What issue does this PR address or fix?
> * What new features or enhancements does this PR introduce?
> * Are there any breaking changes or dependencies that need to be
considered?
-->
Add host-based network permissions for plugins (#16592).
## Summary
- Extend orca.request_permissions() to accept network URLs and request
permission during plugin registration.
- Store approved HTTP(S) permissions as canonical scheme://host grants,
shared across HTTP and socket events.
- Match requests by scheme and host, so changing URL paths or query
strings does not trigger repeat prompts. Existing full-URL grants remain
scoped to that URL.
- Allow targetless network events when the plugin already has a network
grant.
- Add a manual probe plugin for verifying permission persistence,
targetless socket events, and URL matching.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
<!--
> Please describe the tests that you have conducted to verify the
changes made in this PR.
-->
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
# Description
<!--
> Please provide a summary of the changes made in this PR. Include
details such as:
> * What issue does this PR address or fix?
> * What new features or enhancements does this PR introduce?
> * Are there any breaking changes or dependencies that need to be
considered?
-->
Adds wildcard permissions for filepaths.
Previously, permissions were only granted to exact hostname URLs, e.g.
```
/path/to/folder/file1
/path/to/folder/file2
/path/to/folder/file3
```
This PR grants permissions via wildcards:
`/path/to/folder/*`
This way, the user of the plugin isn't bombarded with multiple
permission dialogs.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
<!--
> Please describe the tests that you have conducted to verify the
changes made in this PR.
-->
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
# Description
On Windows running in a Parallels Desktop VM on Apple Silicon, the
Preview tab shows the legend and the seams but no toolpaths. The segment
shader reads its vertex ID from a buffer of single bytes. Metal only
accepts vertex strides that are a multiple of 4 bytes, and the Parallels
OpenGL driver, which runs on Metal, draws nothing from that buffer and
reports no GL error. The vertex IDs are now 32-bit, so the toolpaths
render there. The Preview has been broken in Parallels since libvgcode
was ported from PrusaSlicer.
The only cost is the shared template buffer, which grows from 8 to 32
bytes. Rendering on other drivers should not change.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
Tested on Windows 11 ARM64 in Parallels Desktop on an Macbook Pro
(OpenGL 4.3, "Parallels using Metal") with a sliced 20 mm cube. Without
the change, the Preview shows no toolpaths. With it, the walls, infill
and top surfaces render normally. I did not test on native Windows,
macOS or Linux GPUs, or the OpenGL ES build.
<!--
> A guide for users on how to download the artifacts from this PR.
-->
[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)