Closed Ximidar closed 6 years ago
Alright, this is still interrupting the previous script. I'll work on another solution @peries
The problem is that Octoprint is not deleting the Queue when firing off the cancel print script. I added this function:
def kill_all_remaining_tasks(self):
while not self._command_queue.empty():
item = self._command_queue.get()
self._logger.info("Deleting Task: " + str(item))
self._command_queue.task_done()
self._command_queue.join()
return
That seems to kill of any remaining tasks before firing the cancel GCODE script.
@peries I loaded the new octoprint on your machine. I'm not seeing the problem anymore, could you test and confirm that the problem is gone?
Fixed.
Canceling in the middle of start GCODE causes octoprint to inject the Cancel GCODE commands into the buffer. This causes the printer to be set up incorrectly and results in a bed crash.
Thanks @peries for getting the serial data.