fluidd-core / fluidd

Fluidd, the klipper UI.
https://docs.fluidd.xyz
GNU General Public License v3.0
1.41k stars 432 forks source link

Fluidd on Pi3B+ hangs from time to time, print continues #272

Closed vgroenewold closed 3 years ago

vgroenewold commented 3 years ago

This seems like a buffer issue, but I often (few times a day) have the problem that I execute something on the Fluidd UI (like bed leveling, or adjusting Z while printing, or... seems rather random) and the UI becomes unresponsive. I can still click around, but commands are not being send to the Pi nor received, prints always continue so my guess is that the Pi becomes too busy. But how can I diagnose that or even solve it?

edit: I did some extra diagnosis with Htop running at the same time in a shell and that simply freezes as well for instance when the print starts for heating up and leveling. No comms whatsoever during that time, is it moonraker blocking that maybe? Resources looked totally fine. The only way to get responsiveness back immediately it so disconnect the Pi from the printer.

Thanks

wlhlm commented 3 years ago

The htop session freezing (but not the printer) indicates to me that It could be a poor network connection. If you are using WIFI you can try to use cable and see if it improves things.

cadriel commented 3 years ago

Yep, I've seen this with a poor wifi connection too.

Suggest plugging in via ethernet and see if that resolves your issues. Also, make sure you've disabled sleep for your wifi adapter, this is a part of the latest fluiddpi releases - but if you're on an older image then it wouldn't have applied. You can do this by editing the /etc/rc.local file and adding this to the bottom of it;

# Disabling power management for wlan0
iw dev wlan0 set power_save off