j7126 / OctoPrint-Dashboard

A dashboard for Octoprint
GNU Affero General Public License v3.0
288 stars 39 forks source link

Slow/laggy octorpint web interface when using 1.18.1 #267

Closed samwiseg0 closed 3 years ago

samwiseg0 commented 3 years ago

Describe the bug After upgrading to 1.18.1 and doing any print that takes some time such as an hour or so the webUI is very sluggish and unresponsive. If I revert back to 1.17.0 the issue goes away and the webUI is responsive as it should be.

I have tried removing all the widgets in the dashboard to see if one in particular was causing the issue. That did not seem to change the responsiveness. I know there was a bug fix with the webcam in the last release but that did not seem to make a difference either.

I checked the network tab in the console as well and nothing seemed out of place. Chrome and safari struggled to even show the developer tools. That seems to indicate its bogging down the browser for some reason.

To Reproduce Steps to reproduce the behavior:

  1. Load octoprint UX
  2. Run a print job for some time ~1 hour
  3. Observe that the web interface is not very responsive
  4. This will happen whether you have the browser open or you load the page fresh. It seems more tied to how long you have a print job going.

Expected behavior The webUI should be as responsive as it was with 1.17.0

Screenshots

N/A

Files (please attach the following Files or screenshots when applicable): NA

OctoPrint server and Plugins:

Desktop (please complete the following information):

Logs octoprint (1).log

Additional context NA

Willmac16 commented 3 years ago

Can you elaborate on the procedure to produce this error: Does it happen when you leave the window open for an hour? or would it also happen if you opened up the octoprint web interface an hour into an ongoing print?

Could you also attach a browser console log so we might better track down the issue.

samwiseg0 commented 3 years ago

Can you elaborate on the procedure to produce this error: Does it happen when you leave the window open for an hour? or would it also happen if you opened up the octoprint web interface an hour into an ongoing print?

This happens when regardless of the window being open for an extended period of time or not. It seems more related to how long a print job is going regardless if the UI is loaded or not. I have been closing the window because at some point it completely locks up. If I open the page fresh it takes a long time to load and then when it becomes hard to navigate and then locks up completely after 1-2 minutes.

Could you also attach a browser console log so we might better track down the issue.

Sure. I can do this tomorrow as I already reverted back to 1.17.0 and I have a print job going.

I was receiving warnings from the terminal saying that communication was too slow and it was failing back to the basic terminal view. This was understandable as the webUI was unusable. But there were no errors other than that warning in the console.

To add.

My pi is hardwired. I have not experienced any issues with the UI until I updated to 1.18.x. Reverting back to 1.17.0 resolves the issue.

samwiseg0 commented 3 years ago

After testing a few gcode files that gave me issues yesterday I am unable to reproduce it. I completely wiped the plugin and config and started fresh this morning and that may have "fixed" whatever issue was happening. Thank you for your time in looking into this.

If it crops back up I will see if I can grab some more information.

Thanks again