KindaBrazy / LynxHub

Manage and launch all your AI from a single dashboard.
GNU General Public License v3.0
133 stars 4 forks source link

Sometimes address goes busy #22

Open WanderFox opened 2 weeks ago

WanderFox commented 2 weeks ago

Hi! Sometimes when I'm using Lynx Hub with different AI (not only Comfy) I have an issue when lt doesn't free socket address. It happens in different ways, and I can't reproduce it. Sometimes, it happens when I close Lynx Hub with launched AI, but sometimes, even when I relaunch AI from Lynx Hub. Restarting doesn't free the socket so in this case I need to restart my PC or use the next commands in CMD: ``` netstat -ano | findstr :8188 taskkill /PID 3652 /F

KindaBrazy commented 2 weeks ago

Hi, All AIs should run as child processes of LynxHub, so when LynxHub is closed, it should terminate all child processes. I’ll also add code to ensure any open terminals and AI processes are closed before the app shuts down or restarts.

When restarting or closing an AI within the app, LynxHub will kill the terminal and any child processes.

If this happens again, please try these steps:

  1. Terminate any running AI in the app.
  2. Check the Task Manager for any Python or terminal processes.
    • Expand the LynxHub tree to view any child processes.

If you still see any terminal or Python processes running, please let me know so I work on a fix. If you don’t see anything, then the issue might be something outside of LynxHub.