From e6e6210120f96fea3c563d45107e5b8a637455c6 Mon Sep 17 00:00:00 2001 From: Derrick Date: Fri, 6 Feb 2026 16:55:35 +0800 Subject: [PATCH] Fix extruder name >2 extruder printers (#12190) Fix for memory access violation when using printers other than bbl printers with >2 extruders. JIRA-24 --- src/slic3r/GUI/GLCanvas3D.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index a855459195..64b511ebe6 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -9523,7 +9523,14 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state) } } } - std::string extruder_name = extruder_name_list[extruder_id-1]; + std::string extruder_name; + if(wxGetApp().preset_bundle->is_bbl_vendor()){ + extruder_name = extruder_name_list[extruder_id-1]; + } + else{ + extruder_name += (boost::format(_u8L("Tool %d"))%extruder_id).str(); + } + if (error_iter->second.size() == 1) { text += (boost::format(_u8L("Filament %s is placed in the %s, but the generated G-code path exceeds the printable range of the %s.")) %filaments %extruder_name %extruder_name).str(); }