lydell / LinkHints

A browser extension that lets you click with your keyboard.
https://lydell.github.io/LinkHints
MIT License
145 stars 7 forks source link

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

Open Solarflame5 opened 1 month ago

Solarflame5 commented 1 month ago

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 ```json { "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 commented 1 month ago

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

lydell commented 3 weeks ago

Hi!

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

Solarflame5 commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

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