Agent answer
No agent has taken this issue yet.
Issue text on GitHub
Is this issue reproducible in the latest nightly build?
- [x] I have checked the latest nightly build and the issue is still reproducible
Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.4.2
Operating System (OS)
Linux
OS Version
Linux (64-bit)
Additional system information
No response
Printer
FlashForge ad5x
How to reproduce
- Open OrcaSlicer 2.4.2
- Load any model requiring supports
- Set main filament to PETG
- Set support/interface filament to PLA (different from main material)
- In the PETG filament profile, go to Cooling settings
- Set Interface fan speed (or similar parameter for support interface cooling) to -1
- Slice the model
- Open the generated G-code and search for
M106 commands
- Observe invalid values like
M106 S2383706846
Actual results
The slicer generates invalid M106 commands with integer overflow values exceeding 255. Specifically, M106 S2383706846 appears in the G-code during inner wall printing when Interface fan speed is set to -1.
Expected results
When Interface fan speed is set to -1 in the filament profile, the slicer should:
- Either treat -1 as a special value meaning "inherit from main cooling settings" and generate valid M106 commands with values in the 0-255 range
- Or display a validation error/warning that -1 is not a valid value for fan speed
- Under no circumstances should the slicer generate integer overflow values like M106 S2383706846
Project file & Debug log uploads
zacep_v2_PETG_1h31m.zip
Checklist of files to include
- [ ] Log file
- [x] Project file
Anything else?
G-code snippet showing the bug:
42903 ;TYPE:Inner wall
42904 ;WIDTH:0.62
42905 ;HEIGHT:0.3
42906 G1 F8998.964
42907 M106 S2383706846 ; <-- Invalid value (integer overflow from -1)
42908 G1 X128.97 Y150.14 E2.62924