Prusa Mk3S+ "Should resend" (requesting line in the future)

What is the problem?

M112 sent to the printer due to Should resend line 35006 but no sufficient history is available, can't resend. Line to resend is 35006, current line is 15874, line history has 50 entries.

What's particularly awkward is that line '35006' seems to be in the future (current line: 15874).

This happens once every 100-200 hours.

Ideas what can cause it? (I've read "bad usb cable"). Any other ideas? It does not happen frequently.

What did you already try to solve it?

I changed the setting to ignore the errors, per OctoPrint Settings · Jyers/Marlin Wiki · GitHub -- but that's more a bandaid than solution.

Have you tried running in safe mode?

no - the issue is not easily reproducible. happens once every 100 hours or so

Did running in safe mode solve the problem?

n/a

Systeminfo Bundle

You can download this in OctoPrint's System Information dialog ... no bundle, no support!)
octoprint-systeminfo-20220921023652.zip (484.0 KB)

Additional information about your setup

OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible

2022-09-21 01:21:38,329 - octoprint.printer.standard.job - INFO - Print job selected - origin: local, path: URSA/GB3-input-onepiece_0.15mm_PLA_MK3S_42m--with-pause.gcode, owner: psla, user:
 psla
2022-09-21 01:21:38,330 - octoprint.plugins.excluderegion - INFO - File selected, resetting internal state
2022-09-21 01:21:38,340 - octoprint.util.comm - INFO - Changing monitoring state from "Operational" to "Starting"
2022-09-21 01:21:38,340 - octoprint.printer.standard.job - INFO - Print job started - origin: local, path: URSA/GB3-input-onepiece_0.15mm_PLA_MK3S_42m--with-pause.gcode, owner: psla, user:
psla
2022-09-21 01:21:38,364 - octoprint.plugins.PrintJobHistory - INFO - PrintJob 'GB3-input-onepiece_0.15mm_PLA_MK3S_42m--with-pause.gcode' started!
2022-09-21 01:21:38,368 - octoprint.util.comm - INFO - M110 detected, setting current line number to 0
2022-09-21 01:21:38,367 - octoprint.plugins.PrintJobHistory - INFO - Try reading Temperature from PreHeat-Plugin...
2022-09-21 01:21:38,370 - octoprint.plugins.PrintJobHistory - WARNING - ... PreHeat Button Plugin not installed/enabled
2022-09-21 01:21:38,371 - octoprint.plugins.excluderegion - INFO - Printing started
2022-09-21 01:21:38,377 - octoprint.util.comm - INFO - Changing monitoring state from "Starting" to "Printing"
2022-09-21 01:22:38,430 - octoprint.plugins.PrintJobHistory - INFO - Temperature read from Printer Bed: '60.0' Tool tool0: '215.0' after a delay of '60' seconds
2022-09-21 01:31:32,339 - octoprint.server.heartbeat - INFO - Server heartbeat <3
2022-09-21 01:38:06,984 - octoprint.util.comm - WARNING - Should resend line 35006 but no sufficient history is available, can't resend. Line to resend is 35006, current line is 15874, line
 history has 50 entries.
2022-09-21 01:38:06,984 - octoprint.util.comm - INFO - Changing monitoring state from "Printing" to "Error"
2022-09-21 01:38:06,986 - octoprint.util.comm - INFO - Force-sending M112 to the printer
2022-09-21 01:38:06,999 - octoprint.plugins.excluderegion - INFO - Printing stopped: event=Error
2022-09-21 01:38:07,014 - octoprint.util.comm - INFO - Changing monitoring state from "Error" to "Offline after error"
2022-09-21 01:38:07,015 - octoprint.util.comm - INFO - Got a resend request from the printer: requested line = 35006, current line = 15877
| Last lines in terminal:
| Send: N15873 G1 X126.439 Y97.768 E.03766*98
| Recv: T:209.9 /210.0 B:59.9 /60.0 T0:209.9 /210.0 @:64 B@:108 P:0.0 A:39.6
| Recv: echo:busy: processing
| Recv: T:210.1 /210.0 B:59.8 /60.0 T0:210.1 /210.0 @:61 B@:100 P:0.0 A:39.7
| Recv: echo:busy: processing
| Recv: T:210.0 /210.0 B:59.7 /60.0 T0:210.0 /210.0 @:63 B@:104 P:0.0 A:39.7
| Recv: echo:busy: processing
| Recv: T:210.4 /210.0 B:59.8 /60.0 T0:210.4 /210.0 @:56 B@:77 P:0.0 A:39.6
| Recv: echo:busy: processing
| Recv: T:210.5 /210.0 B:59.8 /60.0 T0:210.5 /210.0 @:56 B@:71 P:0.0 A:39.8
| Recv: echo:busy: processing
| Recv: T:211.2 /210.0 B:60.0 /60.0 T0:211.2 /210.0 @:45 B@:37 P:0.0 A:39.8
| Recv: Resend: 35006
| Should resend line 35006 but no sufficient history is available, can't resend
| Changing monitoring state from "Printing" to "Error"
| Send: M112
| Send: N15874 M112*46
| Send: N15875 M104 T0 S0*47
| Send: N15876 M140 S0*104
| Changing monitoring state from "Error" to "Offline after error"

I'd need a full serial.log of a reproduction, or at least the terminal contents. Sadly your bundle doesn't contain that.

But looking at the quoted log, you can see that indeed the printer firmware is requesting this line number for whatever reason. More context in shape of logs could possibly give further hints as to why, bit it reeks of either data corruption on the serial line (bad cable), or a weird firmware bug.