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.
• 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.
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.
* 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
<!--
> 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
On macOS, text fields drawn in the 3D view, such as the Text tool's,
ignored the input method, so with Pinyin or another Chinese, Japanese or
Korean input source only English letters came through. Input methods now
work there, and Esc, Backspace and Enter pressed while composing act on
the composition only, not on the text. This follows BambuStudio's fix
for the same problem.
With the UI in Chinese, Japanese or Korean, the Text tool also showed
its default text as "????" with an error whenever the system's default
font lacks those characters, for example on an English Linux system. New
text now starts with one of OrcaSlicer's bundled fonts that can write
the translated default text (HarmonyOS Sans SC, or NanumGothic for
Korean). When no available font can, the default text is in English.
Saved text styles are kept as they are. Users whose system font already
covers their language see no change.
On Linux outside the Flatpak, choosing a bundled font such as HarmonyOS
Sans SC in the Text tool also embossed the text in a system font. It now
uses the bundled font.
#14658 also deals with "?" in embossed text, by drawing missing
characters with system CJK fonts. This PR doesn't mix fonts in one text:
it picks a bundled font for the default text, so it also works where the
system CJK fonts can't be used, such as the variable Noto CJK fonts in
Fedora 43.
# Screenshots/Recordings/Graphs
<img width="457" height="189" alt="image"
src="https://github.com/user-attachments/assets/b760601c-e82c-40f3-bb19-b27858789b35"
/>
## Tests
Fedora 43 VM with KDE Plasma and an English system, AppImage built from
this branch:
- Chinese UI, no saved text styles: the Text tool starts with the
"Default font" style (HarmonyOS Sans SC) and embosses 浮雕文字. Chinese
typed with Pinyin works, and the text reopens for editing in the same
font.
- Chinese UI with saved text styles: the default text is "Embossed
text", with no error.
- Picking HarmonyOS Sans SC in the font list now previews and embosses
Chinese characters.
- English UI: unchanged, and no extra style is saved.
- Korean UI: the default text is "Embossed text". The AppImage doesn't
list NanumGothic among its fonts on this system, which is an existing
issue.
macOS on Apple silicon, Release build of this branch:
- Chinese UI, no saved text styles: the Text tool starts with HarmonyOS
Sans SC and the default text 浮雕文字.
- Pinyin in the Text tool types Chinese, and Esc, Backspace and Enter
pressed while composing change only the composition.
A Flatpak build of an earlier revision of this branch was tested the
same way: Chinese and Korean (NanumGothic, 텍스트 양각) worked, and English
and German were unchanged. The Flatpak was not rebuilt after the Linux
font lookup fix. Windows was not tested, nor were Japanese and Thai UIs,
nor Japanese and Korean input methods on macOS.
<!--
> 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)
* init
* update
* update
* update
* update
* update
* fix conflict
* fix tidy
* move drop to main menu
* call utilities menu as "More"
* use transform sub menu for multi selection
* plates menu
* fix visiblity of export options on object menu
* fix modifier volume menus and separator usages
* move special type volume options to first place
* minor fixes & cleanup
* revert changes for precise seam
With printer agents on, a printer bound from the Device tab is saved as a device of the agent, not in the preset's `print_host`. `GUI_App::select_machine()` returned early when `print_host` was empty, so after a restart no printer was selected and the sidebar filament sync button did nothing until the print dialog picked one.
When `print_host` is empty, select the agent's bound printer if it is the only one, the same rule `MainFrame::load_printer_url()` uses.
* fix: CLI keeps a project's values when it lists no changed settings
A project whose different_settings_to_system is missing or empty in
every entry does not say which of its values were changed: the GUI
saves it that way both when its presets match their parents and when
it cannot find those parents. The CLI still refreshed every unlisted
printer, process and filament key from the system presets, so such a
project sliced with system values instead of its own, e.g. with
supports turned off, and exited 0.
A plain run now keeps the stored values of such a project and only
fills the keys it lacks from its system printer and process presets.
Projects that list changes follow the existing rule, and --uptodate
still refreshes.
Fixes#16698
* fix: CLI fills missing filament keys of an unlisted project from its presets
Without any entry in different_settings_to_system, a plain run skipped
the filament refresh, so filament keys the project lacks, e.g. options
added after it was saved, fell back to the option defaults while
missing printer and process keys came from the system presets.
The filament presets are resolved again for such a project, and each
refreshed filament keeps every key the project has, mapped onto the
system preset's extruder variants; only the keys it lacks come from
the preset. The filament_dev_* values the project has are kept too,
unless a filament is loaded from a file. The test removes two filament
keys and a filament_dev key from the unlisted project.
---------
Co-authored-by: SoftFever <103989404+SoftFever@users.noreply.github.com>
On Windows, the startup 3D mouse check called hid_enumerate(), which opens every HID device. That took about 100 to 200 ms on the UI thread. Windows keeps the vendor id, product id and usage of each HID collection for Raw Input, so the check now reads that list and opens nothing. It takes under 1 ms.
# Description
On Linux under Wayland, resting the pointer on a filament, printer or
process preset whose name is cut off closed the whole dropdown list just
as the tooltip with the full name was about to appear, and the terminal
logged `Tried to unmap the parent of a popup`. The list now stays open
and the tooltip shows the full name, as it does for preset descriptions.
The orca-wxwidgets skill gains the matching rule for popups on Wayland.
Fixes#16800
Only Linux under Wayland is affected; X11, Windows and macOS behave as
before. One edge case remains on Wayland: if another app takes the focus
while an item's tooltip is showing, the list stays open until you return
to OrcaSlicer, where the first click closes it.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
Checked by hand on KDE Plasma (Wayland, GTK 3.24.52) against a build
without the fix. Resting on a truncated preset or on one with a
description used to close the list when its tooltip appeared; the list
now stays open with the tooltip and no GDK warning. Opening a vendor
sub-list after a tooltip, moving quickly between rows, scrolling,
clicking outside, and another app taking the focus with no tooltip
showing all behave as before, and X11 is unchanged.
<!--
> 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 Linux under Wayland, clicking the filament, printer or process
dropdown while its tooltip was showing did nothing, so it often took
several clicks to open the list, and the terminal logged `Tried to map a
popup with a non-top most parent`. Dropdowns and Orca's other popups now
open on the first click even when a tooltip is up. The orca-wxwidgets
skill gains the matching rule for popups on Wayland.
Fixes#16595
Only Linux under Wayland is affected; X11, Windows and macOS behave as
before.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
## Tests
Checked by hand on KDE Plasma (Wayland, GTK 3.24.52) against a build
without the fix. With the combo's tooltip showing, a click used to open
nothing; it now opens the filament, process and printer lists on the
first click with no GDK warning. Vendor sub-lists, picking an item,
clicking outside and clicking the combo again still work, and tooltips
come back after the list closes.
<!--
> 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)
Last resort for code that never returns while the app closes, such as
plugin code, vendor libraries or a lost network call. Once closing can
no longer be vetoed, a watchdog thread waits 30 seconds, logs that the
app did not finish closing and ends the process with std::_Exit. The app
config is saved on idle and again in MainFrame::shutdown, so little is
lost.
# 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?
-->
Fixes#16771. Opening a project saved by 2.5.0-alpha in a nightly shows
"The 3MF file version 2.5.0-alpha is newer than OrcaSlicer's version
2.5.0-dev, found the following unrecognized keys:", followed by an empty
list.
Three things cause this:
- `semver.c` ranks `dev` below every other prerelease. Nightlies stay on
`x.y.z-dev` after the alpha and beta are tagged on the release branch,
so every alpha or beta project looked newer than the nightly opening it.
- `silent_mode` was retired: `handle_legacy` drops it on load, and
nothing can set it. It was still defined, though, so it was written into
every project. Every project then reported it as an unrecognized key on
load, and every project from a newer version took the "unrecognized
keys" branch of the warning. For the project in the issue it is the only
key reported.
- The warning never printed the keys it found, so the list was blank.
## Changes
- Rank `dev` above the other prereleases of the same version and below
the release: alpha < beta < rc < dev < release. This also changes two
other places that compare against the app's version:
- A project saved by a `x.y.z-dev` nightly now counts as newer when
opened in that version's alpha or beta.
- The update check, with prereleases enabled, no longer offers that
version's alpha or beta to nightly users. It still offers the release.
- Remove the `silent_mode` option, so projects no longer save it, along
with the code that only read it: the Normal/Silent columns on the
printer's Motion ability page, the Normal/Silent label in the
unsaved-changes dialog, and the switch that enabled the stealth time
estimator. Since the value was always false, none of these ran. The key
stays in the obsolete set, so older projects that contain it still load.
- List the unrecognized keys in the newer-version warning. The UI
strings are unchanged, so existing translations stay valid.
Projects saved before this change still carry `silent_mode`, so the
warning lists it when one of them is newer than the running version.
# Screenshots/Recordings/Graphs
<!--
> Please attach relevant screenshots to showcase the UI changes.
> Please attach images that can help explain the changes.
-->
Before:
<img width="860" height="200" alt="before"
src="https://github.com/user-attachments/assets/5d067ae1-5cfb-40b4-8973-3ac10cf2aeb9"
/>
After:
<img width="860" height="200" alt="after"
src="https://github.com/user-attachments/assets/2ef2401e-e869-4ae8-84f6-8730494c13c0"
/>
## Tests
<!--
> Please describe the tests that you have conducted to verify the
changes made in this PR.
-->
- New `[Semver]` cases: dev ranks above alpha, beta and rc and below the
release of its version; two dev builds compare equal. They fail without
the `semver.c` change.
- New `[Config]` case: a full config has no `silent_mode`, and loading
one that has it drops it and reports it as unrecognized.
- On Linux, loaded the project from the issue in a `2.5.0-dev` build.
Before: the warning with an empty list. After: no warning. The same
project relabelled as 2.5.0 and given an unknown key shows the warning
listing that key and `silent_mode`.
- Re-saved the project from the CLI: `silent_mode` is no longer in
`project_settings.config`.
- Sliced the project before and after: identical moves and time
estimates; only the settings comments differ.
- `tests/libslic3r` and `tests/fff_print` pass on Linux. The STEP case
"A cone with a slightly tilted seam imports as a closed mesh" fails
locally on main too. The profile tool tests pass.
<!--
> 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)