Repository: stable-diffusion-webui
Issue: [Bug]: Generate function becomes a one-time process.
Labels: bug-report

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What happened?

This problem happened since I updated to webUI 1.3.0, and it remains till now. 
The "generate" button stuck after one generating progress completed. Once clicked again, it won‘t respond no matter which generating-mode I‘m using or switched to. Also the console desk presented nothing more. So "generate" progress became a one-time process. That way I can only press F5 to refresh webpage and start new. 
This bug is so rare and I've asked many people around, video-comments below, chat channels, google pagess, and so on, only one 
person had the similar problem with me, but he triggered it somehow in previous versions. 
Also, I've tried to rollback to 1.2.1, but that causes another bigger issue that lora wrote in prompt bar cannot be loaded by webui which made me crazy...

### Steps to reproduce the problem

1. Start webui and do some prompt.
2. Press "generate" button and wait the first progress to complete.
3. After that, click the "generate" button again, and no respond whichever generating mode I'm using or switched to. Console desk presents nothing more.

### What should have happened?

I changed nothing in webpage, only reclick generate button after the first progress finished, and it should have worked.

### Commit where the problem happens

https://github.com/AUTOMATIC1111/stable-diffusion-webui/commit/20ae71faa8ef035c31aa3a410b707d792c8203a3

### What Python version are you running on ?

Python 3.10.x

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

Windows

### What device are you running WebUI on?

Nvidia GPUs (GTX 16 below), AMD GPUs (RX 6000 above)

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

Google Chrome

### Command Line Arguments

```Shell
No
```


### List of extensions

<html>
<body>
<!--StartFragment-->



Stable-Diffusion-Webui-Civitai-Helper | https://ghproxy.com/https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper.git | main | 920ca326 | Tue May 23 11:53:22 2023 | unknown
a1111-sd-webui-locon | https://gitcode.net/ranting8323/a1111-sd-webui-locon.git | main | 161ba405 | Fri May 26 16:01:42 2023 | unknown
a1111-sd-webui-lycoris | https://gitcode.net/ranting8323/a1111-sd-webui-lycoris | main | c1e676b4 | Fri Jun 2 10:01:27 2023 | unknown
a1111-sd-webui-tagcomplete | https://gitcode.net/ranting8323/a1111-sd-webui-tagcomplete | main | 1cb4fc8f | Fri May 26 21:45:19 2023 | unknown
multidiffusion-upscaler-for-automatic1111 | https://gitcode.net/ranting8323/multidiffusion-upscaler-for-automatic1111.git | main | 70b3c5ea | Sun May 28 09:11:28 2023 | unknown
OpenPose editor | https://ghproxy.com/https://github.com/fkunn1326/openpose-editor.git | master | 1f2b4070 | Sat Jun 3 00:46:28 2023 | unknown
sd-dynamic-prompts | https://ghproxy.com/https://github.com/adieyal/sd-dynamic-prompts.git | main | 077a4222 | Fri Jun 2 18:49:44 2023 | unknown
sd-webui-additional-networks | https://gitcode.net/ranting8323/sd-webui-additional-networks | main | e9f3d622 | Tue May 23 12:31:15 2023 | unknown
sd-webui-controlnet | https://gitcode.net/ranting8323/sd-webui-controlnet | main | 84e92d0d | Fri Jun 2 22:51:58 2023 | unknown
sd-webui-depth-lib | https://github.com/jexom/sd-webui-depth-lib | main | efa9f616 | Mon Apr 10 05:27:11 2023 | unknown
sd-webui-lora-block-weight | https://ghproxy.com/https://github.com/hako-mikan/sd-webui-lora-block-weight.git | main | 19a5dd07 | Wed May 31 17:11:13 2023 | unknown
sd-webui-prompt-all-in-one | https://gitcode.net/ranting8323/sd-webui-prompt-all-in-one | main | 193fd2f2 | Fri Jun 2 11:08:35 2023 | unknown
stable-diffusion-webui-localization-zh_Hans | https://gitcode.net/overbill1683/stable-diffusion-webui-localization-zh_Hans.git | master | 52ad323d | Fri Jun 2 08:00:02 2023 | unknown
stable-diffusion-webui-wd14-tagger | https://gitcode.net/ranting8323/stable-diffusion-webui-wd14-tagger | master | 3ba3a735 | Sat Mar 25 20:32:37 2023 | unknown
wildcards | https://gitcode.net/overbill1683/stable-diffusion-webui-wildcards.git | master | 6ed81ed1 | Sat Oct 29 16:18:48 2022 | unknown
ultimate-upscale-for-automatic1111 | https://ghproxy.com/https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git | master | 756bb505 | Fri May 5 00:22:21 2023 | unknown
LDSR | 内置 | 无 |   | Sat Jun 3 01:54:04 2023 |  
Lora | 内置 | 无 |   | Sat Jun 3 01:54:04 2023 |  
ScuNET | 内置 | 无 |   | Sat Jun 3 01:54:04 2023 |  
SwinIR | 内置 | 无 |   | Sat Jun 3 01:54:04 2023 |  
prompt-bracket-checker | 内置 | 无 |   | Sat Jun 3 01:54:04 2023

### Console logs

