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

The extension causes OctoPrint to have high CPU usage and memory leaks #96

Open
Solarflame5 opened this issue Jul 21, 2024 · 5 comments

Comments

@Solarflame5
Copy link

Steps to reproduce

  1. Open an OctoPrint instance in your browser
  2. Start a print and start waiting
  3. Eventually(takes around 20-30 minutes) the tab will become really unresponsive, and the Firefox task manager will show high RAM and CPU usage for the OctoPrint tab.

Screen shot

image

Description

The issue disappears when I disable the Link Hints extension and try using OctoPrint again in a fresh tab.

Debug info

Debug info
{
  "version": "1.3.1",
  "browser": "firefox",
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0",
  "browserInfo": {
    "name": "Firefox",
    "vendor": "Mozilla",
    "version": "128.0",
    "buildID": "20240704121409"
  },
  "platformInfo": {
    "os": "win",
    "arch": "x86-64"
  },
  "storage.sync": {
    "css": ".root {\n  font: menu;\n}\n\n.hint {\n  font-size: 14px;\n  padding: 4px;\n  color: black;\n  background-color: #fff6d9;\n  border: solid 1px rgba(0, 0, 0, 0.5);\n  border-radius: 4px;\n  text-transform: uppercase;\n  font-weight: bold;\n  line-height: 0.8;\n  white-space: nowrap;\n}\n\n.highlighted {\n  background-color: #0f0;\n}\n\n.matchedChars {\n  opacity: 0.3;\n}\n\n.matchedText {\n  border-bottom: 2px solid #ef0fff;\n  box-sizing: border-box;\n}\n\n.status {\n  font-size: 14px;\n  padding: 4px 6px;\n  color: white;\n  background-color: black;\n  box-shadow: 0 0 1px 0 rgba(255, 255, 255, 0.5);\n  bottom: 0;\n  right: 0;\n  line-height: 1;\n}\n\n.peek .hint:not(.hasMatchedChars):not(.highlighted) {\n  opacity: 0.2;\n}\n\n.mixedCase {\n  text-transform: none;\n}\n\n.hidden,\n.hint:not(.hidden) ~ .shruggie,\n.status:empty {\n  opacity: 0 !important;\n}"
  },
  "storage.local": {
    "tutorialShown": true
  },
  "language": "en-US"
}
@Solarflame5
Copy link
Author

image
The tab freezes for a couple of seconds after presing Alt + J, and Firefox shows a warning.

@lydell
Copy link
Owner

lydell commented Aug 23, 2024

Hi!

What does “open an Octoprint instance” mean? How do I start a print?

@Solarflame5
Copy link
Author

I'm sorry for the vague and hard to replicate bug report.

OctoPrint is a 3D printer management software with a web interface, "open an OctoPrint instance" means to start a server running OctoPrint and connecting to its web interface in your browser. To start a print, you need to slice a 3D model in a slicer software and upload it to OctoPrint, and then start a 3D print of the sliced file.

@lydell
Copy link
Owner

lydell commented Aug 29, 2024

Thanks! That sounds cool! But also too complicated. I’m not into 3D printing (yet?). So unfortunately you’ll need to debug this yourself, or hope that somebody else shows up who also has this problem and has the possibility to debug.

@Solarflame5
Copy link
Author

No problem! Just wanted to keep the bug documented somewhere.

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

No branches or pull requests

2 participants