Printer crashes during prints

Basic Information:

Printer Model: Sovol SV08
MCU / Printerboard: No idea
Host / SBC: BigTreeTech CB1 (DT)
klippy.log

Describe your issue:

I got my printer a couple of weeks ago and upgraded it to an enclosure. I also installed a new EMMC (32GB) with mainline klipper. Printer seems to work correctly and it does really nice prints when it’s working. Yesterday for example I ran 4 print jobs (short ones at ~30-40mins each) without any issues.

Today it crashed during bed leveling procedure of the first print. I turned it off and on again and gave it another go. It printed the first 2 layers and crashed again. When it crashes the case fan goes out (I think the one on the hotend keeps on running) and the light turns off as well. There’s no text on the display, but its light is still on as well). If I only use WiFi that stops working as well. Machine doesn’t react to pings anymore. HOWEVER, when I am connected through the LAN port, the connection remains active. The linux system seems to be working still.

klippy.zip (834.2 KB)

The third print has now been running for over an hour. I took down wlan0 and removed the kernel modules for WiFi.

I was unable to find any Klipper errors or crash here.


Btw, you probably want to disable the:

[delayed_gcode bed_mesh_init]
initial_duration = .01
gcode = 
	BED_MESH_PROFILE LOAD=default

To avoid:

bed_mesh: Unknown profile [default]
Script running error
Traceback (most recent call last):
  File "/home/biqu/klipper/klippy/extras/delayed_gcode.py", line 34, in _gcode_timer_event
    self.gcode.run_script(self.timer_gcode.render())
  File "/home/biqu/klipper/klippy/gcode.py", line 230, in run_script
    self._process_commands(script.split('\n'), need_ack=False)
  File "/home/biqu/klipper/klippy/gcode.py", line 212, in _process_commands
    handler(gcmd)
  File "/home/biqu/klipper/klippy/gcode.py", line 140, in <lambda>
    func = lambda params: origfunc(self._get_extended_params(params))
  File "/home/biqu/klipper/klippy/extras/bed_mesh.py", line 1760, in cmd_BED_MESH_PROFILE
    options[key](name)
  File "/home/biqu/klipper/klippy/extras/bed_mesh.py", line 1716, in load_profile
    raise self.gcode.error(
gcode.CommandError: bed_mesh: Unknown profile [default]

Was this a recent message? Gotta check. Maybe it was from before I did all of the setup stuff.

I always find this in the journal at the time of the crash, but I don’t know whether it was the cause or result of the problem:

Aug 27 21:54:22 sovol-sv08 python\[7688\]: \[klippy_connection.py:\_on_connection_closed()\] - Klippy Connection Removed
Aug 27 21:54:22 sovol-sv08 systemd\[1\]: klipper.service: Main process exited, code=killed, status=11/SEGV
Aug 27 21:54:22 sovol-sv08 systemd\[1\]: klipper.service: Failed with result ‘signal’.
Aug 27 21:54:22 sovol-sv08 systemd\[1\]: klipper.service: Consumed 36min 29.142s CPU time.
Aug 27 21:54:32 sovol-sv08 systemd\[1\]: klipper.service: Scheduled restart job, restart counter is at 1.
Aug 27 21:54:32 sovol-sv08 systemd\[1\]: Stopped Klipper 3D Printer Firmware SV1.
Aug 27 21:54:32 sovol-sv08 systemd\[1\]: klipper.service: Consumed 36min 29.142s CPU time.
Aug 27 21:54:32 sovol-sv08 systemd\[1\]: Started Klipper 3D Printer Firmware SV1.
Aug 27 21:54:33 sovol-sv08 python\[7688\]: \[klippy_connection.py:\_do_connect()\] - Klippy Connection Established
Aug 27 21:54:40 sovol-sv08 python\[7688\]: \[klippy_connection.py:\_request_initial_subscriptions()\] - Webhooks Subscribed
Aug 27 21:54:40 sovol-sv08 python\[7688\]: \[klippy_connection.py:\_request_initial_subscriptions()\] - GCode Output Subscribed
Aug 27 21:54:40 sovol-sv08 python\[7688\]: \[klippy_connection.py:\_check_ready()\] -
Aug 27 21:54:40 sovol-sv08 python\[7688\]: Can not update MCU ‘extra_mcu’ config as it is shutdown
Aug 27 21:54:40 sovol-sv08 python\[7688\]: Once the underlying issue is corrected, use the
Aug 27 21:54:40 sovol-sv08 python\[7688\]: “FIRMWARE_RESTART” command to reset the firmware, reload the
Aug 27 21:54:40 sovol-sv08 python\[7688\]: config, and restart the host software.
Aug 27 21:54:40 sovol-sv08 python\[7688\]: Error configuring printer

You must not format every line as Preformatted Text. That makes the whole confusing.
Just do it with the whole block.

That’s actually not what I did. I selected the whole block and clicked on “Preformatted Text”.

Now you have

Blockquote

Yes, I changed it.

Sigh - I did it for you. Please see: How-To Ask for Help

That’s actually what I had done originally. Weird.

Wow, segmentation fault.
Something is really wrong, but I don’t know what to suggest.
I can only say that if it is possible to do a clean system install, that could help.

The sovol “addons” do not touch cffi, so I doubt it is the reason: Sovol-SV08-Mainline/files-used/sovol-addons/probe_pressure.py at main · Rappetor/Sovol-SV08-Mainline · GitHub

It’s basically a fresh install. I bought a new EMMC (32GB, it came with an 8GB one) and did everything from scratch following this guide:

The randomness of it makes me believe that it might not actually be a software issue. Could also be memory or maybe even a lose connection somewhere.

Today it’s also printing just fine after I had taken down the WiFi interface (wlan0). That trick also did it yesterday. Maybe it’s the WiFi module? One day it crashed when I was uploading prints.