OrcaSlicer/src/libslic3r/GCode
Rodrigo Faselli ef876fe577
Wipe Tower Auto Brim bug-fix (Non BBL printers) (#11831)
# Description

Fix application freeze when Prime Tower brim is set to Auto

This PR fixes an issue where enabling Auto brim width for the Prime Tower caused the application to freeze and consume unbounded amounts of memory.

Root cause
0c5f6c9865/src/libslic3r/GCode/WipeTower2.cpp (L2036-L2039)
When Auto brim is selected, the brim width was not being computed and the raw configuration value (-1) was used directly.
This resulted in an effectively infinite loop during Prime Tower brim generation, leading to runaway memory allocation instead of a controlled failure or a crash.

Solution

The Auto brim width is now properly computed based on the Prime Tower height, matching the intended behavior and existing logic used in other slicer implementations.
2026-01-05 20:15:23 +08:00
..
AdaptivePAInterpolator.cpp Enhancement: Adaptive Pressure advance (#5609) 2024-07-28 22:52:08 +08:00
AdaptivePAInterpolator.hpp Enhancement: Adaptive Pressure advance (#5609) 2024-07-28 22:52:08 +08:00
AdaptivePAProcessor.cpp Fix english strings consistency (#8881) 2025-04-26 19:59:49 +08:00
AdaptivePAProcessor.hpp Enhancement: Adaptive Pressure advance (#5609) 2024-07-28 22:52:08 +08:00
AvoidCrossingPerimeters.cpp Merge branch 'main' into dev/h2d-2 2025-10-14 19:43:33 +08:00
AvoidCrossingPerimeters.hpp Avoid cross perimeter improvements ported from BBS (#10220) 2025-07-30 21:42:39 +08:00
ConflictChecker.cpp Fix:path conflictcheck 2025-10-28 15:29:55 +08:00
ConflictChecker.hpp FIX: remove some warnings 2025-10-28 15:29:56 +08:00
CoolingBuffer.cpp Merge branch 'main' into dev/h2d-2 2025-10-14 19:43:33 +08:00
CoolingBuffer.hpp ENH:Add 'Don't show again' to the step mesh 2025-03-27 22:17:07 +08:00
ExtrusionProcessor.hpp Fix speed up during overhang slowdown when curled perimeters is enabled. (#9215) 2025-04-05 14:46:02 +08:00
FanMover.cpp fixes compiler warnings (#9619) 2025-06-14 21:05:25 +08:00
FanMover.hpp Fix Fan mover when absolute E is used (#8359) 2025-02-15 13:08:01 +08:00
GCodeProcessor.cpp Don't emit the preheat command if ooze_prevention is disabled. (#11791) 2025-12-31 23:36:32 +08:00
GCodeProcessor.hpp Fix: Modify the method of obtaining the first_layer_time. 2025-10-28 15:30:05 +08:00
PchipInterpolatorHelper.cpp Enhancement: Adaptive Pressure advance (#5609) 2024-07-28 22:52:08 +08:00
PchipInterpolatorHelper.hpp Enhancement: Adaptive Pressure advance (#5609) 2024-07-28 22:52:08 +08:00
PostProcessor.cpp Use boost::nowide directly from boost (#9037) 2025-03-29 20:14:10 +08:00
PostProcessor.hpp Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
PressureEqualizer.cpp Fix extrusion rate smoothing unnecessarily slowing down the entire line (#11249) 2025-11-09 12:47:50 +08:00
PressureEqualizer.hpp Fix extrusion rate smoothing unnecessarily slowing down the entire line (#11249) 2025-11-09 12:47:50 +08:00
PrintExtents.cpp Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
PrintExtents.hpp Add the full source of BambuStudio 2022-07-15 23:42:08 +08:00
RetractWhenCrossingPerimeters.cpp Revert "Fix Compile Warnings (#5963)" 2024-08-12 00:00:20 +08:00
RetractWhenCrossingPerimeters.hpp ENH: speed gcode export up again 2023-04-17 15:39:02 +08:00
SeamPlacer.cpp Introduce a new seam alignment option: Aligned back (#10255) 2025-07-29 21:11:35 +08:00
SeamPlacer.hpp Remove unused parameter from place_seam method (#6421) 2024-08-18 16:32:56 +08:00
SmallAreaInfillFlowCompensator.cpp Small area flow compensator improvements (#11716) 2025-12-30 13:34:14 +00:00
SmallAreaInfillFlowCompensator.hpp Small area flow compensator improvements (#11716) 2025-12-30 13:34:14 +00:00
SpiralVase.cpp Skip the layer initial travel properly in vase mode (#10135) 2025-07-14 21:21:40 +08:00
SpiralVase.hpp Fixed a regression that non spiral vase mode was broken. #3091 2023-12-17 20:27:46 +08:00
ThumbnailData.cpp FIX: fix serveral issues in multi-plate slicing 2022-12-15 04:38:15 -05:00
ThumbnailData.hpp ENH: add initial layer time to plate_x.json and slice_info.config 2025-10-28 15:30:05 +08:00
Thumbnails.cpp Revert "Revert "Some flatpak fixing (#5510)"" 2024-07-16 22:39:43 +08:00
Thumbnails.hpp Revert "Revert "Some flatpak fixing (#5510)"" 2024-07-16 22:39:43 +08:00
TimelapsePosPicker.cpp ENH: TimelapsePosPicker, make timelapsePos far away from the camera 2025-10-28 15:29:51 +08:00
TimelapsePosPicker.hpp ENH: Improved safe position calculation for delayed photography 2025-10-03 22:19:23 +08:00
ToolOrdering.cpp ENH: get max additional fan 2025-10-28 15:29:48 +08:00
ToolOrdering.hpp ENH: get max additional fan 2025-10-28 15:29:48 +08:00
ToolOrderUtils.cpp ENH: refine filament sorting when flush volume is 0 2025-09-21 18:01:16 +08:00
ToolOrderUtils.hpp FIX: Fix missing std:: declarations in ToolOrderUtils 2025-09-18 23:01:00 +08:00
WipeTower.cpp FIX:When a smaller negative number is entered for the primer_tower_extra_rib_length, the program crashes. 2025-10-28 15:29:55 +08:00
WipeTower.hpp ENH: add wrapping detection 2025-09-30 15:32:44 +08:00
WipeTower2.cpp Wipe Tower Auto Brim bug-fix (Non BBL printers) (#11831) 2026-01-05 20:15:23 +08:00
WipeTower2.hpp Fix non bambu wipe tower issues (skirt overlapping with tower, extreme travel moves outside plate boundary) (#11748) 2025-12-30 09:28:09 +00:00