Skip to content
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

Layer Progress displays 0% or the last value in Chrome #133

Closed
StarNamer opened this issue Mar 28, 2020 · 1 comment
Closed

Layer Progress displays 0% or the last value in Chrome #133

StarNamer opened this issue Mar 28, 2020 · 1 comment

Comments

@StarNamer
Copy link

StarNamer commented Mar 28, 2020

Just before I was about to post this, I looked at the similar issues, specifically #8 which indicates that this was originally implemented by "hijacking gcodeViewModel._processData" and found a workaround which gets it working, but doesn't indicate what a permanent fix should be.

Since the GCode file is considered large, opening the GCode Viewer tab displays a warning about loading it into the viewer. This indicates that the GCode Viewer hasn't read the file, so there's no
analysis available.

Forcing the viewer to analyse the GCode causes the Layer Gauge on the Dashboard to start working.

Describe the bug
On several prints, the Layer progress guage displays 0% throughout the print. On one occasions, it showed 94%, which was the last value left by the previous print and did not get reset. This may be simillar to issue #110

To Reproduce
At the moment, It's intermittent. I can attach GCode, but am not sure this will reproduce the problem.
Update: I now think just using a large GCode file should show the behaviour

Expected behavior
Layer progress gauge changes as print of a particular layer progresses.

Screenshots
See attached

Files (please attach the following Files or screenshots when applicable):
Zipped log files, screenshot and gcode attached.Layer progress displays zero percent.zip

OctoPrint server and Plugins:
From the octoprint log:

  • INFO - --- Log roll over detected ---------------------------------------------------
  • INFO - OctoPrint 1.4.0
  • INFO - 22 plugin(s) registered with the system:
    | Action Command Prompt Support (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt
    | Announcement Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/announcements
    | Anonymous Usage Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/tracking
    | Application Keys Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/appkeys
    | Backup & Restore (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/backup
    | Core Wizard (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/corewizard
    | Dashboard (1.11.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_dashboard
    | DisplayLayerProgress Plugin (1.18.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_DisplayLayerProgress
    | Error Tracking (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/errortracking
    | Fullscreen Plugin (0.0.4) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_fullscreen
    | Logging (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/logging
    | Login UI (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/loginui
    | Navbar Temperature Plugin (0.13) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_navbartemp
    | Pi Support Plugin (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pi_support
    | Plugin Manager (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/pluginmanager
    | Preheat Button (0.5.1) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_preheat
    | Printer Safety Check (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check
    | Resource Monitor (0.2.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_resource_monitor
    | Software Update (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/softwareupdate
    | Tab Order (0.5.6) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_taborder
    | Virtual Printer (bundled) = /home/pi/oprint/lib/python2.7/site-packages/octoprint/plugins/virtual_printer
    | Webcam Tab (0.1.2) = /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_webcamtab
    Prefix legend: ! = disabled, # = blacklisted, * = incompatible
    2020-03-28 00:34:38,389 - octoprint.environment - INFO - Detected environment is Python 2.7.16 under Linux (linux2). Details:
    | hardware:
    | cores: 4
    | freq: 1200.0
    | ram: 917008384
    | os:
    | id: linux
    | platform: linux2
    | plugins:
    | pi_support:
    | model: Raspberry Pi 3 Model B Rev 1.2
    | octopi_version: 0.17.0
    | python:
    | pip: 19.3.1
    | version: 2.7.16
    | virtualenv: /home/pi/oprint

Desktop

  • OS and version: Windows 10 Pro Insider Preview Build 19592.rs_prerelease_200321-1719
  • Browser and version Google Chrome Version 83.0.4098.0 (Official Build) canary (64-bit)

Additional context
I noticed the issue a couple of times with other versions of Chrome and Chrome Canary.

@StefanCohen
Copy link
Collaborator

Thanks for the feedback. This is as you mentioned related to the GCode viewer in OctoPrint not loading the stl. This can happen if the user disables the GCode viewer in the settings or if the loaded file is too large. There are options in OctoPrint to increase the mem limit for both desktop and mobile clients.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants