Skip to content

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

@guysoft

Description

@guysoft

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions