Prusa mk3s M112 crash when start printing, working fine with SD card

What is the problem?

I use prusaslicer, and print straight from there. everything was working fine, until the printer start to give error

M112 called. Emergency Stop.

when its time to start printing.

What did you already try to solve it?

Printing with SD card works fine. Tried to change USB port, and remove webcam

Complete Logs

Octoprint terminal:

Recv: tmc2130_home_exit tmc2130_sg_homing_axes_mask=0x02
Recv: ok
Send: N126 M104 S240.0*120
Send: N127 M105*35
Send: N128 M105*44
Send: N129 M105*45
Recv: echo:busy: processing
Send: N130 M105*37
Send: N131 M105*36
Recv: echo:busy: processing
Send: N132 M105*39
Send: N133 M105*38
Send: N134 M105*33
Recv: echo:busy: processing
Send: N135 M105*32
Send: N136 M105*35
Recv: echo:busy: processing
Send: N137 M105*34
Send: N138 M105*45
Send: N139 M105*44
Recv: echo:busy: processing
Send: N140 M105*34
Send: N141 M105*35
Send: N142 M105*32
Recv: echo:busy: processing
Send: N143 M105*33
Send: N144 M105*38
Recv: echo:busy: processing
Send: N145 M105*39
Send: N146 M105*36
Recv: echo:busy: processing
Send: N147 M105*37
Recv: ok
Recv: Full RX Buffer
Recv: ok
Recv: ok T:159.5 /240.0 B:75.9 /75.0 T0:159.5 /240.0 @:25 B@:0 P:41.7 A:39.7
Send: N148 M105*42
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N149 M105*43
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N150 M105*35
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N151 M105*34
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N152 M105*33
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N153 M105*32
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N154 M105*39
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N155 M105*38
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N156 M105*37
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N157 M105*36
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N158 M105*43
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N159 M105*42
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N160 M105*32
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N161 M105*33
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N162 M105*34
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N163 M105*35
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N164 M105*36
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N165 M105*37
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N166 M105*38
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N167 M105*39
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N168 M105*40
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N169 M105*41
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N170 M105*33
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N171 M105*32
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N172 M105*35
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N173 M105*34
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N174 M105*37
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N175 M105*36
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N176 M105*39
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N177 M105*38
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N178 M105*41
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N179 M105*40
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N180 M105*46
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N181 M105*47
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N182 M105*44
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N183 M105*45
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N184 M105*42
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N185 M105*43
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N186 M105*40
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N187 M105*41
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N188 M105*38
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N189 M105*39
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N190 M105*47
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N191 M105*46
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N192 M105*45
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N193 M105*44
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N194 M105*43
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N195 M105*42
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N196 M105*41
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N197 M105*40
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N198 M105*39
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N199 M105*38
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N200 M105*37
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N201 M105*36
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N202 M105*39
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N203 M105*38
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N204 M105*33
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N205 M105*32
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N206 M105*35
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N207 M105*34
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N208 M105*45
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N209 M105*44
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N210 M105*36
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Recv: ok
Send: N211 M105*37
Recv: Error:Line Number is not Last Line Number+1, Last Line: 127
Recv: Resend: 128
Printer requested line 128 but no sufficient history is available, can't resend
Changing monitoring state from "Printing" to "Error: Printer requested line 128 but no sufficient history is available, can't resend"
Send: M112
Send: N212 M112*32
Send: N213 M104 T0 S0*33
Send: N214 M140 S0*98
Changing monitoring state from "Error: Printer requested line 128 but no sufficient history is available, can't resend" to "Offline (Error: Printer requested line 128 but no sufficient history is available, can't resend)"
Connection closed, closing down monitor
Closing down send loop
``

Octoprint State:  **Offline (Error: Printer requested line 128 but no sufficient history is available, can't resend)**
### Additional information about your setup
<small>Octoprint: 1.4.2, Prusa mk3s: 3.9.0</small>

Could you please also share octoprint.log and serial.log - and please as files.

thanks for the answer..
i have seen other users have problems with the USB cable..so i change the USB cable connecting power charger and raspberry (not raspberry and prusa printer)..
now i started my first print and looks to working fine (at least it passed the critical point)..
I guess the old usb cable was dead

1 Like

unfortunately the problem hasnt been solved. It just dont happen everytime..
here is my octoprint.log https://www.dropbox.com/s/xctjyg52i5ummgi/octoprint.log?dl=0

and the serial.log https://www.dropbox.com/s/5amtlft4fa785ht/serial%20%281%29.log?dl=0

This issue will be solved with the next Prusa firmware update:

You may run on that beta

FINALLY...ive spend so much time trying to figure out what is it..
its doesnt happen all the time..this is the first problem..i think it happens when you power up raspberry and printer.. If you do a second print i think it works fine..
Then i started looking for plugins..if any update causing this e.g. octolapse etc..
nothing..
No, it looks like Prusa 3.9 causing that..
Thank you!

1 Like

It might come as a shock to some, but yes, oftentimes issues with printers are caused by the firmware, not OctoPrint.

2 Likes

yes..it was a shock to me.. firstly because i dont know why, it didnt happen (or i didnt realize) it after the firmware update; and secondly prusa support didnt say anything about that. I cannot imagine noone mentioned to prusa before me, in order to guide me correctly. They only said something like: "try printing with the sd, if its ok, then its not prusa's problem as octoprint is not our product"

my conclusion out of this: dont be in a hurry to update anything. as many people say: if it works, leave it alone

is 3.9.1 supposed to fix this? i'm having the exact same problem:( and running prusa mk3s 3.9.1 firmware against latest octoprint.. My log matches the log above, except that it happens in later lines. (usually makes it ~15-20 minutes into the print before it shows this issue, and I did have one successful 9hr print since installing the updates.. (vs 8-9 failures so far))

3.9.1 seems to be buggy. It even seems to have brought back the issue with sending a second 'start' command while it's already printing, which led to a number of failed prints for me. I've created an issue on GitHub, even chatted their support (which kinda made me wonder wether the CS really does read their GitHub issues because that dude was completely unaware of several reports of the same)...

I've had my MK3S for less than a month and sometimes I do regret forking that much money on a printer that gives me a lot more trouble than my own custom designed/built corexy machine...

actually, i thought the 3.9.1 would solve this bug..but no...its still buggy..
(i will also put the [SOLVE] out of my title..)
im thinking if its goog to go back to 3.7.X versions..

Maybe this solution helps:

I did a reboot on octopi yesterday (I had updated but not rebooted before) - I've had two successful prints so far.. I'm keeping an eye out still.

i have downgraded the firmware to 3.8.1 as a temporary solution, still now (after ~5 prints) i have none m112 errors..