Repository: stable-diffusion-webui
Issue: [Bug]: When trying to generate an image it gives an OSError: [WinError 123]
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?

Having installed Automatic1111, I launched the program, after entering the prompt, the image begins to be generated, at the end the generation is reset

### Steps to reproduce the problem

I installed python, git and automatik1111 via github, after installation I launched the program via webui.bat, via launching webui-user the same problem

### What should have happened?

the generated image should not be reset immediately

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

Other

### Sysinfo


[sysinfo-2024-05-10-19-10.json](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/15279048/sysinfo-2024-05-10-19-10.json)


### Console logs

```Shell
venv "C:\Users\rig32\OneDrive\Desktop\New folder\webui\venv\Scripts\Python.exe"
=============================================================================================================================
INCOMPATIBLE PYTHON VERSION

This program is tested with 3.10.6 Python, but you have 3.9.13.
If you encounter an error with "RuntimeError: Couldn't install torch." message,
or any other error regarding unsuccessful package (library) installation,
please downgrade (or upgrade) to the latest version of 3.10 Python
and delete current Python and "venv" folder in WebUI's directory.

You can download 3.10 Python from here: https://www.python.org/downloads/release/python-3106/

Alternatively, use a binary release of WebUI: https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.0.0-pre

Use --skip-python-version-check to suppress this warning.
=============================================================================================================================
Python 3.9.13 (tags/v3.9.13:6de2ca5, May 17 2022, 16:36:42) [MSC v.1929 64 bit (AMD64)]
Version: v1.9.3
Commit hash: 1c0a0c4c26f78c32095ebc7f8af82f5c04fca8c0
Launching Web UI with arguments:
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
Loading weights [6ce0161689] from C:\Users\rig32\OneDrive\Desktop\New folder\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
Creating model from config: C:\Users\rig32\OneDrive\Desktop\New folder\webui\configs\v1-inference.yaml
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
C:\Users\rig32\OneDrive\Desktop\New folder\webui\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: 13.2s (prepare environment: 3.1s, import torch: 3.6s, import gradio: 1.1s, setup paths: 1.0s, initialize shared: 2.3s, other imports: 0.7s, load scripts: 0.6s, create ui: 0.4s, gradio launch: 0.2s).
Applying attention optimization: Doggettx... done.
Model loaded in 9.0s (load weights from disk: 0.5s, create model: 0.3s, apply weights to model: 4.3s, calculate empty prompt: 3.8s).
100%|██████████████████████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  5.11it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████| 20/20 [00:03<00:00,  6.00it/s]
Traceback (most recent call last):█████████████████████████████████████████████████| 20/20 [00:03<00:00,  6.40it/s]
  File "C:\Users\rig32\OneDrive\Desktop\New folder\webui\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
  File "C:\Users\rig32\OneDrive\Desktop\New folder\webui\venv\lib\site-packages\gradio\blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
  File "C:\Users\rig32\OneDrive\Desktop\New folder\webui\venv\lib\site-packages\gradio\blocks.py", line 1335, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
  File "C:\Users\rig32\OneDrive\Desktop\New folder\webui\venv\lib\site-packages\gradio\components\gallery.py", line 197, in postprocess
    file_path = str(utils.abspath(file))
  File "C:\Users\rig32\OneDrive\Desktop\New folder\webui\venv\lib\site-packages\gradio\utils.py", line 938, in abspath
    if is_symlink or path == path.resolve():  # in case path couldn't be resolved
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\pathlib.py", line 1215, in resolve
    s = self._flavour.resolve(self, strict=strict)
  File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\pathlib.py", line 215, in resolve
    s = self._ext_to_normal(_getfinalpathname(s))
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'outputs\\txt2img-images\\2024-05-10\\00008-1235824416.png?1715368156.0682776'
```


### Additional information

_No response_