-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin creates heavy systemload #2
Comments
I have fixed the heavy systemload; the 3rd party library I was using to read the HX711 was hanging in a loop to wait for the HX711 to be ready. I rewrote it to instead wait asynchronously and performance should be vastly improved. You will have to uninstall/reinstall the plugin as the update URL on the original plugin was incorrect. I am unable to reproduce the console errors or the reading switching to NaN. What browser are you using? |
I'm using the latest Google Chrome on my Laptop and Chrome beta on my desktop which both gave me those not a number readings every now and then |
Do the NaN readings seem to correspond with the console errors? |
I am not really sure. Just tested it in Firefox though and I got the same console error and the same effect (it displays every now and then NaN). Here is the error from the firefox console |
Give the latest version another try, among other improvements I've made it put some diagnostic data in the console if it encounters a NaN. |
Under normal idle circumstances my Octoprint setup has the following loadaverage output
load average: 0.02, 0.22, 0.26
After activating the plugin again the loadaverage output changes to
load average: 0.68, 0.65, 0.52
This will result in an stuttering print for me, especially if there are a lot of curves.
Also the reading switches quite often from the actual reading to NaNg for like a second.
And there are some errors in my browsers console
octopi.local-1536171335227.log
The text was updated successfully, but these errors were encountered: