j7126 / OctoPrint-Dashboard

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

Dashboard plugin reporting "Can't get stats from DisplayLayerProgress." #171

Closed msteele999 closed 4 years ago

msteele999 commented 4 years ago

I know that this is a bit long but please take your time and fill in the following information as clearly and detailed as possible. It will shorten the time needed to understand and fix the issue significantly. Please also state versions clearly when applicable. "Latest version" doesn't help much.

Describe the bug I have a fresh installation of OctoPrint 1.4.0 on Windows 10 Home using Python 2.7 32 bit. I have a stock install of 1.4.0 with only Dashboard 1.13.0 and DisplayLayerProgress 1.21.0 plugins installed. This issue started a couple of days ago where the dashboard would show all elements but have the "Can't get stats.

I have removed the Octoprint directory, uninstall Python, cleared out the octoprint AppData directories and cleared all temp files. I have cleared my browser cache and used four different web browsers, all with the same results.

Is it possible there is a directory I've missed or a registry entry I need to kill in order to clear out any old installation?

To Reproduce

  1. Install Python
  2. Install virtualenv
  3. Install / Configure octoprint
  4. Install Dashboard and displaylayerprogess plugins
  5. Refresh the page.

Expected behavior Dashboard elements reporting temps from printer

Screenshots Attached Screenshot_060320_071352_AM Screenshot_060320_071406_AM

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

OctoPrint server and Plugins:

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

msteele999 commented 4 years ago

I have confirmed that DisplayLayerProgress is working - see screen shots:

Screenshot_060320_085149_AM

StefanCohen commented 4 years ago

Thanks for the feedback. This has most likely nothing to do with DLP. Can you please check your javascript error console? This looks like a viewmodel binding problem.

msteele999 commented 4 years ago

I'm having trouble accessing my java console (I have it enabled - just not seeing it yet).

Is there a minimum Java version you require?

On Wed, Jun 3, 2020 at 8:55 AM StefanCohen notifications@github.com wrote:

Thanks for the feedback. This has most likely nothing to do with DLP. Can you please check your javascript error console? This looks like a viewmodel binding problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StefanCohen/OctoPrint-Dashboard/issues/171#issuecomment-638178074, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRMUYJB7FNYPXASJVS7SGTRUZB4DANCNFSM4NRSHXXQ .

msteele999 commented 4 years ago

here we go:

Less has finished and no sheets were loaded. packed_core.js?7e471afe:14648 Starting dependency resolution... packed_core.js?7e471afe:14747 Could not instantiate the following view models due to unresolvable dependencies: (anonymous) @ packed_core.js?7e471afe:14747 mightThrow @ packed_libs.js?3339d949:3535 process @ packed_libs.js?3339d949:3603 setTimeout (async) (anonymous) @ packed_libs.js?3339d949:3641 fire @ packed_libs.js?3339d949:3269 fireWith @ packed_libs.js?3339d949:3399 fire @ packed_libs.js?3339d949:3407 fire @ packed_libs.js?3339d949:3269 fireWith @ packed_libs.js?3339d949:3399 ready @ packed_libs.js?3339d949:3879 completed @ packed_libs.js?3339d949:3889 packed_core.js?7e471afe:14749 dashboardViewModel (missing: gcodeViewModel, enclosureViewModel ) (anonymous) @ packed_core.js?7e471afe:14749 Pn @ packed_libs.js?3339d949:11208 (anonymous) @ packed_libs.js?3339d949:11229 (anonymous) @ packed_core.js?7e471afe:14748 mightThrow @ packed_libs.js?3339d949:3535 process @ packed_libs.js?3339d949:3603 setTimeout (async) (anonymous) @ packed_libs.js?3339d949:3641 fire @ packed_libs.js?3339d949:3269 fireWith @ packed_libs.js?3339d949:3399 fire @ packed_libs.js?3339d949:3407 fire @ packed_libs.js?3339d949:3269 fireWith @ packed_libs.js?3339d949:3399 ready @ packed_libs.js?3339d949:3879 completed @ packed_libs.js?3339d949:3889 packed_core.js?7e471afe:14758 ... dependency resolution done packed_core.js?7e471afe:15068 Initial application setup done, connecting to server... packed_core.js?7e471afe:12694 Connected to the server packed_core.js?7e471afe:15033 Finalizing application startup packed_core.js?7e471afe:14908 Going to bind 34 view models... packed_core.js?7e471afe:14961 Did not bind view model UsageViewModel to target #wizard_plugin_tracking since it does not exist packed_core.js?7e471afe:14961 Did not bind view model SoftwareUpdateViewModel to target #softwareupdate_confirmation_dialog since it does not exist packed_core.js?7e471afe:14961 Did not bind view model SoftwareUpdateViewModel to target #wizard_plugin_softwareupdate since it does not exist packed_core.js?7e471afe:3334 User msteele logged in packed_core.js?7e471afe:15000 ... binding done packed_core.js?7e471afe:15012

Looks like a dependency issue?

On Wed, Jun 3, 2020 at 9:24 AM Mark Steele msteele999@gmail.com wrote:

I'm having trouble accessing my java console (I have it enabled - just not seeing it yet).

Is there a minimum Java version you require?

On Wed, Jun 3, 2020 at 8:55 AM StefanCohen notifications@github.com wrote:

Thanks for the feedback. This has most likely nothing to do with DLP. Can you please check your javascript error console? This looks like a viewmodel binding problem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StefanCohen/OctoPrint-Dashboard/issues/171#issuecomment-638178074, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRMUYJB7FNYPXASJVS7SGTRUZB4DANCNFSM4NRSHXXQ .

StefanCohen commented 4 years ago

Thanks:

packed_core.js?7e471afe:14749 dashboardViewModel (missing: gcodeViewModel, enclosureViewModel )

This indicates that you have disabled the gCode Visualizer in the octoprint settings. Please try enabling it.

https://github.com/StefanCohen/OctoPrint-Dashboard/wiki/Help#the-dashboard-fails-to-load-with-the-dashboardviewmodel-missing-gcodeviewmodel-error-message

msteele999 commented 4 years ago

Well there you go - who knew?

I disabled it so it would not show in the tabs as I use PrettyGcode viewer. I will have to find another way of customizing what shows in the tab.

Working now!

On Wed, Jun 3, 2020 at 9:32 AM StefanCohen notifications@github.com wrote:

Thanks:

packed_core.js?7e471afe:14749 dashboardViewModel (missing: gcodeViewModel, enclosureViewModel )

This indicates that you have disabled the gCode Visualizer in the octoprint settings. Please try enabling it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/StefanCohen/OctoPrint-Dashboard/issues/171#issuecomment-638199173, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABRMUYIMNI5RKAWKLOLK3ZDRUZGGXANCNFSM4NRSHXXQ .

StefanCohen commented 4 years ago

Perfect. Closing

nilshott commented 4 years ago

I fell for the same thing, as I had disabled the gcode visualizer. Could you implement a check to make sure this plugin is available?