I have discovered a memory leak caused by the Automatic shutdown plugin.
If you install the Dashboard plugin, which allows you to view the raspberry pi RAM usage and you also install the Autoshutdown Plugin, you will notice that every time you refresh your browser, the pi RAM usage goes up by almost 10%, so after frequent remote logins you can crash the raspberry pi as it runs out of RAM.
I have the latest download of Octoprint and have disabled all other plugins, if I disable Autoshutdown, this memory leak does not occur.
I have notified the author of this plugin on GitHub but wanted to post it here for two reasons:
my raspberry Pi would crash mid print and the printer would freeze with the heaters on and I could never figure out why - this has been reported by many other users and I believe this memory leak is the issue.
I fear the the author of this plugin no longer maintains it as the posts on gitHub are old; I really love and would like to use this plugin and was hoping that someone would be interested in looking at the source code and maybe fixing the issue?
Any help would be appreciated.
p.s. to reproduce the issue, you should monitor the pi RAM use with the Dashboard plugin, otherwise you would need to refresh your browser multiple times until you eventually run out of RAM and crash the pi.
What is the problem?
What did you already try to solve it?
serial.log or output on terminal tab at a minimum, browser error console if UI issue ... no logs, no support!)
Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, browser, operating system, ... as much data as possible)