Repository: stable-diffusion-webui
Issue: [Bug]: Could not launch Webui after adding "-no-gradio-queue"
Labels: bug-report

### Checklist

- [ ] The issue exists after disabling all extensions
- [ ] The issue exists on a clean installation of webui
- [X] 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?

WebUI didn't work on every page, when i launched webui it showed: Expecting value: line 1 column 1 (char 0)
![91712771095_ pic_hd](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/61485215/597ddfcc-4871-4273-9605-53f3be96221f)

And I referred to "https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9150" and added "--xformers --no-gradio-queue" to the "webui-macos-env.sh" file.
[https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/9150#issuecomment-1894856227](https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/url)

Then I will not be able to launch webui any more, it will finish the workflow in cmd:
<img width="1060" alt="Screenshot 2024-04-11 at 2 43 13 PM" src="https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/61485215/dfff036c-e9e6-4dc6-97b0-cb2c3e431974">


### Steps to reproduce the problem

1. adding "--no-gradio-queue" or "--xformers --no-gradio-queue" to the "webui-macos-env.sh" file
2. cmd will finish the workflow and will not launch webui

### What should have happened?

WebUI should launch normally

### What browsers do you use to access the UI ?

Google Chrome

### Sysinfo

[sysinfo-2024-04-11-07-02.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14942520/sysinfo-2024-04-11-07-02.json)


### Console logs

```Shell
Last login: Thu Apr 11 11:15:45 on ttys000
[sp@spgdeMacBook-Air stable-diffusion-webui % ./webui.sh --no-gradio-queue
＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
＃#＃＃#＃＃＃井#＃井＃井#＃井＃井#＃井＃井#＃井＃井#＃井＃井#＃井＃井#＃井＃井#＃井#井#＃井#＃#＃井#＃#＃#＃#
＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃#＃
Running on spg user
＃#＃＃#＃＃＃＃#＃＃＃＃#＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃#＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃##
################################################################
Repo already cloned, using it as install directory
＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃#＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃
＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃
Create and activate python venv
＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃
＃#＃＃＃＃＃＃##＃＃＃＃＃＃##＃＃＃＃＃＃##＃＃＃#＃＃##＃＃＃#＃＃##＃＃＃#＃＃##＃#＃#＃##＃＃＃＃##＃
Launching launch.py...
#＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃#＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃＃
Python 3.10.14 (main, Mar 19 2024, 21:46:16) [Clang 15.0.0 (clang-1500.1.0.2.5)]
Version: V1.8.0
Commit hash: bef51aed032c0aaa5cfd80445bc4c0d85b408b5
Launching Web UI with arguments: --no-gradio-queue--skip-torch-cuda-test--upcast-sampling--no-half-vae--use-cpuinterrogate no module 'formers'. Processing without. no module 'formers'. Processing without
No module 'formers'. Proceeding without it.
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
++++4+4+4+++++++++++++++*++++444+44+4+4+444*4*4*4
You are running torch 2.1.0.
The program is tested to work with torch 2.1.2.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as there are reports of issues with training tab on the latest version.
Use --skip-version-check commandline argument to disable this check.
============================================================================2=
CHv1.8.4: Get Custom Model Folder sd-webui-prompt-all-in-one background API service started successfully.
Loading weights [5a44dad20] from /Users/sp/Documents/SD-Webui/stable-diffusion-webui/models/Stable-diffusion/awpainting_v13.safetens
OYS
Creating model from config: /Users/spg/Documents/SD-Webui/stable-diffusion-webui/configs/vi-inference.yaml
CHv1.8.4: Set Proxy:
Traceback (most recent call last):
File "/Users/spg/Documents/SD-Webui/stable-diffusion-webui/launch.py", line 48, in <module>
main ()
File "/Users/spg/Documents/SD-Webui/stable-diffusion-webui/launch.py", line 44, in main
start ()
File "/Users/spg/Documents/SD-Webui/stable-diffusion-webui/modules/launch_utils.py",line 469, in start
webui.webui ()
File "/Users/spg/Documents/SD-Webui/stable-diffusion-webui/webui.py",line 79, in webui
app, local_url, share_url = shared. demo. launch (
File "/Users/spq/Documents/SD-Webui/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py",line1858,inlaunch
self.validate_queue_settings ()
File "/Users/spg/Documents/SD-Webui/stable-diffusion-webui/venv/lib/python3.10/site-packages/gradio/blocks.py",line1690,invalida te_queue_settings
raise ValueError"Progress tracking requires queuing to be enabled.")
ValueError: Progress tracking requires queuing to be enabled.
Loading VAE weights from user metadata: /Users/spg/Documents/SD-Webui/stable-diffusion-webui/models/VAE/vaeFtMse840000EmaPruned_vae.sa
fetensors
Applying attention optimization: sub-quadratic... done.
Model loaded in 17.1s (load weights from disk: 0.3s, create model: 0.7s, apply weights to model: 11.2s, apply type to VAE: 0.2s, load VAE: 2.4s, load weights from state dict: 0.2s, move model to device: 0.45, hijack: 0.5s, load textual inversion embeddings: 0.2s, cal culate empty prompt: 0.9s).
sp@spgdeMacBook-Air stable-diffusion-webui %
```


### Additional information

List of extensions:
1. sd-webui-prompt-all-in-one
2. Stable-Diffusion-Webui-Civitai-Helper
3. stable-diffusion-webui-localization-zh_CN


And I also tried to turn off the proxy, but it was still unable to launch webui. But if I turn off the proxy without adding " --no-gradio-queue", it will launch normally. Still, i need to use the proxy to connect to network. So I'm looking for a solution to run webui with proxy.