Firmware crash when loading from SD while also loading from filament
Hi all,
sometimes I see my MK3S crashing its firmware. Luckily this happened before printing so nothing is lost. It happened for the third time, but this time I think I recall the steps to reproduce, and I also have a memory dump.
In short, it seems to be happening when the firmware wants to show the dialog "is the filament color correct?" while also loading a gcode file from the SD card i.e. when the progress bar is visible.
Steps:
- Turn on the printer, with an SD card inserted and at least one gcode file. The larger the file, the better.
- Unload any filament if present
- Load a filament
- Select the large gcode file.
- If the timing is right, the printer will crash right away and displays the message "firmware crash detected" etc.
I've managed to produce a crash dump file, I attached it here: crashdump_loadload
Not sure if it helps, but I also have a memory dump fresh after a reset: crashdump_after_reset
While trying again, the firmware crashed one more time. This time I don't remember what was I doing, but I wasn't messing around with the filament, so this crash dump may be unrelated: crashdump_another (this one has two dumps, don´t remember if I just typed D21 twice or it's two different crashes)
This happened with firmware 3.10.1-4697, so not the latest firmware. I don't know if the related bug has been fixed already.
The workaround is simple: just wait until the filament extrudes with the correct color before choosing something to print.
Hope that helps.
Cheers!