Commit Graph
33180 Commits
Author SHA1 Message Date
peachismomo 8959e86d7d fix: fail closed on replaced plugin audit state and partial discovery 2026-11-23 03:45:06 +08:00
peachismomo 0bff760df7 fix: correct plugin profile cleanup and warnings 2026-11-22 00:23:45 +08:00
peachismomo a7e146786f refactor: remove unused keep-local unsubscribe path 2026-11-21 22:10:20 +08:00
peachismomo b8069c37df fix: isolate plugin browser profile lifecycle 2026-11-21 01:34:57 +08:00
Ian Chua fc2a88ba72 fix: isolate browser sessions in plugin ui callbacks 2026-11-19 14:26:05 +08:00
Ian Chua 113b42da33 Merge branch 'main' into fix/isolate-plugin-browser-session 2026-11-18 18:14:21 +08:00
Ian Chua 3838002bc8 feat: serialize permission grant for create and delete files (#17478)
* feat: serialize permission grant for create and delete files

* test: expect saved copytree permissions in hardlink audit test

* refactor: simplify plugin filesystem and permission handling

* fix: show triggering paths in plugin permission prompts

* fix: require subtree consent for recursive plugin deletes

* fix: tests

* fix: Windows short-path aliases in plugin audit checks

* fix: correct plugin folder permission display and consent text
2026-11-18 17:50:29 +08:00
HanifKoh 0c80c412a1 Put Prusa CORE One Overhang Speeds in the Right Slots (#17605)
PrusaSlicer's overhang_speed_0..3 count from the steepest overhang
(0% overlap) up, while Orca's overhang_1_4..4_4_speed count from the
mildest. The MK4S base preset maps them that way (_3 -> 1_4, _2 -> 2_4,
_1 -> 3_4, _0 -> 4_4), but the CORE One process presets put
PrusaSlicer's _2 and _3 overrides in the 50% and 75% slots, and the
CORE One L presets put _3 in the 50% slot. As a result steeper
overhangs could print faster than milder ones, e.g. 0.20mm STRUCTURAL
@CORE One 0.4 ran 25% overhangs at 30 mm/s and 50% overhangs at
45 mm/s.

Rename the keys to the slots the mapping gives, without changing any
value. Five CORE One MMU3 presets also wrote their own overhang speeds
in a mixed-up order, including 0 (no slowdown) for the mildest
overhangs; drop those keys so they inherit their corrected CORE One
parents. PrusaSlicer has no separate MMU3 print presets.
2026-11-18 16:40:58 +08:00
HanifKoh 4aaef535e6 Skip Arachne Toolpaths When the Voronoi Diagram Cannot Be Repaired (#17600)
* Skip Arachne Toolpaths When the Voronoi Diagram Cannot Be Repaired

When the Voronoi repair fails, the skeletal graph built from the
diagram has edges without twins, and the later stages dereference
them. Leave the graph empty and log an error instead, so that outline
gets no toolpaths rather than crashing the slice.

* Cast the Far Sliver Coordinates to `coord_t` in the Unrepairable Voronoi Test

On macOS int64_t is long long, so a literal of type long matched no Point constructor exactly and the call was ambiguous.
2026-11-18 14:04:54 +08:00
HanifKoh d3992c2288 Bound Out-of-Range filament_map and physical_extruder_map Values (#17476)
* Treat a filament_map Nozzle Outside the Printer as Nozzle 1

A filament_map entry of 0, a negative number or a number above the
nozzle count made Extruder::extruder_id() wrap or run past the end, and
print_machine_envelope then took the std::max over the per-extruder
machine limits out of bounds on a flavour that emits them.

Print::apply now treats an entry outside [1, nozzle count] as nozzle 1,
before the variant expansion and the config snapshot, and logs it once.
After the clamp the slicing engine only sees in-range values. It works
on this print's copy of the config; readers of the plate or project
config are not changed, and in-range maps are left alone.

* Skip a physical_extruder_map Entry Outside the Per-Nozzle Table on Export

The first-filament table built for the start G-code is sized by the
nozzle count, and the export wrote it at the index named by
physical_extruder_map. An entry outside that range corrupted the heap,
and a negative one aborted or hung the export.

The value is a firmware tool number that is also emitted elsewhere, so
it is left as it is; only the write into the table is bounded.

* Treat a filament_map Nozzle Outside the Printer as Nozzle 1 in the CLI

With --filament-map-mode Manual on a multi-nozzle profile, the CLI
indexed the per-nozzle unprintable-filament sets, and shifted the
per-filament printable status, with the raw filament_map value. A value
of 0, a negative number or one above the nozzle count read out of bounds
and crashed before the print was configured.

The checks now use a local copy of the map in which an entry outside
[1, nozzle count] is nozzle 1, the same policy Print::apply applies.
In-range maps are unchanged.
2026-11-18 14:04:32 +08:00
HanifKoh 8ebb0a9a2b Stop Arachne's Outline Simplification From Placing Vertices Metres Away (#17599)
simplify() may move a vertex to the intersection of its neighbouring
lines, guarded by a check that the point stays near them. The check
squared the distance in int64, which overflows when nearly parallel
lines meet more than about 3 m away, so the far point was accepted.
The broken outline gave a Voronoi diagram the repair could not fix,
and SkeletalTrapezoidation then dereferenced an edge without a twin.

Compute the squared distances in double.
2026-11-18 12:58:45 +08:00
Kris Austin 428a8fcc91 Arrange items almost as wide as the bed again (#17416)
* Arrange items almost as wide as the bed again

An arrange spacing lets a rectangular bed grow by the part of the spacing
past every item's brim or tree support, the way printing by object
already grows it. The spacing is kept in full and a part that fits the
bed is not refused for it. The bed does not grow when an item that can
be placed would keep less inflation than the growth, beyond the EPSILON
slack, so a part that fills the bed may sit up to EPSILON past its edge,
within BuildVolume::BedEpsilon. A round bed never grows for a spacing,
since moving its points along each axis would grow it unevenly.

The cap on an item's inflation measures the item as the nester packs it,
inflated with square joins and turned, so it holds for an item turned to
the Y axis or by hand, and it leaves room for the skirt. An item too big
for the bed keeps its full inflation, so it is still refused on a grown
bed, and it no longer sets the bed margin given back to the other items.
Printing by object, this keeps the 5 mm margin for the placed objects
when another one is refused.

The arrange bed keeps EPSILON on each side of the largest item for every
print sequence, since the nester cannot place an item beside one that
fills the bed exactly.

The skirt room reads a percent first layer line width against the
nozzle diameter instead of as millimeters, and accepts a width stored as
a plain number.

update_arrange_items() runs the arrange setup in the order it depends on
for the arrange job and the CLI.

* Arrange items the nester has to turn

With rotations allowed the nester turns an item that does not fit as it
lies, even onto the bed's diagonal, so no item counts as too big. An item
that has to turn is measured at an angle where it fits along the bed's
axes, if there is one, so it keeps its spacing.
2026-11-17 22:07:31 -06:00
Ian Bassi 12c9ee813b Brim filament for features (#17655) 2026-11-17 21:58:49 -03:00
Ian BassiandRodrigo Faselli 8b3de0be86 Sparse infill strategy selector (#17645)
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
2026-11-17 21:16:40 -03:00
Lam Wei LunandIan Bassi 07f38df2a4 Fix top surface printing over inner walls with only one wall on top (#17597)
Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
2026-11-17 14:39:16 -03:00
Ian Bassi e76b4d676c Split smoothed infill corners no finer than 5 microns (#17630) 2026-11-17 09:54:18 -03:00
Ian Bassi 745207d3e3 Choose the filament each calibration prints with (#17621) 2026-11-17 08:36:13 -03:00
HanifKoh 47c67e1c44 Hide a Plugin Page When the Overflow Tab Swaps It Out (#17626) 2026-11-17 16:45:26 +08:00
Ian Chua 0ab2785f6d feat: keep plugins activated/deactivated based on pre-update state (#17473)
* feat: keep plugins activated/deactivated based on pre-update state

* fix: preserve plugin capability choices across updates

Cloud plugin replacement resets the install-state sidecar, which silently
re-enabled capabilities the user had disabled. Snapshot the installed sidecar
before replacing the package, then write the pre-update capability choices and
activation intent back after the install. Permissions stay cleared so the new
package must request them again, and the reload now waits until that state is
persisted.

Add regression tests for updating both an active and a deactivated cloud
plugin.

* fix: roll back a failed plugin update and keep the old package usable

Download the replacement before unloading or deleting the installed package, so
a download failure leaves the old package and its sidecar untouched. Refuse to
replace a package whose sidecar exists but cannot be read, rather than resetting
the user's capability choices and grants.

Extract the install-from-package step so the updater can reuse it. When the
install fails, restore the previous sidecar (activation intent, capability
choices and grants) that the unload step overwrote, and reload the old package
if it was active. Keep a stale package from another cloud directory until the
new one is committed.

In install_plugin, use one rollback helper for every failure path and give
backups a "__" prefix so an abandoned backup is never discovered as a plugin.

Add regression tests for failed download and failed install.

* fix: prevent a plugin load and an update from racing

Claim a plugin key for the duration of update_cloud_plugin under m_mutex, and
make load_plugin refuse a key that an update owns. An update that starts while
a load is still running now fails with a clear error instead of unloading the
package underneath the loader; the claim is released before the replacement is
reloaded and on every failure path.

Keep the dialog's Update button disabled while the selected plugin is loading,
so the UI cannot start an update the manager would refuse. Add a JavaScript
test for the button state and a C++ test for the load refusal and claim
release.

* fix: clang-tidy

* fix: plugin update safety and simplify state handling

* fix: plugin update rollback and error reporting

* refactor: simplify plugin update state handling and tests

* fix: avoid marking plugins as errored on update conflicts
2026-11-17 16:36:52 +08:00
Ian Chua 0aa479f27c fix: overlapping permission dialogs (#17318)
* fix: queue permissions dialogs

* fix: serialize plugin permission dialogs across prompt types

* fix: unit tests

* fix: move audit prompt stuff to PluginAuditManager

* fix: discard pending permission requests when plugin load is cancelled

* fix: simplify audit prompt cancellation and align denial tests with prod

* fix: queued permission prompts lost after plugin load failure
2026-11-17 14:33:17 +08:00
AsTechEvolves 4c714ac95e Show the Orca logo instead of Bambu's camera placeholder for non-Bambu printers (#17524)
* IMPROVEMENT - show the Orca logo instead of Bambu's placeholder before a non-Bambu printer's camera plays in MediaPlayCtrl and wxMediaCtrl3

* IMPROVEMENT - pick the camera placeholder from image files in MediaPlayCtrl: Bambu's as live_stream_bambu.png for Bambu presets, Orca's as live_stream_default.png for the rest, set when the view is shown
2026-11-17 14:30:07 +08:00
Ian Chua 9232613297 fix: nozzle sync table flash and white box (#17607)
* fix: nozzle table height measurement before dialog layout

* fix: white flash when nozzle list table loads
2026-11-17 14:28:08 +08:00
Kiss Lorand 32f6db87e8 Fix validation of legacy bed exclusion areas (#17618) 2026-11-17 10:20:41 +08:00
HanifKoh 5841f9652d Skip Empty Test Result Publishes and Unrelated Labels in Optional Builds (#17602) 2026-11-17 07:44:59 +08:00
Kiss Lorand 9cdaaedad7 Fix Measure geometry after nonuniform scaling (#17549) 2026-11-16 18:35:55 -03:00
Ian Bassi c49e32c1e7 Set feature speeds in mm³/s or % of max volumetric speed (#16299) 2026-11-16 17:55:09 -03:00
HanifKoh 59acdedd06 Keep Heavy Boost and Plugin Headers Out of Widely Included Headers (#17494)
* Keep Heavy Boost and Plugin Headers Out of Widely Included Headers

Several headers that most of the code includes pulled in large libraries they barely use, so hundreds of files compiled them for nothing:

- Point.hpp, Line.hpp, Polygon.hpp and ExPolygon.hpp included all of Boost.Polygon to declare traits. Point and Line now include only the concept headers they need, and the polygon traits move to BoostPolygonTraits.hpp, included by BridgeDetector.cpp, the one file that runs Boost.Polygon algorithms on polygons.
- ProjectTask.hpp included Boost.Thread and the filesystem streams but only uses boost::filesystem::path.
- Utils.hpp included Boost.DateTime for one inline function, which moves to utils.cpp.
- Semver.hpp used boost::format for two version strings; std::to_string prints the same.
- MainFrame.hpp held PluginPages by value, which brought in the web view and plugin headers; it now holds it by unique_ptr.
- Model.hpp included STEP.hpp, and with it OpenCASCADE, for a forward-declarable type and two typedefs.

Files that relied on these headers arriving indirectly now include what they use.

* Include What the Polygon Traits and the End-Time Helper Use

* Drop Two Unneeded Includes and Include the Filesystem Directory Header
2026-11-16 19:30:35 +08:00
Ian Chua 4b161be150 fix: prevent oversized AMS mapping popup on Wayland (#17606) 2026-11-16 18:55:18 +08:00
HanifKoh baeadeb3e1 Build the Windows Installer While the Zip and PDB Archive Are Packed (#17484)
cpack now runs in the background while the portable zip and the PDB archive are packed, and a later step waits for it, prints its log and fails on its exit code. makensis compresses on one core, so the two archive steps no longer add to the job's length.
2026-11-16 18:07:36 +08:00
HanifKoh e0f7f0b7ee Work Around the MSVC 14.52 ARM64 Internal Compiler Error in OCCT (#17601)
The windows-11-vs2026-arm runner image 20261112.217.1 moved from MSVC 14.51 to 14.52, and its cl.exe crashes with C1001 while optimizing OCCT's BRepGraph_LayerTopoSupplement.cxx. clang-cl builds compile OCCT with cl on ARM64, so every Windows arm64 deps build on that image fails.

A second OCCT patch compiles that one file without optimization when the compiler is cl targeting ARM64. Other compilers and architectures see no change.
2026-11-16 15:35:35 +08:00
Ian Chua d6ec712c2e fix: windows plugin update deletion failure (#17462)
* fix: windows plugin update deletion failure

* fix: retry transient Windows plugin deletion failures
2026-11-16 13:54:55 +08:00
HanifKoh 191760b5cb Ship the Linux Preset Caches Before Packing the AppImage (#17485) 2026-11-16 13:49:03 +08:00
HanifKoh cbf282e6b3 Sign Each Windows Binary Once and Keep the Signed NSIS Plugins (#17483) 2026-11-16 13:37:02 +08:00
yw4zandNoisyfox ff93256eff LabeledCheckBox class (#15761)
* init

* extend feature set

* update

* fix tidy

* fix tidy

* Update calib_dlg.cpp

* simplify class

* update

* align labels with RadioGroup

* replace ImportCheckBox

* Update LabeledCheckBox.cpp

* apply to more dialog

* add to ai skills

* update

* fix Tooltip only reaches the children on the first call

* fix Label can stay grey after a theme switch

* Update release dialog

* change focus target for all platforms

---------

Co-authored-by: Noisyfox <timemanager.rick@gmail.com>
2026-11-16 11:24:56 +08:00
yw4z f5305fa542 Remove the unused NanoSVG deps recipe (#17583) 2026-11-15 19:12:49 -03:00
Kiss Lorand 87fb987668 Fix part deformation in Assembly Parallel operation (#17552) 2026-11-15 15:52:34 -03:00
Noisyfox b4a9565dee Round mixed filament row corners (#17561) 2026-11-15 11:52:27 -03:00
Rodrigo Faselli 0e8e95d516 Fix Crash (access violation) instead of the "empty first layer" (#17565) 2026-11-15 11:51:10 -03:00
Ian Bassi 8b8d573a85 Keep Outer Walls Out of the Resonance Avoidance Range in the Layer Cooling Slowdown (#17534) 2026-11-15 11:29:03 -03:00
Ian Bassi ebfce227c6 Copy the Python runtime only when it changes, and use thin archives with clang-cl (#17511) 2026-11-15 11:07:56 -03:00
Ian Bassi 8a1cef365e Time Layer Cooling With Acceleration, as the Preview Does (#17540) 2026-11-15 10:47:57 -03:00
Antoine 3bfabc9831 Fix Ankermake M5/M5C printing time (#17548)
The Anker file header wrote `;TIME:{print_time_sec}s`. print_time_sec
is only the seconds part of the estimate (0 to 59), so the M5, M5
All-Metal and M5C were told every print takes under a minute. Use
print_time_total_sec, the whole estimate in seconds, and drop the `s`.
2026-11-14 11:15:28 -06:00
Kris Austin 9921437c27 Fail tests whose sections assert nothing (#17420)
tests/CATCH2.md says to run the suites with `--order rand --warn
NoAssertions`. On main that fails in fff_print (8 test cases), libslic3r
(15), sla_print (1) and slic3rutils (4), even when each case runs alone.
ctest never passed the flag, so nothing stopped new ones. Most of these
tests have SECTIONs that only set up state, with the assertions after
them, or generated cases that return early for combinations that don't
apply. Catch2 counts assertions per section, so each of those reads as
an empty test.

Where only a value or a short setup changes, use GENERATE or a table and
generate only the combinations that apply. Elsewhere, end each section
with a call to a local check. ctest now passes `--warn NoAssertions`, so
CI fails a case or section that asserts nothing, and tests/AGENTS.md
says so. ctest also passes the CATCH_EXTRA_ARGS cache variable, which
nothing read before, split like a command line, so setting it now takes
effect.

Three tests only wrote a debug mesh or diagram and asserted nothing.
They now check that the Voronoi diagram of the six points is complete,
that hollowing with hfRemoveInsideTriangles removes at least half of the
roughly 400 mm² of the two spheres that lies deeper than the wall, and
that the half cone is closed. The legacy 3MF scenario checked for a
volume map on every plate of a file that has none, so it now also saves
and loads a project with a plate, and its name says so.
2026-11-14 10:47:42 -06:00
Kris Austin bf1fb93b78 Use WebKit's Shared-Memory Transport on Wayland Outside the Flatpak (#17399)
* Use WebKit's shared-memory transport on Wayland outside the Flatpak

In a Wayland session, the hardware DMABUF path of Ubuntu's WebKitGTK 2.52
on Intel GPUs froze the Preview, Device and Project tabs and left the 3D
view drawn over other pages. On the default path of a build with EGL,
outside the Flatpak, set WEBKIT_DMABUF_RENDERER_FORCE_SHM=1, as Orca
already does for NVIDIA and virtual machines, so compositing stays on.
WebKitGTK 2.42 and 2.43 have the DMABUF renderer but ignore that switch,
so they get WEBKIT_DISABLE_COMPOSITING_MODE=1 instead. The Flatpak's
runtime WebKitGTK works, so it keeps the hardware path.

A Wayland session is detected by wayland_socket_available(), which looks
for the socket the way wl_display_connect(NULL) does. The no-EGL fallback
and the GUI start-up check use it too, so all three agree with GTK.
is_running_in_flatpak() checks only /.flatpak-info, because a host process
started from a Flatpak can inherit FLATPAK_ID; the data-dir migration and
the Troubleshoot dialog now use it. Both helpers live in libslic3r/Utils
and have unit tests.

Fixes #17381

* Note that Debian's WebKitGTK 2.54 on AMD freezes too
2026-11-14 10:46:49 -06:00
Kris Austin 33c07cc74d Fix overlapping text under "Check the reason" on macOS (#17366)
The error panel that "Check the reason" opens in the print, send,
calibration and bind dialogs is a scrolled window with a fixed size.
It starts hidden, and showing it gives it the size it already had.
macOS only sends a size event when the size changes, so the panel
never laid out its rows and drew them all at its top-left corner.
Lay the panel out when it opens.

Fixes #17065
2026-11-14 10:46:32 -06:00
Rodrigo Faselli 6268535d2f Multiline rectilinear infill optimization (#17547) 2026-11-14 11:33:39 -03:00
Damir GaleevandIoannis Giannakas 82135af6ff Fix seam dents caused by skipped retraction after outer wall (#16982)
Co-authored-by: Ioannis Giannakas <59056762+igiannakas@users.noreply.github.com>
2026-11-14 11:30:49 -03:00
Hanif Koh 87cf1429ca Keep Every Overhang That Joins a Tree Support Cluster on the Same Layer
An overhang cluster stored one overhang per layer, so a second overhang
joining the cluster on a layer it already had was dropped and got no tree
support. Store every overhang of the layer, as BambuStudio does since
adb3fbcfc.
2026-11-14 16:06:46 +08:00
SoftFever b4fdf51179 Allow more than one release publisher (#17546) 2026-11-14 03:26:21 +08:00
yw4zandIan Bassi 9a285770d4 Variable layer height: allow painting directly on objects (#17471)
Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
2026-11-13 16:24:14 -03:00