Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

afterPrintCancelled Script not running on Creator Pro #87

Open
HakuG opened this issue Sep 17, 2020 · 1 comment
Open

afterPrintCancelled Script not running on Creator Pro #87

HakuG opened this issue Sep 17, 2020 · 1 comment

Comments

@HakuG
Copy link

HakuG commented Sep 17, 2020

For some reason, I'm not able to get the afterPrintCancelled script to run on the Creator Pro. This is a problem, as it can leave the nozzle to clog unless done manually. Any advice?

2020-09-17 16:39:15,686 - octoprint.filemanager.analysis - INFO - Starting analysis of local:cur_print.gcode
2020-09-17 16:39:15,690 - octoprint.filemanager.analysis - INFO - Invoking analysis command: /opt/octoprint/venv/bin/python -m octoprint analysis gcode --speed-x=6000 --speed-y=6000 --max-t=10 --throttle=0.0 --throttle-lines=100 /home/octoprint/.octoprint/uploads/cur_print.gcode
2020-09-17 16:39:15,693 - octoprint.util.comm - INFO - Force-sending M108 to the printer
2020-09-17 16:39:15,722 - octoprint.printer.standard.job - INFO - Print job cancelled - origin: local, path: cur_print.gcode, owner: _api, user: _api
2020-09-17 16:39:15,744 - octoprint.events - INFO - Executing system command: /opt/octoprint/venv/bin/python ~/scripts/handle_event.py --file cur_print.gcode --status PrintCancelled --progress 0
2020-09-17 16:39:15,746 - octoprint.plugins.GPX - WARNING - Cancelling build by OctoPrint
2020-09-17 16:39:17,065 - octoprint.plugin - ERROR - Error while calling plugin GPX
Traceback (most recent call last):
File "/opt/octoprint/venv/lib/python2.7/site-packages/octoprint/plugin/init.py", line 224, in call_plugin
result = getattr(plugin, method)(*args, **kwargs)
File "/opt/octoprint/venv/lib/python2.7/site-packages/octoprint_GPX/init.py", line 178, in on_event
self.printer.cancel()
File "/opt/octoprint/venv/lib/python2.7/site-packages/octoprint_GPX/gpxprinter.py", line 202, in cancel
self._append(gpx.abort())
Timeout: Timeout
2020-09-17 16:39:17,098 - octoprint.util.comm - INFO - Externally triggered heatup detected
2020-09-17 16:39:17,148 - octoprint.events - INFO - Executing system command: /opt/octoprint/venv/bin/python ~/scripts/handle_event.py --file cur_print.gcode --status PrintFailed --progress 0

@markwal
Copy link
Owner

markwal commented Nov 2, 2020

Hmmm... This indicates that GPX sent the "cancel" to the printer, which is actually a reset. GPX wasn't able to reconnect with the printer after the reset and so sent a Timeout to OctoPrint which fails the print. OctoPrint doesn't send the afterPrintCancelled because it sees a failure, not a cancel. I wonder why your printer takes longer to respond after a reset than mine...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants