From 705c82688e0bf868acc299cc9c8cc46e0f70be54 Mon Sep 17 00:00:00 2001 From: packerlschupfer <83344883+packerlschupfer@users.noreply.github.com> Date: Wed, 22 Jul 2026 14:50:32 +0200 Subject: [PATCH] PartPlate::check_outside: guard m_plater null deref (fix CLI rotate SIGSEGV) (#14415) --- src/slic3r/GUI/PartPlate.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/PartPlate.cpp b/src/slic3r/GUI/PartPlate.cpp index 415e1ea0f5..a1211f4692 100644 --- a/src/slic3r/GUI/PartPlate.cpp +++ b/src/slic3r/GUI/PartPlate.cpp @@ -2662,7 +2662,8 @@ bool PartPlate::check_outside(int obj_id, int instance_id, BoundingBoxf3* boundi if (instance_box.min.z() < SINKING_Z_THRESHOLD) { // Orca: For sinking object, we use a more expensive algorithm so part below build plate won't be considered - if (plate_box.intersects(instance_box)) { + // m_plater is null in CLI mode. + if (m_plater && plate_box.intersects(instance_box)) { // TODO: FIXME: this does not take exclusion area into account const BuildVolume build_volume(get_shape(), m_plater->build_volume().printable_height(), m_extruder_areas, m_extruder_heights); const auto state = instance->calc_print_volume_state(build_volume);