```Shell
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.3.0-11-gb6af0a38
Commit hash: b6af0a3809ea869fb180633f9affcae4b199ffcf
Installing requirements
sd-dynamic-prompts installer: running 'D:\Program Files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\python.exe' -m pip install 'send2trash~=1.8' 'dynamicprompts[attentiongrabber,magicprompt]~=0.27.0'
Looking in indexes: https://mirror.baidu.com/pypi/simple, https://mirrors.aliyun.com/pypi/simple, https://pypi.doubanio.com/simple
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Requirement already satisfied: send2trash~=1.8 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (1.8.0)
Requirement already satisfied: dynamicprompts[attentiongrabber,magicprompt]~=0.27.0 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (0.27.0)
Requirement already satisfied: jinja2~=3.1 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.1.2)
Requirement already satisfied: pyparsing~=3.0 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.0.9)
Requirement already satisfied: transformers[torch]~=4.19 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (4.25.1)
Requirement already satisfied: MarkupSafe>=2.0 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from jinja2~=3.1->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.1.2)
Requirement already satisfied: filelock in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.12.0)
Requirement already satisfied: huggingface-hub<1.0,>=0.10.0 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (0.14.1)
Requirement already satisfied: numpy>=1.17 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.23.5)
Requirement already satisfied: packaging>=20.0 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (23.1)
Requirement already satisfied: pyyaml>=5.1 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (6.0)
Requirement already satisfied: regex!=2019.12.17 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2023.5.5)
Requirement already satisfied: requests in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.25.1)
Requirement already satisfied: tokenizers!=0.11.3,<0.14,>=0.11.1 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (0.13.3)
Requirement already satisfied: tqdm>=4.27 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (4.64.1)
Requirement already satisfied: torch!=1.12.0,>=1.7 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.0.0+cu118)
Requirement already satisfied: fsspec in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from huggingface-hub<1.0,>=0.10.0->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2023.4.0)
Requirement already satisfied: typing-extensions>=3.7.4.3 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from huggingface-hub<1.0,>=0.10.0->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (4.5.0)
Requirement already satisfied: sympy in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from torch!=1.12.0,>=1.7->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.11.1)
Requirement already satisfied: networkx in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from torch!=1.12.0,>=1.7->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.1)
Requirement already satisfied: colorama in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from tqdm>=4.27->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (0.4.6)
Requirement already satisfied: chardet<5,>=3.0.2 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (3.0.4)
Requirement already satisfied: idna<3,>=2.5 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from requests->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (2023.5.7)
Requirement already satisfied: mpmath>=0.19 in d:\program files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages (from sympy->torch!=1.12.0,>=1.7->transformers[torch]~=4.19->dynamicprompts[attentiongrabber,magicprompt]~=0.27.0) (1.3.0)

Launching Web UI with arguments: --use-cpu all --skip-torch-cuda-test --theme dark --precision full --no-half --api --autolaunch
D:\Program Files (x86)\sd-webui-aki\sd-webui-aki-v4.1\python\lib\site-packages\pkg_resources\__init__.py:123: PkgResourcesDeprecationWarning: llow is an invalid version and will not be supported in a future release
  warnings.warn(
No module 'xformers'. Proceeding without it.
Warning: caught exception 'Found no NVIDIA driver on your system. Please check that you have an NVIDIA GPU and installed a driver from http://www.nvidia.com/Download/index.aspx', memory monitor disabled
Civitai Helper: Get Custom Model Folder
Civitai Helper: Load setting from: D:\Program Files (x86)\sd-webui-aki\sd-webui-aki-v4.1\extensions\Stable-Diffusion-Webui-Civitai-Helper\setting.json
Civitai Helper: No setting file, use default
Additional Network extension not installed, Only hijack built-in lora
LoCon Extension hijack built-in lora successfully
[AddNet] Updating model hashes...

[AddNet] Updating model hashes...

ControlNet v1.1.213
ControlNet v1.1.213
sd-webui-prompt-all-in-one background API service started successfully.
Loading weights [e5d7cdb168] from D:\Program Files (x86)\sd-webui-aki\sd-webui-aki-v4.1\models\Stable-diffusion\[2DStyle][Anime]Counterfeit-V2.5_pruned.safetensors
Create LRU cache (max_size=16) for preprocessor results.
Create LRU cache (max_size=16) for preprocessor results.
Creating model from config: D:\Program Files (x86)\sd-webui-aki\sd-webui-aki-v4.1\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying optimization: InvokeAI... done.
Textual inversion embeddings loaded(13): bad-artist, bad-artist-anime, bad-hands-5, bad-image-v2, bad_prompt_version2-neg, badhandv4, boring_e621, deformityv6, EasyNegative, negative_hand-neg, ng_deepnegative_v1_75t, verybadimagenegative_v1.3, WarriorStyle
Model loaded in 2.9s (load weights from disk: 0.3s, create model: 0.7s, apply weights to model: 1.8s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Create LRU cache (max_size=16) for preprocessor results.
Startup time: 11.3s (import torch: 3.8s, import gradio: 0.6s, import ldm: 0.4s, other imports: 1.3s, load scripts: 1.7s, create ui: 0.7s, gradio launch: 2.4s, scripts app_started_callback: 0.1s).
locon load lora method
Calculating sha256 for D:\Program Files (x86)\sd-webui-aki\sd-webui-aki-v4.1\models\Lora\[Background][Character]StandingFullBodyWithBackgroundStyle_v10Offset.safetensors: 15c1b061d1cb1864df393bb28367e78c31ae2d926db36920529e9f68e7e816aa
```


### Additional information

_No response_