1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Division by zero

Discussion in 'Troubleshooting' started by kelly, Nov 5, 2013.

Thread Status:
Not open for further replies.
  1. kelly

    kelly New Member

    Joined:
    Oct 15, 2013
    Messages:
    16
    Likes Received:
    4
    This was working until I replaced the extruder bolt.

    Now I get the following on any file I try and slice.

    05:13:30.707 : Slic3r command:C:\Program Files\Repetier-Host\Slic3r\slic3r.exe --load "C:\Users\robo3d\work\slic3r.ini" --print-center 114,127 -o "C:\Users\robo3d\work\composition.gcode" "C:\Users\robo3d\work\composition.obj"
    05:13:31.768 : <Slic3r> => Processing triangulated mesh
    05:13:31.862 : <Slic3r> => Generating perimeters
    05:13:38.133 : <Slic3r> => Detecting solid surfaces
    05:13:38.133 : <Slic3r> => Preparing infill surfaces
    05:13:38.133 : <Slic3r> => Detect bridges
    05:13:38.133 : <Slic3r> => Generating horizontal shells
    05:13:38.133 : <Slic3r> => Combining infill
    05:13:38.133 : <Slic3r> => Infilling layers
    05:13:38.476 : <Slic3r> => Generating skirt
    05:13:38.476 : <Slic3r> => Exporting G-code to C:\Users\robo3d\work\composition.gcode
    05:13:38.507 : <Slic3r> Illegal division by zero at C:/PROGRA~1/Repetier-Host/Slic3r/lib/std/Slic3r/GCode.pm line 257.

    Generated Slic3r Code:
    ; generated by Slic3r 0.9.10b on 2013-11-05 at 05:13:38

    ; layer_height = 0.3
    ; perimeters = 2
    ; top_solid_layers = 2
    ; bottom_solid_layers = 2
    ; fill_density = 0.5
    ; perimeter_speed = 30
    ; infill_speed = 40
    ; travel_speed = 140
    ; nozzle_diameter = 0.4
    ; filament_diameter = 1.75
    ; extrusion_multiplier = 1
    ; perimeters extrusion width = 0.42mm
    ; infill extrusion width = 0.42mm
    ; solid infill extrusion width = 0.42mm
    ; top infill extrusion width = 0.42mm
    ; first layer extrusion width = 0.60mm

    G21 ; set units to millimeters
    M107
    M104 S190 ; set temperature
    G28 ; home all axes
    G1 Z5 F5000 ; lift nozzle
    M109 S190 ; wait for temperature to be reached
    G90 ; use absolute coordinates
    G92 E0
    M82 ; use absolute distances for extrusion

    I have tried reinstalling Repetier and upgrade the slic3r program.
    The file in the above message does not exist on my system???

    What have I done?
     
  2. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,277
    Just a guess but there might be an issue in your STL file. Install netfabb basic and run the stl repair tool and see if that fixes it.
     
  3. Das Wookie

    Das Wookie Active Member

    Joined:
    Feb 21, 2013
    Messages:
    231
    Likes Received:
    38
    Can you attach your STL so others might examine it and see how it slices on another system.
     
  4. kelly

    kelly New Member

    Joined:
    Oct 15, 2013
    Messages:
    16
    Likes Received:
    4
    It seems to be any file I try and slice but here is one of them.

    The Netfabb basic said their was errors, told it to repair it but I can not find the repaired file to give to Repetier.
     

    Attached Files:

  5. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,277
    Part > Export Part > As STL

    Edit: I just sliced the stl with no errors.
     
  6. kelly

    kelly New Member

    Joined:
    Oct 15, 2013
    Messages:
    16
    Likes Received:
    4
    Same above error with the repaired file in Repetier.

    Why would changing out the extruder bolt cause this, it does not seem like it would.
     
  7. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,277
    It really should have no effect.

    Let's try and troubleshoot.

    First off let's reboot everything. Disconnect the printer from repetier, power it off, unplug it, then restart your computer.

    In repetier let's delete your slicer config file and make a new one based off the default.

    I uploaded my speed file so you can see what i'm using there thanks to jeff's help

    Just follow the getting started guide and triple check all your values to make sure the printer shape is defined properly.

    Let's see if it's a config issue...
     

    Attached Files:

  8. kelly

    kelly New Member

    Joined:
    Oct 15, 2013
    Messages:
    16
    Likes Received:
    4
    Ok did what you asked, it still fails the same.

    Here is my new slic3r.ini file.

    Is their registry entries I need to delete?
     

    Attached Files:

  9. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,277
    Are you able to slice anything or do you get that error every time?

    Might be time to reinstall repetier and Slicer.
     
  10. Mike Kelly

    Mike Kelly Volunteer

    Joined:
    Mar 11, 2013
    Messages:
    6,967
    Likes Received:
    2,277
    Using your config file I was able to get the div by 0 error. I think there's a couple settings in your slic3r config that are causing this. I've uploaded my config for you to compare
     

    Attached Files:

  11. kelly

    kelly New Member

    Joined:
    Oct 15, 2013
    Messages:
    16
    Likes Received:
    4
    Finally got it to would. :)

    I went and removed Repetier unsing windows uninstall.
    When went into the AppData/local and deleted Repetier directory.
    Then went into the AppData/Roaming and deleted the Slic3r directory.
    The AppData is normally hidden directory so click on location bar at top of windows explorer and type it in.
    It is in your home directory /users/robo3d/appdata in my case.

    Click the start button and type in regedit, back the registry up first by exporting it or create a windows save point.
    Do a find for slic3r and delete HKEY_USERS\S-1-5-21-2225140248-3793946413-4103980169-1000\Software\Repetier
    The long string of numbers may not match your system so do the find.

    Restart computer and install Repetier and configure it.

    Thank you very much for the help.
     
    2 people like this.
Thread Status:
Not open for further replies.

Share This Page