Repository: stable-diffusion-webui
Issue: [Bug]: WebUI will randomly stop responding to any action until I completely reinstall Ubuntu.
Labels: bug-report,platform:amd

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

WebUI runs flawlessly for a while but will then become completely unresponsive to anything, embeddings and LoRA's load permanently and when generating it never starts and nothing happens in terminal, no progress bar shows up. I have not figured out when it happens but it seems to be when WebUI is restarted and/or PC is rebooted. The only fix I found is completely reinstalling the entire operating system.

### Steps to reproduce the problem

1. Install and run WebUI for the first time
2. Generate cool images
3. Shut down WebUI/restart WebUI/reboot PC
4. Try to generate cool images
5. It will fail


### What should have happened?

WebUI should be responsive after being restarted/machine is rebooted.

### Sysinfo

[sysinfo-2023-11-27-12-46.txt](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/13474377/sysinfo-2023-11-27-12-46.txt)


### What browsers do you use to access the UI ?

Mozilla Firefox

### Console logs

```Shell
python3 launch.py --no-half --precision full
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
Version: v1.6.0-2-g4afaaf8a
Commit hash: 4afaaf8a020c1df457bcf7250cb1c7f609699fa7
Launching Web UI with arguments: --no-half --precision full
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
[-] ADetailer initialized. version: 23.11.1, num models: 9
2023-11-27 13:51:47,062 - ControlNet - INFO - ControlNet v1.1.419
ControlNet preprocessor location: /home/jm/stable-diffusion-webui/extensions/sd-webui-controlnet/annotator/downloads
2023-11-27 13:51:47,119 - ControlNet - INFO - ControlNet v1.1.419
Loading weights [8c4042921a] from /home/jm/stable-diffusion-webui/models/Stable-diffusion/aZovyaRPGArtistTools_v3VAE.safetensors
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Creating model from config: /home/jm/stable-diffusion-webui/configs/v1-inference.yaml
Startup time: 37.3s (prepare environment: 20.3s, import torch: 13.6s, import gradio: 0.4s, setup paths: 0.4s, other imports: 0.3s, load scripts: 1.5s, create ui: 0.3s, gradio launch: 0.5s).

#Yes it looks like a normal startup, because it starts up normally. The problem is nothing else is printed regardless of what I do in the WebUI.
```


### Additional information

Ubuntu 22.04
AMD RX 7900 XT
PyTorch 2.0.1+ROCm 5.7

How I install WebUI is a combination of [this](https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/install-pytorch.html) and [this](https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Install-and-Run-on-AMD-GPUs#running-natively) guide:

1.Install driver as per the AMD guide
2. Install python3-pip and python3.10-venv
3. git clone WebUI
4. cd WebUI
5. "python3 -m venv venv" inside WebUI directory
6. source venv/bin/activate inside WebUI directory
7. "pip3 install --upgrade pip wheel" inside the virtual enviroment.
8. Install PyTorch+Torchvision with ROCm 5.7 as per the AMD guide inside the virtual enviroment, using the radeon repo. I tried the official PyTorch command but that never worked.

I tried a whole bunch of installation guides, combining several guides and this is the only one I found that actually works with my GPU. As I said previously the only fix I found is to completely reinstall Ubuntu. I tried removing the WebUI folder and uninstalling drivers. This should get rid of both PyTorch and Torchvision and I confirmed so with pip outside of the virtual enviroment, I then tried rebooting, reinstalling drivers, reinstalling WebUI the exact same way but it doesn't work, only reinstalling the entire OS works.