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.63k stars 1.92k forks source link

Divide by Zero error upon slicing #8435

Closed guaddy closed 2 years ago

guaddy commented 2 years ago

Description of the bug

When attempting to slicer any object with lightning infill set to any infill percentage, an "Divide by Zero" error shows up, stating to restart PrusaSlicer. After restarting PrusaSlicer, the error remains.

Project file & How to reproduce

test_item.zip

error_screenshot

Checklist of files included above

Version of PrusaSlicer

2.5.0-alpha2

Operating system

Windows 10 Enterprise

Printer model

Prusa i3 MK3S+

lukasmatena commented 2 years ago

@guaddy Thanks, reproduced. You are using automatic extrusion width (set by entering zero in Print Settings->Advanced->Extrusion width->Infill). Apparently this is not handled correctly. We will fix it.

guaddy commented 2 years ago

@lukasmatena I can confirm that this is the issue. Changing the extrusion widths to defined values makes the lightning infill work properly.

hejllukas commented 2 years ago

Thank you for reporting this issue. It was fixed with https://github.com/prusa3d/PrusaSlicer/commit/7783915a34c664d14e9e1a81d5da2c46282a33d8, and it will be part of the next alpha.