Illegal division by zero at Slic3r/lib/Slic3r/GCode.pm line 395 #1086

Closed
tareko opened this Issue Apr 2, 2013 · 3 comments

Projects

None yet

3 participants

@tareko

Hello all,

I'm using the latest master branch from git with a brand new .Slic3r directory (same problem happens with old configs). On Ubuntu 13.04. For some reason when only trying to output some STL's to GCode, I get the following error:

Illegal division by zero at Slic3r/lib/Slic3r/GCode.pm line 395

I can't attach the file here, but it is the X-Carriage.stl file from Prusa's single plate from iteration 3.

Here's the affected line:

$gcode .= $self->G1($wipe_path->[$_], undef, $retract->[2] * ($segment_length / $total_wipe_length), $retract->[3] . ";_WIPE");

So, seems to be a problem with "total_wipe_length", which is in turn set as $wipe_path->length a few lines earlier, but not sure where that would be set within the UI / Configs..

tarek : )

@ambrop72

This commit in my fork fixes this: ambrop72/Slic3r@1ae8ef5

@tareko

This appears to fix it for me.

@alexrj
Owner

Can you confirm that this is fixed in current HEAD? (Please, run Slic3r with the wipe option both enabled and disabled)

@alexrj alexrj closed this Apr 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment