Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

path planner allows user to set the desired movement speed to 0 and then crashes on the next move calculation #187

Open
raabomat opened this issue Mar 24, 2019 · 3 comments

Comments

@raabomat
Copy link

raabomat commented Mar 24, 2019

SerialError.zip

With the attached gcode and redeem config (Umikaze 2.2.1-RC2) i get a serial error. Terminal log:

Changing monitoring state from "Operational" to "Printing from SD" Send: M23 /lcl/ae10_3dbenchy.gcodeRecv: File opened:/usr/share/models/AE10_3DBenchy.gcode Size:4786997 Recv: File selected[...] Send: M24[...] Recv: ok : M24 in progress[...] Recv: End stop Y1 hit![...] Recv: End stop X1 hit! Recv: End stop Y1 hit! Recv: End stop X1 hit![...] Recv: End stop Z1 hit![...] Recv: End stop Z1 hit![...] Unexpected error while writing to serial port: SerialException: 'write failed: [Errno 5] Input/output error' @ comm.py:_do_send_without_checksum:3228Please see https://faq.octoprint.org/serialerror for possible reasons of this.Unexpected error while reading serial port, please consult octoprint.log for details: SerialException: 'read failed: [Errno 5] Input/output error' @ comm.py:_readline:2605Please see https://faq.octoprint.org/serialerror for possible reasons of this.Connection closed, closing down monitorChanging monitoring state from "Printing from SD" to "Offline (Error: SerialException: 'read failed: [Errno 5] Input/output error' @ comm.py:_readline:2605)"Closing down send loop

@ThatWileyGuy
Copy link
Member

Looks like a crash in the path planner. I'm debugging it.

You might want to look into your start script, though - G1 Z15.0 F{travel_speed} ;move the platform down 15mm doesn't seem to be what you wanted :)

@ThatWileyGuy
Copy link
Member

Actually, looks like that's the entire issue - that line is managing to set the move speed to 0 and then try to move the Z axis, and the path planner gets upset because the move will take infinitely long.

There are actually two of these - you'll want to fix both.

G1 Z15.0 F{travel_speed} ;move the platform down 15mm
G92 E0                  ;zero the extruded length
G1 F200 E3              ;extrude 3mm of feed stock
G92 E0                  ;zero the extruded length again
G1 F{travel_speed}

@ThatWileyGuy
Copy link
Member

Retitling the issue because it's a bug we'll want to address...

@ThatWileyGuy ThatWileyGuy changed the title Serial Error on start of print path planner allows user to set the desired movement speed to 0 and then crashes on the next move calculation Mar 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants