Repository: stable-diffusion-webui
Issue: [Bug]: Frozen Loading and Connection errored out
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [X] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

Just redownloaded webui and updated all dependencies. When I start webui-user the command prompt goes through its normal stuff and when i go to the website it says loading but the loading animation is not moving. After a long time the normal ui shows up but says the connection errored out

### Steps to reproduce the problem

Start Webui-user.bat

### What should have happened?

It would normally load in a timely way and allow me to utilize the software

### What browsers do you use to access the UI ?

Microsoft Edge

### Sysinfo

Cant access the settings. When i do the --dump-sysinfo I get this response:

C:\Users\ryan3\stable-diffusion\stable-diffusion-webui>git pull
Already up to date.
venv "C:\Users\ryan3\stable-diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
C:\Users\ryan3\stable-diffusion\stable-diffusion-webui\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
  rank_zero_deprecation(
Sysinfo saved as sysinfo-2024-02-26-04-57.json. Exiting...
Press any key to continue . . .

### Console logs

```Shell
C:\Users\ryan3\stable-diffusion\stable-diffusion-webui>git pull
Already up to date.
venv "C:\Users\ryan3\stable-diffusion\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: v1.7.0
Commit hash: cf2772fab0af5573da775e7437e6acdca424f26e
You are up to date with the most recent release.
Launching Web UI with arguments: --xformers --update-check --autolaunch --no-half
Loading weights [fe4efff1e1] from C:\Users\ryan3\stable-diffusion\stable-diffusion-webui\models\Stable-diffusion\model.ckpt
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 12.6s (prepare environment: 2.5s, import torch: 4.1s, import gradio: 1.3s, setup paths: 1.3s, initialize shared: 0.3s, other imports: 0.9s, setup codeformer: 0.1s, load scripts: 1.2s, create ui: 0.6s, gradio launch: 0.2s).
Creating model from config: C:\Users\ryan3\stable-diffusion\stable-diffusion-webui\configs\v1-inference.yaml
Applying attention optimization: xformers... done.
Model loaded in 7.1s (load weights from disk: 4.3s, create model: 0.5s, apply weights to model: 1.8s, load textual inversion embeddings: 0.1s, calculate empty prompt: 0.3s).
Interrupted with signal 2 in <frame at 0x000002B92DA05540, file 'C:\\Users\\ryan3\\AppData\\Local\\Programs\\Python\\Python310\\lib\\threading.py', line 324, code wait>
Terminate batch job (Y/N)?
```


### Additional information

Error seems to be in the threading.py file In this set of commands. Specifically, "gotit = waiter.acquire(True, timeout)" according to the console log. I have uninstalled python and reinstalled already.

if not self._is_owned():
            raise RuntimeError("cannot wait on un-acquired lock")
        waiter = _allocate_lock()
        waiter.acquire()
        self._waiters.append(waiter)
        saved_state = self._release_save()
        gotit = False
        try:    # restore state no matter what (e.g., KeyboardInterrupt)
            if timeout is None:
                waiter.acquire()
                gotit = True
            else:
                if timeout > 0:
                    gotit = waiter.acquire(True, timeout)
                else:
                    gotit = waiter.acquire(False)
            return gotit
        finally:
            self._acquire_restore(saved_state)
            if not gotit:
                try:
                    self._waiters.remove(waiter)
                except ValueError:
                    pass