What is the problem?
When trying to print through the USB connection from OctoPrint everything will seemingly work (i.e. print starts without issues) until, at some "random" point during the print it will stop and the printer will just show a "KILLED" message in its display.
Logs seem to indicate that everything is fine until the printer starts complaining about checksum mismatch over and over on the same line. It's worth noting that not a single checksum error is reported before this point.
2020-10-21 00:16:00,632 - octoprint.util.comm - INFO - Got a resend request from the printer: requested line = 38125, current line = 38126
| Last lines in terminal:
| Recv: ok
| Send: N38123 G1 X109.834 Y97.76818
| Recv: ok
| Send: N38124 G0 F7200 X109.36 Y98.42572
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
2020-10-21 00:16:00,653 - octoprint.util.comm - INFO - Got a resend request from the printer: requested line = 38125, current line = 38126
| Last lines in terminal:
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.3237256
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
| Recv: ok
| Send: N38125 G1 F6000 X112.739 Y101.804 E1013.32372*56
| Recv: Error:checksum mismatch, Last Line: 38124
| Recv: Resend: 38125
2020-10-21 00:16:00,760 - octoprint.util.comm - WARNING - Printer keeps requesting line 38125 again and again, communication stuck
2020-10-21 00:16:00,761 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Error: Printer keeps requesting line 38125 again and again, communication stuck"
I compared it to the logs of a previous failed print and found an interesting similarity. Both times the line in which the print failed it was the bigger (in terms of number of characters) line that had been attempted on that print job.
On this particular job, print failed on this line: "N38125 G1 F6000 X112.739 Y101.804 E1013.3237256"
On a previous job, print failed on this line: "N10565 G1 F3600 X104.547 Y132.661 E1257.0129261"
Both lines are exactly 48 characters long, and all other lines up to that point had been 47 characters long or less.
I don't know if that might point to some buffering issues or some problem with the firmware, but it's worth noting that the exact same gcode files print just fine from the SD.
Logs are also spammed with thousands of occurrences of this exception right before the checksum errors show up but I feel like that's unrelated because they're not present during an earlier print failure.
2020-10-21 00:15:26,450 - tornado.application - ERROR - Future exception was never retrieved: Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/tornado/gen.py", line 1141, in run
yielded = self.gen.throw(*exc_info)
File "/home/pi/.local/lib/python2.7/site-packages/tornado/websocket.py", line 876, in wrapper
raise WebSocketClosedError()
WebSocketClosedError
What did you already try to solve it?
Replaced USB cable, tried a different port on the Raspberry Pi. Also tried different models in case there was something wrong with the slicing.
Have you tried running in safe mode and if so did it solve the issue?
I haven't tried safe mode.
Complete Logs
Octoprint.log: https://pastebin.com/bL3jJU35
Additional information about your setup
The printer is a Monoprice Maker Ultimate 2 running stock 1.6 firmware. It's connected to a Raspberry Pi 4 running OctoPrint 1.4.2