Repository: stable-diffusion-webui
Issue: [Bug]: Press any key../Hard Fault - Unable to generate SDXL
Labels: bug-report

### Checklist

- [X] 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?

Whilst trying to generate any image via any model in SDXL I am met with with either a "Press any key to continue..." error. Or a hard memory access fault for python.exe.

It'll also take out several other background applications when it crashes like this.

A post in [this thread](https://github.com/AUTOMATIC1111/stable-diffusion-webui/discussions/15430) suggested checking event viewer on these crashes.

`Faulting application name: python.exe, version: 3.10.11150.1013, time stamp: 0x642cc427
Faulting module name: c10.dll, version: 0.0.0.0, time stamp: 0x6578c6fe
Exception code: 0xc0000005
Fault offset: 0x0000000000055474
Faulting process id: 0x39bc
Faulting application start time: 0x01dad2c9928bde49
Faulting application path: I:\Python\Python3-10-6\python.exe
Faulting module path: I:\Stable Diffusion\venv\lib\site-packages\torch\lib\c10.dll
Report Id: fac5843a-d536-4688-b8ca-2ce2e46d2d27
Faulting package full name: 
Faulting package-relative application ID: `

### Steps to reproduce the problem

Load any SDXL model.
Hit generate. Doesn't even need a prompt.

### What should have happened?

Make images.

Shouldn't nuke Discord, Steam, and DWM.exe all at once.

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

Mozilla Firefox

### Sysinfo

[sysinfo-2024-07-10-13-24.json](https://github.com/user-attachments/files/16162824/sysinfo-2024-07-10-13-24.json)


### Console logs

```Shell
venv "I:\Stable Diffusion\venv\Scripts\Python.exe"
Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr  5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Version: v1.9.4
Commit hash: feee37d75f1b168768014e4634dcb156ee649c05
Launching Web UI with arguments: --xformers --medvram --medvram-sdxl --autolaunch
*** "Disable all extensions" option was set, will not load any extensions ***
Loading weights [821aa5537f] from I:\Stable Diffusion\models\Stable-diffusion\SDXL\autismmixSDXL_autismmixPony.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: I:\Stable Diffusion\repositories\generative-models\configs\inference\sd_xl_base.yaml
I:\Stable Diffusion\venv\lib\site-packages\huggingface_hub\file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
  warnings.warn(
Startup time: 14.8s (prepare environment: 3.0s, import torch: 4.6s, import gradio: 1.1s, setup paths: 1.3s, initialize shared: 2.2s, other imports: 0.8s, load scripts: 0.9s, create ui: 0.4s, gradio launch: 0.6s).
Loading VAE weights specified in settings: I:\Stable Diffusion\models\VAE\sdxl_vae.safetensors
Applying attention optimization: xformers... done.
Model loaded in 10.3s (load weights from disk: 0.7s, create model: 0.7s, apply weights to model: 6.8s, load VAE: 0.1s, calculate empty prompt: 1.8s).
100%|██████████████████████████████████████████████████████████████████████████████████████████████| 40/40 [00:08<00:00,  4.77it/s]
Press any key to continue . . . ███████████████████████████████████████████████████████████████████| 40/40 [00:06<00:00,  5.69it/s]
```


### Additional information

_No response_