Basic Information:
Printer Model: Anycubic Kobra Neo
MCU / Printerboard: TriGorilla V_3.0.6 (and Raspberry Pi Zero 2 W)
klippy.log (6.7 MB)
(Klippy log has had some information during the start of printing and after the fault removed to meet file size requirements for posting here, if any relevant information is missing please let me know)
Describe your issue:
I switched over to Klipper (Mainsail on Raspberry Pi Zero 2 W) a couple of weeks ago and have been having a great time with the firmware, so far everything has been going very smoothly and Iāve been getting much faster and higher quality prints.
With my basic setup all done I decided to add a webcam, mostly for the purposes of remote monitoring. I opted for a Pi Camera (V3), which I managed to get setup and configured with Crowsnest/Mainsail after a bit of messing around. I was considering setting up my own VPN tunnel to handle the webcam, but after seeing the functionality of OctoEverywhere I decided to use that for remote monitoring/control instead.
Now my issue has occurred now four times: the āMCU āmcuā shutdown: Timer too closeā error occurs only occasionally, but always when I am viewing the webcam stream using OctoEverywhere and I am not connected to my home network. Sometimes I can check on the stream 15 or 20 times during a print and there are no issues, but rarely it seems to be overloading the Pi and the print fails. My last print failure happened 7 hours and 39 minutes into a 9 hour print, and although I wasnāt looking at the webcam during the crash, no more than 10 minutes after I had left my home network did the crash occur, again leading me to believe this is an Octoprint/webcam overloading issue. (The log included is for this most recent faliure)
My understanding of this issue is that the Pi failed to communicate with the MCU within the designated timeframe required; this could be due to the Pi being overloaded, overheated, undervolted, or the SD card not being able to keep up with data transfer requirements.
- I have been logging the temperature of my Pi, and it rarely exceeds 51C with the average temp being between 46C and 48C, so I donāt believe this to be the cause.
- I am using a high quality 2.5A 5V power supply, and I doubt that between the Pi Cam and Pi there is enough current draw to significantly drop the voltage.
- The SD card I am using is a SanDisk Extreme 64Gb, V30 A2 rated card, which I would have thought would not be causing a data transfer bottleneck (I have not tested the performance of this card though)
- When running some rudimentary tests (using Mainsailās monitoring of CPU usage), I have found that although the Pi is normally only using between 2% and 25% of the CPU, when I connect to the OctoEverywhere client remotely, there can be spikes where the CPU using can hit the 95%+. This is what I personally believe to be the cause of my issue.
The Pi Camera ws calibrated using Crowsnest to use the ācamera-streamerā option which uses the Piās GPU to hardware encode the webcam into h.246 format video for streaming rather than the ātraditionalā mjpg protocol. The resolution is set quite low at 640x480 and I have the framerate limited to 5 fps. For my last print I switched over to mjpg protocol with the same camera resolution and framerate, however the issue still occurred.
- Has anyone else experienced this error with such a high level of intermittence and if so, how did you go about troubleshooting it?
- Can anyone gather any important information from my Klippy log which might help identify the cause of the problem?
- Does anyone have some general advice on this issue, or suggestions on how I might be able to mitigate it?