voicebox icon indicating copy to clipboard operation
voicebox copied to clipboard

Voicebox Server Processes Remain After UI Closure

Open djismgaming opened this issue 9 months ago • 4 comments

Voicebox Server Processes Remain After UI Closure

Issue Description

When the Voicebox UI application is closed on Windows 11, two voicebox-server processes continue running in the background, consuming system resources unnecessarily.

Steps to Reproduce

  1. Launch the Voicebox application
  2. Close the main UI window
  3. Check active processes using Task Manager or Process Explorer
  4. Observe that 2 voicebox-server processes remain active

Expected Behavior

All Voicebox-related processes should be terminated when the main UI is closed.

Actual Behavior

  • 2 voicebox-server processes continue running after UI closure
  • These processes consume CPU and memory resources
  • They persist until manually terminated or system reboot

Environment

  • Windows 11
  • Voicebox application

Impact

  • Resource waste (CPU/memory usage)
  • Potential performance degradation
  • Inefficient process management

Additional Notes

This appears to be a process cleanup issue where the application fails to properly terminate its background server processes when the main interface is closed.

Image

djismgaming avatar Feb 23 '26 23:02 djismgaming

Experiencing the same issue. And also it doesn't seem to be using CUDA at all nor any option to use Pytorch CUDA backend it seems.

alijazizaib avatar Feb 24 '26 09:02 alijazizaib

Same like @alijazizaib. Backend not closed, no use of my GPU (Nvidia with CUDA).

ahnungsbefreit avatar Feb 24 '26 20:02 ahnungsbefreit

Experiencing the same issue. And also it doesn't seem to be using CUDA at all nor any option to use Pytorch CUDA backend it seems.

You have to compile from source for cuda to work, check older issues, they have the explanation and the how-to.

ltcdatagonza avatar Feb 24 '26 23:02 ltcdatagonza

Fixed in Voicebox v0.2.x! 🎉

Server shutdown is now handled cleanly across all platforms:

  • Windows — uses taskkill /T for full process tree termination, with os._exit fallback
  • macOS — SIGHUP ignored, watchdog with grace period for clean teardown
  • Watchdog — respects the "keep server running" setting via a /watchdog/disable endpoint, so the server only stays alive when you want it to

To get the update:

  • Download the latest release from voicebox.sh or update from within the app

Thanks for reporting — closing as resolved. If you still see orphaned processes on v0.2.x, please open a new issue!

jamiepine avatar Mar 15 '26 16:03 jamiepine