prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.72k stars 1.93k forks source link

String too long error when a line in "color change" is long #10592

Open TMProjection opened 1 year ago

TMProjection commented 1 year ago

Description of the bug

prusaslicer 2 6 0 beta 1 bug in my color change gcode i have long comments, ie:

; G1 X0.000 Y350.000 E0; move extruder to back of printer for INSERTING MAGNETS ENDER 5 PLUS BED SIZE COORDINATES G1 X0.000 Y000.000 E0; move extruder to front of printer for CHANGING FILAMENT ENDER 5 PLUS BED SIZE COORDINATES ; G1 X0.000 Y210.000 E0; move extruder to back of printer for INSERTING MAGNETS PRUSA MK3S+ BED SIZE COORDINATES ; G1 X250.000 Y000.000 E0; move extruder to front of printer for CHANGING FILAMENT PRUSA MK3S+ BED SIZE COORDINATES ; PLAY NOTIFICATION START M300 S1046 P150 M300 S1318 P150 M300 S1567 P150 M300 S2093 P150 M300 S2637 P150 M300 S3135 P400 M300 S2637 P400 M300 S1046 P150 M300 S1244 P150 M300 S1661 P150 M300 S2093 P150 M300 S2489 P150 M300 S3322 P400 M300 S2489 P400 M300 S1174 P150 M300 S1396 P150 M300 S932 P150 M300 S2349 P150 M300 S2793 P150 M300 S1864 P150 M300 S0 P400 M300 S1864 P120 M300 S0 P60 M300 S1864 P120 M300 S0 P60 M300 S1864 P120 M300 S0 P60 M300 S4186 P900 ; PLAY NOTIFICATION END

; EITHER THIS ; M1; user stop ; M105; return to current temp

; EITHER THIS M600 ; stock command for filament change

this produces the error you see here, however if i remove the comments:

; G1 X0.000 Y350.000 E0; move extruder to back of printer for INSERTING MAGNETS ENDER 5 PLUS BED SIZE COORDINATES G1 X0.000 Y000.000 E0; move extruder to front of printer for CHANGING FILAMENT ENDER 5 PLUS BED SIZE COORDINATES ; G1 X0.000 Y210.000 E0; move extruder to back of printer for INSERTING MAGNETS PRUSA MK3S+ BED SIZE COORDINATES ; G1 X250.000 Y000.000 E0; move extruder to front of printer for CHANGING FILAMENT PRUSA MK3S+ BED SIZE COORDINATES

so it looks like

; G1 X0.000 Y350.000 E0 G1 X0.000 Y000.000 E0 ; G1 X0.000 Y210.000 E0 ; G1 X250.000 Y000.000 E0

issue goes away sheath petg.zip

Project file & How to reproduce

copy my custom gcode, add a "color change" at a certain layer, slice itll go away if you remove long comments

Checklist of files included above

Version of PrusaSlicer

2.6.0 beta 1

Operating system

Windows 10

Printer model

Prusa MK3S+, Ender 5 Plus Custom

TMProjection commented 1 year ago

tried beta 2, and beta 3, still the same