Is there an existing issue for this problem?
- [x] I have searched the existing issues
OrcaSlicer Version
2.3.2-dev
Operating System (OS)
Windows
OS Version
Windows 11
Additional system information
Core Ultra 7, 32GB RAM....
Printer
Voron V0.2, Klipper, Mainsail, Camera via MediaMTX/WebRTC
How to reproduce
Run Orca and use it for a while, print prints, turn off printer while not in use, come back later.
I.e motivate it to switch to the Device tab often, and to reload the printer interface (in my case Mainsail) a few times.
Actual results
After a while, I see multiple connections to the WebRTC camera stream provided by my printer, clogging up the network.
All these connections originate from my same PC running OrcaSlicer. I confirmed there are no open Mainsail Tabs open in any other browser.
Tracing the network ports (MediaMTX logs the destination UDP port, which can in turn be associated to running PIDs on windows with netstat), all go to a msedgewebview process spawned by OrcaSlicer.
While the Device tab shows a current view of Mainsail even when I removed the Camera applet from the overview), there are invisible MS Edge webview browser sessions running in the background, continuing to execute Mainsail and thus connecting to the camera, too.
Expected results
Of course, OrcaSlicer should not "leak" msedgewebview instances/tabs/sessions (whatever it is called correctly). A simpler, more immediate bandaid fix could be a "Reset Device view" button that completely terminates and restarts the embedded msedgewebview component.
Project file & Debug log uploads
Project file is not relevant.
Log file contains not a single event related to this, thus also skipping.
Checklist of files to include
- [ ] Log file
- [ ] Project file
Anything else?
The currently displaying "foreground" webview seems to behave correctly. If I click the Camera tab in Mainsail, a new WebRTC session is opened, when I go back to the Dashboard tab (where I have disabled the Camera element for now), that session is closed. When trying to reproduce, optimally enable the Camera applet on the Dashboard, this way a running camera stream is a good indicator of a running browser pane.