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

OSError: Generic Packet error on gpx.write(data) #95

Open
guysoft opened this issue Sep 29, 2022 · 0 comments
Open

OSError: Generic Packet error on gpx.write(data) #95

guysoft opened this issue Sep 29, 2022 · 0 comments

Comments

@guysoft
Copy link

guysoft commented Sep 29, 2022

Hey all,
After printing a while I got this issue:
Print hauled and failed.

2022-09-29 11:02:37,953 - octoprint.util.comm - INFO - Externally triggered heatup detected
2022-09-29 11:06:00,957 - octoprint.util.comm - ERROR - Unexpected error while writing to serial port
Traceback (most recent call last):
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint/util/comm.py", line 4873, in _do_send_without_checksum
    result = self._serial.write(to_send)
  File "/home/pi/oprint/lib/python3.7/site-packages/octoprint_GPX/gpxprinter.py", line 138, in write
    self._append(gpx.write(data))
OSError: Generic Packet error
2022-09-29 11:06:01,165 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Offline after error"

The lines are from here:
https://github.com/markwal/OctoPrint-GPX/blob/master/octoprint_GPX/gpxprinter.py#L138

Perhaps its worth to add a try/catch there and repeat the send? Or is there a better solution?

Thanks!

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

1 participant