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

[Bug]: Excessive network bandwidth: Webcam keeps opening new connections every time I switch to Dashboard tab #408

Open
2 of 3 tasks
hexvolt opened this issue Jun 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hexvolt
Copy link

hexvolt commented Jun 4, 2024

The problem

Webcam widget keeps opening new connections every time I switch to Dashboard tab, causing excessive network load.

In order to see the underlying problem, it is recommended to install Resource Monitor plugin to Octoprint or any plugin that shows network usage of the host. (It's probably irrelevant but my host is Raspberry Pi 5 running Octoprint and streaming video feed).

Steps to see the issue:

  1. Enable Webcam widget on the Dashboard plugin, and set it up pointing to the video feed.
  2. Go to the Dashboard tab, see that the video feed is properly displayed.
  3. Switch to the Resource Monitor tab in order to measure the current host network usage (e.g. upload 8Mb/s since the Dashboard has connected to the video feed and the host is streaming the video feed to the client)
  4. Go back to the Dashboard tab (apparently this is where it opens another connection to video feed, without dropping the initial one).
  5. Switch back to the Resource Monitor - you will see that network usage has doubled (e.g. upload 16Mb/s)
  6. Go back to the Dashboard tab (it will open yet another video feed connection, as if there are now 3 clients consuming the video feed)
  7. Switch to the Resource Monitor - the network usage has tripled! (e.g. 24Mb/s)
  8. ... repeat as many times as you want

In other words, if I'm just clicking the tabs in Octoprint, and it happened that I switched to the Dashboard 4 times, the network usage will quadruple!

The plugin should not open extra connections but reuse the existing one.

Version of OctoPrint

1.10.1

Platform

Raspberry Pi 5b

Operating system running OctoPrint

Rasspberry OS 64 bit Bookworm

Dashboard version

1.19.11

Python version

3.11

Printer model & used firmware incl. version

Prusa i3 MK3S+

Browser and version of browser, operating system running browser

Safari and Chrome on MacOS, iPad OS

Logs and other files needed for analysis

  • Systeminfo Bundle (always include!) See here if you don't know where to find that.
  • Screenshots and/or videos showing the problem (always include in case of issues with the user interface)
  • GCODE file with which to reproduce (always include in case of issues with GCODE analysis or printing behaviour)

File uploads & additional information

Screen.Recording.mov

octoprint-systeminfo-20240604135838.zip

@hexvolt hexvolt added the bug Something isn't working label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant