Open zwimer opened 1 year ago
Add option to disable
if it's the default, i'd call it a bug.
The analysis is required for many of the features of dashboard to work. I wouldn't call the fact that it runs a bug, however it shouldn't cause octoprint to freeze.
@zwimer If you send your entire log file I may be able to look into why it freezes octoprint.
I think the best idea in the mean time is to add an option to disable it for files over a given size.
I won't be able to for a bit, but when my setup is ready again I will post those logs!
The Problem
When uploading large files, The dashboard plugin runs some analysis when uploading files, when these files are large this can be very slow. This entirely freezes/hangs octoprint for minutes on end. A log snippet is attached as an example:
Notice the 8 minute gap between the analysis starting and finishing. During this time, octoprint is otherwise frozen. This was for an 85 MB file on a raspberry pi 3b.
The Solution
Provide a way to disable analysis for files on upload.
Alternatives
I keep this plugin disabled sometimes, for uploads even larger than the 85 MB example above, this can hang octoprint for a very long time.